so://phie

outline

A web-based drawing app
git clone git://soophie.de/outline

blob: 0a670178efed048601daa9b7d58e24f1c3aa5fdc (13559 bytes)[doc][blame][raw]

1/* ### App ### */

2html,

3body {

4

5 &.app {

6 overflow: hidden;

7 }

8}

9

10a#download {

11 opacity: 0;

12 width: 0;

13 height: 0;

14 user-select: none;

15 pointer-events: none;

16}

17

18.wrapper {

19 position: fixed;

20 top: 0;

21 left: 0;

22 right: 0;

23 bottom: 0;

24 background: white;

25 z-index: 999;

26}

27

28.header-list {

29 width: 100%;

30 height: 60px;

31 background: white;

32 border-bottom: 1px solid @brand-grey-5;

33 display: flex;

34 flex-direction: column;

35 pointer-events: all;

36

37 .mainbar,

38 .sidebar {

39 width: 100%;

40 display: flex;

41 justify-content: space-between;

42 padding: 8px 14px;

43 min-height: 60px;

44 height: 60px;

45

46 &.inactive {

47

48 .action-item,

49 .tool-item,

50 .option-item {

51 pointer-events: none !important;

52 }

53 }

54

55 .tool,

56 .action,

57 .option {

58

59 ul {

60 list-style-type: none;

61 display: flex;

62 gap: 10px;

63

64 li {

65 width: 44px;

66 height: 44px;

67 padding: 10px;

68 border-radius: 22px;

69 cursor: pointer;

70 pointer-events: all;

71

72 &.placeholder {

73 pointer-events: none;

74 }

75

76 &:not(.inactive):not(.active):hover {

77 background: rgba(@brand-grey-7, 0.95);

78

79 &.ripple {

80

81 &.ripple-active {

82 background: lighten(rgba(@brand-grey-7, 0.95), -2%);

83 }

84 }

85 }

86

87 &.active {

88 background: rgba(#EEEEEE, 0.95);

89

90 &.ripple {

91

92 &.ripple-active {

93 background: lighten(rgba(#EEEEEE, 0.95), -2%);

94 }

95 }

96 }

97

98 &.inactive {

99

100 i.ico {

101 color: @brand-grey-4;

102 }

103 }

104

105 i.ico {

106 color: @brand-grey-1;

107 }

108 }

109 }

110 }

111 }

112}

113

114#canvas,

115#overlay,

116.controls {

117 position: fixed;

118 top: 0;

119 left: 0;

120 right: 0;

121 bottom: 0;

122}

123

124#overlay {

125 pointer-events: none;

126}

127

128.badge {

129 display: inline-block;

130 margin-top: -1px;

131 margin-left: 5px;

132 padding: 2px 4px;

133 border-radius: 2px;

134 font-weight: 500;

135 font-size: 12px;

136 color: white !important;

137

138 &.prime {

139 background: @brand-blue;

140 }

141

142 &.beta {

143 background: @brand-green;

144 }

145}

146

147.key {

148 display: inline-block;

149 padding: 3px 8px;

150 border-radius: 3px;

151 color: @brand-grey-2;

152 font-weight: 500;

153 background: @brand-grey-7;

154 border: 1px solid @brand-grey-4;

155

156 &.round {

157 border-radius: 999px;

158 }

159

160 &.ico {

161 padding: 2px;

162 max-width: 28px;

163 max-height: 27px;

164 display: flex;

165 justify-content: center;

166 align-items: center;

167

168 i.ico {

169 padding: 2px;

170 max-width: 28px;

171 }

172 }

173}

174

175.button {

176 display: block;

177 height: 44px;

178 padding: 0 22px;

179 border: none;

180 border-radius: 4px;

181 background: @brand-grey-6;

182 color: @brand-black;

183 font-size: 16px;

184

185 &:hover {

186

187 &.ripple-active {

188 background: lighten(@brand-grey-6, -2%);

189 }

190 }

191

192 &.outline {

193 border: 1px solid @brand-grey-5;

194 background: transparent;

195

196 &:hover {

197

198 &.ripple-active {

199 background: lighten(white, -2%);

200 }

201 }

202 }

203

204 &.prime {

205 background: @brand-blue;

206 color: white;

207

208 &:hover {

209

210 &.ripple-active {

211 background: lighten(@brand-blue, -2%);

212 }

213 }

214 }

215

216 &.danger {

217 background: @brand-red;

218 color: white;

219

220 &:hover {

221

222 &.ripple-active {

223 background: lighten(@brand-red, -2%);

224 }

225 }

226 }

227}

228

229.notification {

230 top: 90px;

231 position: fixed;

232 display: flex;

233 justify-content: center;

234 width: 100%;

235 opacity: 0;

236 text-align: center;

237 padding: 0 30px;

238

239 p {

240 display: inline-block;

241 padding: 10px 24px;

242 border-radius: 24px;

243 background: @brand-black;

244 color: white;

245 opacity: 0.95;

246 user-select: none;

247 pointer-events: none;

248 }

249}

250

251.controls {

252 pointer-events: none;

253

254 .hotbar {

255 display: flex;

256 position: fixed;

257 left: calc(50% - 216px);

258 bottom: 30px;

259 z-index: -1;

260

261 &.inactive {

262

263 .color {

264 pointer-events: none !important;

265 }

266 }

267

268 .color {

269 margin: 6px;

270 width: 60px;

271 height: 60px;

272 border-radius: 30px;

273 background: #EEE;

274 cursor: pointer;

275 transition: transform 0.2s;

276 transform: scale(0.9);

277 pointer-events: all;

278

279 &:not(.active):hover {

280 transform: scale(1);

281 }

282

283 &.focus {

284 transform: scale(1);

285 }

286

287 &.active {

288 transform: scale(1.1);

289 }

290 }

291 }

292

293 .pencil-modal {

294 top: 75px;

295 left: 120px;

296 }

297

298 .scale-modal {

299 top: 75px;

300 left: 70px;

301 width: 400px;

302 height: 60px;

303

304 input[type="range"] {

305 -webkit-appearance: none;

306 width: calc(400px - 54px);

307 margin-top: 21px;

308 margin-left: 27px;

309 height: 6px;

310 background: #EEEEEE;

311 border: none;

312 border-radius: 4px;

313

314 &::-webkit-slider-runnable-track {

315 -webkit-appearance: none;

316 }

317

318 &::-webkit-slider-thumb {

319 -webkit-appearance: none;

320 height: 20px;

321 width: 20px;

322 margin-top: -0px;

323 background: @brand-grey-3;

324 border-radius: 10px;

325 cursor: pointer;

326

327 &:hover {

328 background: @brand-grey-2;

329 }

330 }

331 }

332 }

333

334 .clear-modal {

335 top: calc(50% - 75.5px);

336 left: calc(50% - 175px);

337 width: 350px;

338 padding: 25px;

339 display: flex;

340 flex-direction: column;

341

342 .info {

343 width: 100%;

344 font-size: 20px;

345 text-align: center;

346 margin-bottom: 25px;

347 color: @brand-black;

348 user-select: none;

349 }

350

351 .align {

352 display: flex;

353 gap: 15px;

354

355 .btn-cancel {

356 width: 50%;

357 height: 48px;

358 border: none;

359 border-radius: 3px;

360 font-size: 16px;

361 padding-top: 1px;

362 }

363

364 .btn-apply {

365 width: 50%;

366 height: 48px;

367 border: none;

368 border-radius: 3px;

369 border-color: grey;

370 font-size: 16px;

371 padding-top: 1px;

372 }

373 }

374 }

375

376 .capture-modal {

377 top: 75px;

378 left: 15px;

379 }

380

381 .colors-modal {

382 flex-wrap: wrap;

383 min-width: 418px;

384 width: 418px;

385 max-width: 418px;

386 padding: 30px !important;

387 top: 75px;

388 left: 15px;

389 display: flex;

390 gap: 12px;

391 max-height: calc(100vh - 90px);

392 overflow-y: auto;

393

394 &::-webkit-scrollbar {

395 width: 8px;

396 }

397

398 &::-webkit-scrollbar-thumb {

399 width: 8px;

400 background: @brand-grey-5;

401

402 &:hover,

403 &:active {

404 background: @brand-grey-4;

405 }

406 }

407

408 .color {

409 width: 60px;

410 height: 60px;

411 border-radius: 30px;

412 background: #EEE;

413 cursor: pointer;

414 transition: transform 0.2s;

415 transform: scale(0.9);

416

417 &:not(.active):hover {

418 transform: scale(1);

419 }

420

421 &.active {

422 transform: scale(1.1);

423 }

424

425 &.focus {

426 transform: scale(1);

427 }

428 }

429 }

430

431 .multiplayer-modal {

432 top: 75px;

433 right: 120px;

434 }

435

436 .account-modal {

437 top: 75px;

438 right: 70px;

439 }

440

441 .more-modal {

442 top: 75px;

443 right: 15px;

444 }

445

446 .help-modal {

447 top: calc(50% - 250px);

448 left: calc(50% - 400px);

449 width: 800px;

450 height: 500px;

451 display: flex;

452 padding: 0;

453

454 .side {

455 border-right: 1px solid @brand-grey-5;

456 width: 230px;

457 min-width: 230px;

458 overflow: hidden;

459

460 ul.item-list {

461 width: 100%;

462 padding: 6px 0;

463

464 li.item {

465 display: flex;

466 flex-direction: column;

467

468 .info {

469 font-size: 16px;

470 width: 100%;

471 max-width: 100%;

472 margin-left: 0;

473 }

474 }

475 }

476 }

477

478 .content {

479 padding: 6px 0;

480 overflow-y: auto;

481

482 &::-webkit-scrollbar {

483 width: 8px;

484 }

485

486 &::-webkit-scrollbar-thumb {

487 width: 8px;

488 background: @brand-grey-5;

489

490 &:hover,

491 &:active {

492 background: @brand-grey-4;

493 }

494 }

495

496 ul.content-list {

497 list-style-type: none;

498 pointer-events: none;

499

500 li.content-item {

501 pointer-events: none;

502 padding: 15px 20px;

503 padding-top: 25px;

504

505 p {

506 font-size: 16px;

507 color: @brand-grey-2;

508 line-height: 20px;

509 user-select: none;

510 pointer-events: none;

511 margin-bottom: 40px;

512 }

513

514 h2 {

515 font-size: 24px;

516 font-weight: 500;

517 margin-bottom: 20px;

518 user-select: none;

519 pointer-events: none;

520 color: @brand-grey-1;

521 }

522

523 h3 {

524 font-size: 22px;

525 font-weight: 500;

526 margin-bottom: 20px;

527 user-select: none;

528 pointer-events: none;

529 color: @brand-grey-1;

530 }

531 }

532 }

533 }

534 }

535}

536

537.modal {

538 width: 250px;

539 position: fixed;

540 background: white;

541 border: 1px solid @brand-grey-5;

542 border-radius: 4px;

543 padding: 6px 0;

544 pointer-events: all;

545 overflow: hidden;

546 z-index: -1;

547 display: flex;

548

549 .main {

550 width: 248px;

551 min-width: 248px;7

552 max-width: 248px;

553 }

554

555 ul.tab-list {

556 width: 248px;

557 min-width: 248px;

558 max-width: 248px;

559 }

560

561 .header {

562 display: flex;

563 margin-bottom: 3px;

564

565 .back {

566 margin: 10px;

567 margin-top: 15px;

568 margin-right: 3px;

569 width: 36px;

570 height: 36px;

571 border-radius: 18px;

572 padding: 6px;

573 padding-left: 5px;

574 cursor: pointer;

575

576 i.ico {

577 color: @brand-grey-0;

578 }

579

580 &:hover {

581 background: @brand-grey-7;

582 }

583

584 &.ripple {

585

586 &.ripple-active {

587 background: lighten(@brand-grey-7, -2%);

588 }

589 }

590 }

591

592 .info {

593 display: flex;

594 flex-direction: column;

595 margin-top: 15px;

596 max-width: calc(100% - 24px - 10px - 35px);

597

598 p {

599 display: flex;

600 align-items: center;

601 font-weight: 500;

602 color: @brand-grey-1;

603 user-select: none;

604 pointer-events: none;

605 }

606

607 span {

608 display: block;

609 margin-top: 3px;

610 font-size: 12px;

611 color: @brand-grey-3;

612 user-select: none;

613 pointer-events: none;

614 white-space: nowrap;

615 overflow: hidden;

616 text-overflow: ellipsis;

617 }

618 }

619 }

620

621 ul.item-list {

622

623 .separator {

624 margin: 6px 0;

625 width: 100%;

626 height: 1px;

627 background: @brand-grey-5;

628 }

629

630 li.caption {

631 padding: 2px 15px;

632 padding-top: 12px;

633 list-style: none;

634

635 p {

636 color: @brand-grey-3;

637 user-select: none;

638 pointer-events: none;

639 }

640 }

641

642 li.item {

643 display: flex;

644 align-items: center;

645 padding: 15px;

646 cursor: pointer;

647

648 &.empty {

649

650 p {

651 display: block;

652 width: 100%;

653 color: @brand-grey-3;

654 text-align: center;

655 user-select: none;

656 pointer-events: none;

657 }

658 }

659

660 &:not(.active):not(.inactive) {

661

662 &:hover {

663 background: @brand-grey-7;

664 }

665

666 &.ripple {

667

668 &.ripple-active {

669 background: lighten(@brand-grey-7, -2%);

670 }

671 }

672 }

673

674 i.ico {

675 color: @brand-grey-1;

676 user-select: none;

677 pointer-events: none;

678 }

679

680 i.lang {

681 display: flex;

682 justify-content: center;

683 align-items: center;

684 font-style: normal;

685 font-weight: 600;

686 width: 24px;

687 height: 24px;

688 color: @brand-grey-1;

689 user-select: none;

690 pointer-events: none;

691 }

692

693 .info {

694 display: flex;

695 flex-direction: column;

696 margin-left: 10px;

697 max-width: calc(100% - 24px - 10px);

698

699 p {

700 display: flex;

701 align-items: center;

702 font-weight: 500;

703 color: @brand-grey-1;

704 user-select: none;

705 pointer-events: none;

706 }

707

708 span {

709 display: block;

710 margin-top: 3px;

711 font-size: 12px;

712 color: @brand-grey-3;

713 user-select: none;

714 pointer-events: none;

715 white-space: nowrap;

716 overflow: hidden;

717 text-overflow: ellipsis;

718 }

719 }

720

721 &.active {

722 background: #EEEEEE;

723

724 &.ripple {

725

726 &.ripple-active {

727 background: lighten(#EEEEEE, -2%);

728 }

729 }

730 }

731

732 &.inactive {

733

734 i.ico {

735 color: @brand-grey-4;

736 }

737

738 .info {

739

740 p {

741 color: @brand-grey-3;

742 }

743

744 span {

745 color: @brand-grey-3;

746 }

747 }

748 }

749 }

750 }

751}

752

753/* ### Home ### */

754body.home {

755

756 .notification {

757 top: 50px;

758 z-index: 2;

759

760 p.content {

761 padding: 10px 16px;

762 border-radius: 10px;

763 }

764 }

765

766 .row {

767 display: flex;

768 justify-content: center;

769 gap: 60px;

770 }

771

772 .container {

773 max-width: 1200px;

774 margin: 0 auto;

775 }

776

777 header {

778 display: flex;

779 justify-content: center;

780 align-items: center;

781 background-size: cover;

782 height: calc(100vh - 54px);

783 min-height: 750px;

784 padding: 0 50px;

785

786 .container {

787 // margin-top: -10vh;

788

789 .header-info {

790 display: flex;

791 flex-direction: column;

792 align-items: center;

793 }

794 }

795 }

796

797 main {

798 padding: 0 50px;

799

800 .container {

801 display: flex;

802 flex-direction: column;

803 gap: 100px;

804 padding: 200px 0;

805 }

806 }

807

808 footer {

809 display: flex;

810 align-items: center;

811 justify-content: space-between;

812 height: 54px;

813 padding: 0 30px;

814

815 .footer-item {

816 font-size: 16px;

817 }

818

819 a.footer-item {

820 text-decoration: none;

821

822 &:hover {

823 text-decoration: underline;

824 }

825 }

826

827 .footer-group {

828 display: flex;

829 gap: 25px;

830 }

831 }

832

833 .brand-logo {

834 display: none;

835 position: fixed;

836 top: 50px;

837 left: 50px;

838

839 a {

840 display: inline-block;

841 width: 44px;

842 height: 44px;

843 }

844 }

845

846 .logo {

847 width: 200px;

848 height: 200px;

849 min-width: 200px;

850 min-height: 200px;

851 max-width: 200px;

852 max-height: 200px;

853 border-radius: 100px;

854 box-shadow: 0 0 15px 0px rgba(black, 0.1);

855 margin: 0 auto;

856 margin-bottom: 35px;

857 }

858

859 h1.headline {

860 font-size: 70px;

861 font-weight: 600;

862 text-align: center;

863 margin-bottom: 15px;

864 }

865

866 p.description {

867 font-size: 20px;

868 font-weight: 400;

869 text-align: center;

870 max-width: 550px;

871 margin-bottom: 20px;

872 line-height: 28px;

873

874 b {

875 font-weight: inherit;

876 }

877 }

878

879 .badge-version {

880 margin-bottom: 60px;

881 }

882}

883

884.cookie {

885 display: flex;

886 position: fixed;

887 bottom: 43px;

888 align-items: center;

889 justify-content: space-between;

890 padding: 14px 24px;

891 background: @brand-blue;

892 border-radius: 4px;

893 width: 800px;

894 border: 1px solid @brand-blue;

895 z-index: 999;

896 left: calc(50vw - 400px);

897 gap: 20px;

898

899 p {

900 font-size: 16px;

901 color: white;

902 user-select: none;

903 pointer-events: none;

904 align-content: flex-start;

905 line-height: 24px;

906 }

907

908 button.button.accept {

909 font-size: 16px;

910 font-weight: 500;

911 color: white;

912 white-space: nowrap;

913 user-select: none;

914 background: inherit;

915

916 &:hover {

917 background: rgba(black, 0.05);

918 }

919 }

920

921 .group {

922 display: inline-flex;

923 align-items: center;

924 gap: 15px;

925 }

926

927 a {

928 font-size: 16px;

929 color: white;

930 white-space: nowrap;

931 user-select: none;

932 text-decoration: none;

933

934 &:hover {

935 text-decoration: underline;

936 }

937 }

938}