so://phie

outline

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

blob: 1813483c126388553bcd8b7e79c084512b35dd3f (12519 bytes)[doc][blame][raw]

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

2html,

3body {

4 overflow: hidden;

5}

6

7.wrapper {

8 position: fixed;

9 top: 0;

10 left: 0;

11 right: 0;

12 bottom: 0;

13 background: white;

14 z-index: 999;

15}

16

17.header-list {

18 width: 100%;

19 height: 60px;

20 background: white;

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

22 display: flex;

23 flex-direction: column;

24 pointer-events: all;

25

26 .sidebar {

27 justify-content: flex-end !important;

28 }

29

30 .mainbar,

31 .sidebar {

32 width: 100%;

33 display: flex;

34 justify-content: space-between;

35 padding: 8px 14px;

36 min-height: 60px;

37 height: 60px;

38

39 &.inactive {

40

41 .action-item,

42 .tool-item,

43 .option-item {

44 pointer-events: none !important;

45 }

46 }

47

48 .tool,

49 .action,

50 .option {

51

52 ul {

53 list-style-type: none;

54 display: flex;

55 gap: 10px;

56

57 li {

58 width: 44px;

59 height: 44px;

60 padding: 10px;

61 border-radius: 22px;

62 cursor: pointer;

63 pointer-events: all;

64

65 &.placeholder {

66 pointer-events: none;

67 }

68

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

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

71

72 &.ripple {

73

74 &.ripple-active {

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

76 }

77 }

78 }

79

80 &.active {

81 background: rgba(#EEEEEE, 0.95);

82

83 &.ripple {

84

85 &.ripple-active {

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

87 }

88 }

89 }

90

91 &.inactive {

92

93 i.ico {

94 color: @brand-grey-4;

95 }

96 }

97

98 i.ico {

99 color: @brand-grey-1;

100 }

101 }

102 }

103 }

104 }

105}

106

107#canvas,

108#overlay,

109.controls {

110 position: fixed;

111 top: 0;

112 left: 0;

113 right: 0;

114 bottom: 0;

115}

116

117#overlay {

118 pointer-events: none;

119}

120

121.badge {

122 display: inline-block;

123 margin-top: -1px;

124 margin-left: 5px;

125 padding: 2px 4px;

126 border-radius: 2px;

127 font-weight: 500;

128 font-size: 12px;

129 color: white !important;

130

131 &.prime {

132 background: @brand-blue;

133 }

134

135 &.beta {

136 background: @brand-green;

137 }

138}

139

140.key {

141 display: inline-block;

142 padding: 3px 8px;

143 border-radius: 3px;

144 color: @brand-grey-2;

145 font-weight: 500;

146 background: @brand-grey-7;

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

148

149 &.round {

150 border-radius: 999px;

151 }

152

153 &.ico {

154 padding: 2px;

155 max-width: 28px;

156 max-height: 27px;

157 display: flex;

158 justify-content: center;

159 align-items: center;

160

161 i.ico {

162 padding: 2px;

163 max-width: 28px;

164 }

165 }

166}

167

168.button {

169 display: block;

170 height: 44px;

171 padding: 0 22px;

172 border: none;

173 border-radius: 4px;

174 background: @brand-grey-6;

175 color: @brand-black;

176 font-size: 16px;

177

178 &:hover {

179

180 &.ripple-active {

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

182 }

183 }

184

185 &.outline {

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

187 background: transparent;

188

189 &:hover {

190

191 &.ripple-active {

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

193 }

194 }

195 }

196

197 &.prime {

198 background: @brand-blue;

199 color: white;

200

201 &:hover {

202

203 &.ripple-active {

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

205 }

206 }

207 }

208

209 &.danger {

210 background: @brand-red;

211 color: white;

212

213 &:hover {

214

215 &.ripple-active {

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

217 }

218 }

219 }

220}

221

222.notification {

223 top: 90px;

224 position: fixed;

225 display: flex;

226 justify-content: center;

227 width: 100%;

228 opacity: 0;

229 text-align: center;

230

231 p {

232 display: inline-block;

233 padding: 10px 24px;

234 border-radius: 24px;

235 background: @brand-black;

236 color: white;

237 opacity: 0.95;

238 user-select: none;

239 pointer-events: none;

240 }

241}

242

243.controls {

244 pointer-events: none;

245

246 .hotbar {

247 display: flex;

248 position: fixed;

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

250 bottom: 30px;

251 z-index: -1;

252

253 &.inactive {

254

255 .color {

256 pointer-events: none !important;

257 }

258 }

259

260 .color {

261 margin: 6px;

262 width: 60px;

263 height: 60px;

264 border-radius: 30px;

265 background: #EEE;

266 cursor: pointer;

267 transition: transform 0.2s;

268 transform: scale(0.9);

269 pointer-events: all;

270

271 &:not(.active):hover {

272 transform: scale(1);

273 }

274

275 &.focus {

276 transform: scale(1);

277 }

278

279 &.active {

280 transform: scale(1.1);

281 }

282 }

283 }

284

285 .pencil-modal {

286 top: 75px;

287 left: 120px;

288 }

289

290 .scale-modal {

291 top: 75px;

292 left: 70px;

293 width: 400px;

294 height: 60px;

295

296 input[type="range"] {

297 -webkit-appearance: none;

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

299 margin-top: 21px;

300 margin-left: 27px;

301 height: 6px;

302 background: #EEEEEE;

303 border: none;

304 border-radius: 4px;

305

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

307 -webkit-appearance: none;

308 }

309

310 &::-webkit-slider-thumb {

311 -webkit-appearance: none;

312 height: 20px;

313 width: 20px;

314 margin-top: -0px;

315 background: @brand-grey-3;

316 border-radius: 10px;

317 cursor: pointer;

318

319 &:hover {

320 background: @brand-grey-2;

321 }

322 }

323 }

324 }

325

326 .clear-modal {

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

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

329 width: 350px;

330 padding: 25px;

331 display: flex;

332 flex-direction: column;

333

334 .info {

335 width: 100%;

336 font-size: 20px;

337 text-align: center;

338 margin-bottom: 25px;

339 color: @brand-black;

340 user-select: none;

341 }

342

343 .align {

344 display: flex;

345 gap: 15px;

346

347 .btn-cancel {

348 width: 50%;

349 height: 48px;

350 border: none;

351 border-radius: 3px;

352 font-size: 16px;

353 padding-top: 1px;

354 }

355

356 .btn-apply {

357 width: 50%;

358 height: 48px;

359 border: none;

360 border-radius: 3px;

361 border-color: grey;

362 font-size: 16px;

363 padding-top: 1px;

364 }

365 }

366 }

367

368 .colors-modal {

369 flex-wrap: wrap;

370 min-width: 418px;

371 width: 418px;

372 max-width: 418px;

373 padding: 30px !important;

374 top: 75px;

375 left: 15px;

376 display: flex;

377 gap: 12px;

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

379 overflow-y: auto;

380

381 &::-webkit-scrollbar {

382 width: 8px;

383 }

384

385 &::-webkit-scrollbar-thumb {

386 width: 8px;

387 background: @brand-grey-5;

388

389 &:hover,

390 &:active {

391 background: @brand-grey-4;

392 }

393 }

394

395 .color {

396 width: 60px;

397 height: 60px;

398 border-radius: 30px;

399 background: #EEE;

400 cursor: pointer;

401 transition: transform 0.2s;

402 transform: scale(0.9);

403

404 &:not(.active):hover {

405 transform: scale(1);

406 }

407

408 &.active {

409 transform: scale(1.1);

410 }

411

412 &.focus {

413 transform: scale(1);

414 }

415 }

416 }

417

418 .multiplayer-modal {

419 top: 75px;

420 right: 120px;

421 }

422

423 .account-modal {

424 top: 75px;

425 right: 70px;

426 }

427

428 .more-modal {

429 top: 75px;

430 right: 15px;

431 }

432

433 .help-modal {

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

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

436 width: 800px;

437 height: 500px;

438 display: flex;

439 padding: 0;

440

441 .side {

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

443 width: 230px;

444 min-width: 230px;

445 overflow: hidden;

446

447 ul.item-list {

448 width: 100%;

449 padding: 6px 0;

450

451 li.item {

452 display: flex;

453 flex-direction: column;

454

455 .info {

456 font-size: 16px;

457 width: 100%;

458 max-width: 100%;

459 margin-left: 0;

460 }

461 }

462 }

463 }

464

465 .content {

466 padding: 6px 0;

467 overflow-y: auto;

468

469 &::-webkit-scrollbar {

470 width: 8px;

471 }

472

473 &::-webkit-scrollbar-thumb {

474 width: 8px;

475 background: @brand-grey-5;

476

477 &:hover,

478 &:active {

479 background: @brand-grey-4;

480 }

481 }

482

483 ul.content-list {

484 list-style-type: none;

485 pointer-events: none;

486

487 li.content-item {

488 pointer-events: none;

489 padding: 15px 20px;

490 padding-top: 25px;

491

492 p {

493 font-size: 16px;

494 color: @brand-grey-2;

495 line-height: 20px;

496 user-select: none;

497 pointer-events: none;

498 margin-bottom: 40px;

499 }

500

501 h2 {

502 font-size: 24px;

503 font-weight: 500;

504 margin-bottom: 20px;

505 user-select: none;

506 pointer-events: none;

507 color: @brand-grey-1;

508 }

509

510 h3 {

511 font-size: 22px;

512 font-weight: 500;

513 margin-bottom: 20px;

514 user-select: none;

515 pointer-events: none;

516 color: @brand-grey-1;

517 }

518 }

519 }

520 }

521 }

522}

523

524.modal {

525 width: 250px;

526 position: fixed;

527 background: white;

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

529 border-radius: 4px;

530 padding: 6px 0;

531 pointer-events: all;

532 overflow: hidden;

533 z-index: -1;

534 display: flex;

535

536 .main {

537 width: 248px;

538 min-width: 248px;7

539 max-width: 248px;

540 }

541

542 ul.tab-list {

543 width: 248px;

544 min-width: 248px;

545 max-width: 248px;

546 }

547

548 .header {

549 display: flex;

550 margin-bottom: 3px;

551

552 .back {

553 margin: 10px;

554 margin-top: 15px;

555 margin-right: 3px;

556 width: 36px;

557 height: 36px;

558 border-radius: 18px;

559 padding: 6px;

560 padding-left: 5px;

561 cursor: pointer;

562

563 i.ico {

564 color: @brand-grey-0;

565 }

566

567 &:hover {

568 background: @brand-grey-7;

569 }

570

571 &.ripple {

572

573 &.ripple-active {

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

575 }

576 }

577 }

578

579 .info {

580 display: flex;

581 flex-direction: column;

582 margin-top: 15px;

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

584

585 p {

586 display: flex;

587 align-items: center;

588 font-weight: 500;

589 color: @brand-grey-1;

590 user-select: none;

591 pointer-events: none;

592 }

593

594 span {

595 display: block;

596 margin-top: 3px;

597 font-size: 12px;

598 color: @brand-grey-3;

599 user-select: none;

600 pointer-events: none;

601 white-space: nowrap;

602 overflow: hidden;

603 text-overflow: ellipsis;

604 }

605 }

606 }

607

608 ul.item-list {

609

610 .separator {

611 margin: 6px 0;

612 width: 100%;

613 height: 1px;

614 background: @brand-grey-5;

615 }

616

617 li.caption {

618 padding: 2px 15px;

619 padding-top: 12px;

620 list-style: none;

621

622 p {

623 color: @brand-grey-3;

624 user-select: none;

625 pointer-events: none;

626 }

627 }

628

629 li.item {

630 display: flex;

631 align-items: center;

632 padding: 15px;

633 cursor: pointer;

634

635 &.empty {

636

637 p {

638 display: block;

639 width: 100%;

640 color: @brand-grey-3;

641 text-align: center;

642 user-select: none;

643 pointer-events: none;

644 }

645 }

646

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

648

649 &:hover {

650 background: @brand-grey-7;

651 }

652

653 &.ripple {

654

655 &.ripple-active {

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

657 }

658 }

659 }

660

661 i.ico {

662 color: @brand-grey-1;

663 user-select: none;

664 pointer-events: none;

665 }

666

667 i.lang {

668 display: flex;

669 justify-content: center;

670 align-items: center;

671 font-style: normal;

672 font-weight: 600;

673 width: 24px;

674 height: 24px;

675 color: @brand-grey-1;

676 user-select: none;

677 pointer-events: none;

678 }

679

680 .info {

681 display: flex;

682 flex-direction: column;

683 margin-left: 10px;

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

685

686 p {

687 display: flex;

688 align-items: center;

689 font-weight: 500;

690 color: @brand-grey-1;

691 user-select: none;

692 pointer-events: none;

693 }

694

695 span {

696 display: block;

697 margin-top: 3px;

698 font-size: 12px;

699 color: @brand-grey-3;

700 user-select: none;

701 pointer-events: none;

702 white-space: nowrap;

703 overflow: hidden;

704 text-overflow: ellipsis;

705 }

706 }

707

708 &.active {

709 background: #EEEEEE;

710

711 &.ripple {

712

713 &.ripple-active {

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

715 }

716 }

717 }

718

719 &.inactive {

720

721 i.ico {

722 color: @brand-grey-4;

723 }

724

725 .info {

726

727 p {

728 color: @brand-grey-3;

729 }

730

731 span {

732 color: @brand-grey-3;

733 }

734 }

735 }

736 }

737 }

738}

739

740/* ### Home ### */

741body.home-body {

742

743 .notification {

744 top: 50px;

745 z-index: 2;

746 }

747

748 .row {

749 display: flex;

750 justify-content: center;

751 gap: 60px;

752 }

753

754 .container {

755 max-width: 1200px;

756 margin: 0 auto;

757 }

758

759 header {

760 display: flex;

761 justify-content: center;

762 align-items: center;

763 background-size: cover;

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

765 min-height: 750px;

766 padding: 0 50px;

767

768 .container {

769 // margin-top: -10vh;

770

771 .header-info {

772 display: flex;

773 flex-direction: column;

774 align-items: center;

775 }

776 }

777 }

778

779 main {

780 padding: 0 50px;

781

782 .container {

783 display: flex;

784 flex-direction: column;

785 gap: 100px;

786 padding: 200px 0;

787 }

788 }

789

790 footer {

791 display: flex;

792 align-items: center;

793 justify-content: space-between;

794 height: 54px;

795 padding: 0 30px;

796

797 .footer-item {

798 font-size: 16px;

799 }

800

801 a.footer-item {

802 text-decoration: none;

803

804 &:hover {

805 text-decoration: underline;

806 }

807 }

808

809 .footer-group {

810 display: flex;

811 gap: 25px;

812 }

813 }

814

815 .brand-logo {

816 display: none;

817 position: fixed;

818 top: 50px;

819 left: 50px;

820

821 a {

822 display: inline-block;

823 width: 44px;

824 height: 44px;

825 }

826 }

827

828 .logo {

829 width: 200px;

830 height: 200px;

831 min-width: 200px;

832 min-height: 200px;

833 max-width: 200px;

834 max-height: 200px;

835 border-radius: 100px;

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

837 margin: 0 auto;

838 margin-bottom: 35px;

839 }

840

841 h1.headline {

842 font-size: 70px;

843 font-weight: 600;

844 text-align: center;

845 margin-bottom: 15px;

846 }

847

848 p.description {

849 font-size: 20px;

850 font-weight: 400;

851 text-align: center;

852 max-width: 550px;

853 margin-bottom: 20px;

854 line-height: 28px;

855

856 b {

857 font-weight: inherit;

858 }

859 }

860

861 .badge-version {

862 margin-bottom: 60px;

863 }

864}