so://phie

outline

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

blob: 842440d63bd5b152a2ea1945784dd279a13af875 (12622 bytes)[doc][blame][raw]

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

2html,

3body {

4

5 &.body-app {

6 overflow: hidden;

7 }

8}

9

10.wrapper {

11 position: fixed;

12 top: 0;

13 left: 0;

14 right: 0;

15 bottom: 0;

16 background: white;

17 z-index: 999;

18}

19

20.header-list {

21 width: 100%;

22 height: 60px;

23 background: white;

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

25 display: flex;

26 flex-direction: column;

27 pointer-events: all;

28

29 .sidebar {

30 justify-content: flex-end !important;

31 }

32

33 .mainbar,

34 .sidebar {

35 width: 100%;

36 display: flex;

37 justify-content: space-between;

38 padding: 8px 14px;

39 min-height: 60px;

40 height: 60px;

41

42 &.inactive {

43

44 .action-item,

45 .tool-item,

46 .option-item {

47 pointer-events: none !important;

48 }

49 }

50

51 .tool,

52 .action,

53 .option {

54

55 ul {

56 list-style-type: none;

57 display: flex;

58 gap: 10px;

59

60 li {

61 width: 44px;

62 height: 44px;

63 padding: 10px;

64 border-radius: 22px;

65 cursor: pointer;

66 pointer-events: all;

67

68 &.placeholder {

69 pointer-events: none;

70 }

71

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

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

74

75 &.ripple {

76

77 &.ripple-active {

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

79 }

80 }

81 }

82

83 &.active {

84 background: rgba(#EEEEEE, 0.95);

85

86 &.ripple {

87

88 &.ripple-active {

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

90 }

91 }

92 }

93

94 &.inactive {

95

96 i.ico {

97 color: @brand-grey-4;

98 }

99 }

100

101 i.ico {

102 color: @brand-grey-1;

103 }

104 }

105 }

106 }

107 }

108}

109

110#canvas,

111#overlay,

112.controls {

113 position: fixed;

114 top: 0;

115 left: 0;

116 right: 0;

117 bottom: 0;

118}

119

120#overlay {

121 pointer-events: none;

122}

123

124.badge {

125 display: inline-block;

126 margin-top: -1px;

127 margin-left: 5px;

128 padding: 2px 4px;

129 border-radius: 2px;

130 font-weight: 500;

131 font-size: 12px;

132 color: white !important;

133

134 &.prime {

135 background: @brand-blue;

136 }

137

138 &.beta {

139 background: @brand-green;

140 }

141}

142

143.key {

144 display: inline-block;

145 padding: 3px 8px;

146 border-radius: 3px;

147 color: @brand-grey-2;

148 font-weight: 500;

149 background: @brand-grey-7;

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

151

152 &.round {

153 border-radius: 999px;

154 }

155

156 &.ico {

157 padding: 2px;

158 max-width: 28px;

159 max-height: 27px;

160 display: flex;

161 justify-content: center;

162 align-items: center;

163

164 i.ico {

165 padding: 2px;

166 max-width: 28px;

167 }

168 }

169}

170

171.button {

172 display: block;

173 height: 44px;

174 padding: 0 22px;

175 border: none;

176 border-radius: 4px;

177 background: @brand-grey-6;

178 color: @brand-black;

179 font-size: 16px;

180

181 &:hover {

182

183 &.ripple-active {

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

185 }

186 }

187

188 &.outline {

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

190 background: transparent;

191

192 &:hover {

193

194 &.ripple-active {

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

196 }

197 }

198 }

199

200 &.prime {

201 background: @brand-blue;

202 color: white;

203

204 &:hover {

205

206 &.ripple-active {

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

208 }

209 }

210 }

211

212 &.danger {

213 background: @brand-red;

214 color: white;

215

216 &:hover {

217

218 &.ripple-active {

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

220 }

221 }

222 }

223}

224

225.notification {

226 top: 90px;

227 position: fixed;

228 display: flex;

229 justify-content: center;

230 width: 100%;

231 opacity: 0;

232 text-align: center;

233 padding: 0 30px;

234

235 p {

236 display: inline-block;

237 padding: 10px 24px;

238 border-radius: 24px;

239 background: @brand-black;

240 color: white;

241 opacity: 0.95;

242 user-select: none;

243 pointer-events: none;

244 }

245}

246

247.controls {

248 pointer-events: none;

249

250 .hotbar {

251 display: flex;

252 position: fixed;

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

254 bottom: 30px;

255 z-index: -1;

256

257 &.inactive {

258

259 .color {

260 pointer-events: none !important;

261 }

262 }

263

264 .color {

265 margin: 6px;

266 width: 60px;

267 height: 60px;

268 border-radius: 30px;

269 background: #EEE;

270 cursor: pointer;

271 transition: transform 0.2s;

272 transform: scale(0.9);

273 pointer-events: all;

274

275 &:not(.active):hover {

276 transform: scale(1);

277 }

278

279 &.focus {

280 transform: scale(1);

281 }

282

283 &.active {

284 transform: scale(1.1);

285 }

286 }

287 }

288

289 .pencil-modal {

290 top: 75px;

291 left: 120px;

292 }

293

294 .scale-modal {

295 top: 75px;

296 left: 70px;

297 width: 400px;

298 height: 60px;

299

300 input[type="range"] {

301 -webkit-appearance: none;

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

303 margin-top: 21px;

304 margin-left: 27px;

305 height: 6px;

306 background: #EEEEEE;

307 border: none;

308 border-radius: 4px;

309

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

311 -webkit-appearance: none;

312 }

313

314 &::-webkit-slider-thumb {

315 -webkit-appearance: none;

316 height: 20px;

317 width: 20px;

318 margin-top: -0px;

319 background: @brand-grey-3;

320 border-radius: 10px;

321 cursor: pointer;

322

323 &:hover {

324 background: @brand-grey-2;

325 }

326 }

327 }

328 }

329

330 .clear-modal {

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

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

333 width: 350px;

334 padding: 25px;

335 display: flex;

336 flex-direction: column;

337

338 .info {

339 width: 100%;

340 font-size: 20px;

341 text-align: center;

342 margin-bottom: 25px;

343 color: @brand-black;

344 user-select: none;

345 }

346

347 .align {

348 display: flex;

349 gap: 15px;

350

351 .btn-cancel {

352 width: 50%;

353 height: 48px;

354 border: none;

355 border-radius: 3px;

356 font-size: 16px;

357 padding-top: 1px;

358 }

359

360 .btn-apply {

361 width: 50%;

362 height: 48px;

363 border: none;

364 border-radius: 3px;

365 border-color: grey;

366 font-size: 16px;

367 padding-top: 1px;

368 }

369 }

370 }

371

372 .colors-modal {

373 flex-wrap: wrap;

374 min-width: 418px;

375 width: 418px;

376 max-width: 418px;

377 padding: 30px !important;

378 top: 75px;

379 left: 15px;

380 display: flex;

381 gap: 12px;

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

383 overflow-y: auto;

384

385 &::-webkit-scrollbar {

386 width: 8px;

387 }

388

389 &::-webkit-scrollbar-thumb {

390 width: 8px;

391 background: @brand-grey-5;

392

393 &:hover,

394 &:active {

395 background: @brand-grey-4;

396 }

397 }

398

399 .color {

400 width: 60px;

401 height: 60px;

402 border-radius: 30px;

403 background: #EEE;

404 cursor: pointer;

405 transition: transform 0.2s;

406 transform: scale(0.9);

407

408 &:not(.active):hover {

409 transform: scale(1);

410 }

411

412 &.active {

413 transform: scale(1.1);

414 }

415

416 &.focus {

417 transform: scale(1);

418 }

419 }

420 }

421

422 .multiplayer-modal {

423 top: 75px;

424 right: 120px;

425 }

426

427 .account-modal {

428 top: 75px;

429 right: 70px;

430 }

431

432 .more-modal {

433 top: 75px;

434 right: 15px;

435 }

436

437 .help-modal {

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

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

440 width: 800px;

441 height: 500px;

442 display: flex;

443 padding: 0;

444

445 .side {

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

447 width: 230px;

448 min-width: 230px;

449 overflow: hidden;

450

451 ul.item-list {

452 width: 100%;

453 padding: 6px 0;

454

455 li.item {

456 display: flex;

457 flex-direction: column;

458

459 .info {

460 font-size: 16px;

461 width: 100%;

462 max-width: 100%;

463 margin-left: 0;

464 }

465 }

466 }

467 }

468

469 .content {

470 padding: 6px 0;

471 overflow-y: auto;

472

473 &::-webkit-scrollbar {

474 width: 8px;

475 }

476

477 &::-webkit-scrollbar-thumb {

478 width: 8px;

479 background: @brand-grey-5;

480

481 &:hover,

482 &:active {

483 background: @brand-grey-4;

484 }

485 }

486

487 ul.content-list {

488 list-style-type: none;

489 pointer-events: none;

490

491 li.content-item {

492 pointer-events: none;

493 padding: 15px 20px;

494 padding-top: 25px;

495

496 p {

497 font-size: 16px;

498 color: @brand-grey-2;

499 line-height: 20px;

500 user-select: none;

501 pointer-events: none;

502 margin-bottom: 40px;

503 }

504

505 h2 {

506 font-size: 24px;

507 font-weight: 500;

508 margin-bottom: 20px;

509 user-select: none;

510 pointer-events: none;

511 color: @brand-grey-1;

512 }

513

514 h3 {

515 font-size: 22px;

516 font-weight: 500;

517 margin-bottom: 20px;

518 user-select: none;

519 pointer-events: none;

520 color: @brand-grey-1;

521 }

522 }

523 }

524 }

525 }

526}

527

528.modal {

529 width: 250px;

530 position: fixed;

531 background: white;

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

533 border-radius: 4px;

534 padding: 6px 0;

535 pointer-events: all;

536 overflow: hidden;

537 z-index: -1;

538 display: flex;

539

540 .main {

541 width: 248px;

542 min-width: 248px;7

543 max-width: 248px;

544 }

545

546 ul.tab-list {

547 width: 248px;

548 min-width: 248px;

549 max-width: 248px;

550 }

551

552 .header {

553 display: flex;

554 margin-bottom: 3px;

555

556 .back {

557 margin: 10px;

558 margin-top: 15px;

559 margin-right: 3px;

560 width: 36px;

561 height: 36px;

562 border-radius: 18px;

563 padding: 6px;

564 padding-left: 5px;

565 cursor: pointer;

566

567 i.ico {

568 color: @brand-grey-0;

569 }

570

571 &:hover {

572 background: @brand-grey-7;

573 }

574

575 &.ripple {

576

577 &.ripple-active {

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

579 }

580 }

581 }

582

583 .info {

584 display: flex;

585 flex-direction: column;

586 margin-top: 15px;

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

588

589 p {

590 display: flex;

591 align-items: center;

592 font-weight: 500;

593 color: @brand-grey-1;

594 user-select: none;

595 pointer-events: none;

596 }

597

598 span {

599 display: block;

600 margin-top: 3px;

601 font-size: 12px;

602 color: @brand-grey-3;

603 user-select: none;

604 pointer-events: none;

605 white-space: nowrap;

606 overflow: hidden;

607 text-overflow: ellipsis;

608 }

609 }

610 }

611

612 ul.item-list {

613

614 .separator {

615 margin: 6px 0;

616 width: 100%;

617 height: 1px;

618 background: @brand-grey-5;

619 }

620

621 li.caption {

622 padding: 2px 15px;

623 padding-top: 12px;

624 list-style: none;

625

626 p {

627 color: @brand-grey-3;

628 user-select: none;

629 pointer-events: none;

630 }

631 }

632

633 li.item {

634 display: flex;

635 align-items: center;

636 padding: 15px;

637 cursor: pointer;

638

639 &.empty {

640

641 p {

642 display: block;

643 width: 100%;

644 color: @brand-grey-3;

645 text-align: center;

646 user-select: none;

647 pointer-events: none;

648 }

649 }

650

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

652

653 &:hover {

654 background: @brand-grey-7;

655 }

656

657 &.ripple {

658

659 &.ripple-active {

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

661 }

662 }

663 }

664

665 i.ico {

666 color: @brand-grey-1;

667 user-select: none;

668 pointer-events: none;

669 }

670

671 i.lang {

672 display: flex;

673 justify-content: center;

674 align-items: center;

675 font-style: normal;

676 font-weight: 600;

677 width: 24px;

678 height: 24px;

679 color: @brand-grey-1;

680 user-select: none;

681 pointer-events: none;

682 }

683

684 .info {

685 display: flex;

686 flex-direction: column;

687 margin-left: 10px;

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

689

690 p {

691 display: flex;

692 align-items: center;

693 font-weight: 500;

694 color: @brand-grey-1;

695 user-select: none;

696 pointer-events: none;

697 }

698

699 span {

700 display: block;

701 margin-top: 3px;

702 font-size: 12px;

703 color: @brand-grey-3;

704 user-select: none;

705 pointer-events: none;

706 white-space: nowrap;

707 overflow: hidden;

708 text-overflow: ellipsis;

709 }

710 }

711

712 &.active {

713 background: #EEEEEE;

714

715 &.ripple {

716

717 &.ripple-active {

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

719 }

720 }

721 }

722

723 &.inactive {

724

725 i.ico {

726 color: @brand-grey-4;

727 }

728

729 .info {

730

731 p {

732 color: @brand-grey-3;

733 }

734

735 span {

736 color: @brand-grey-3;

737 }

738 }

739 }

740 }

741 }

742}

743

744/* ### Home ### */

745body.home-body {

746

747 .notification {

748 top: 50px;

749 z-index: 2;

750

751 p.content {

752 padding: 10px 16px;

753 border-radius: 10px;

754 }

755 }

756

757 .row {

758 display: flex;

759 justify-content: center;

760 gap: 60px;

761 }

762

763 .container {

764 max-width: 1200px;

765 margin: 0 auto;

766 }

767

768 header {

769 display: flex;

770 justify-content: center;

771 align-items: center;

772 background-size: cover;

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

774 min-height: 750px;

775 padding: 0 50px;

776

777 .container {

778 // margin-top: -10vh;

779

780 .header-info {

781 display: flex;

782 flex-direction: column;

783 align-items: center;

784 }

785 }

786 }

787

788 main {

789 padding: 0 50px;

790

791 .container {

792 display: flex;

793 flex-direction: column;

794 gap: 100px;

795 padding: 200px 0;

796 }

797 }

798

799 footer {

800 display: flex;

801 align-items: center;

802 justify-content: space-between;

803 height: 54px;

804 padding: 0 30px;

805

806 .footer-item {

807 font-size: 16px;

808 }

809

810 a.footer-item {

811 text-decoration: none;

812

813 &:hover {

814 text-decoration: underline;

815 }

816 }

817

818 .footer-group {

819 display: flex;

820 gap: 25px;

821 }

822 }

823

824 .brand-logo {

825 display: none;

826 position: fixed;

827 top: 50px;

828 left: 50px;

829

830 a {

831 display: inline-block;

832 width: 44px;

833 height: 44px;

834 }

835 }

836

837 .logo {

838 width: 200px;

839 height: 200px;

840 min-width: 200px;

841 min-height: 200px;

842 max-width: 200px;

843 max-height: 200px;

844 border-radius: 100px;

845 box-shadow: 0 0 15px 0px rgba(#000000, 0.1);

846 margin: 0 auto;

847 margin-bottom: 35px;

848 }

849

850 h1.headline {

851 font-size: 70px;

852 font-weight: 600;

853 text-align: center;

854 margin-bottom: 15px;

855 }

856

857 p.description {

858 font-size: 20px;

859 font-weight: 400;

860 text-align: center;

861 max-width: 550px;

862 margin-bottom: 20px;

863 line-height: 28px;

864

865 b {

866 font-weight: inherit;

867 }

868 }

869

870 .badge-version {

871 margin-bottom: 60px;

872 }

873}