so://phie

outline

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

blob: 18fdfac8a920993292b7b53978d833cf27e8058b (11579 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 z-index: 999;

25}

26

27.header-list {

28 width: 100%;

29 height: 60px;

30 display: flex;

31 flex-direction: column;

32 pointer-events: all;

33

34 .mainbar,

35 .sidebar {

36 width: 100%;

37 display: flex;

38 justify-content: space-between;

39 padding: 8px 14px;

40 min-height: 60px;

41 height: 60px;

42

43 &.inactive {

44

45 .action-item,

46 .tool-item,

47 .option-item {

48 pointer-events: none !important;

49 }

50 }

51

52 .tool,

53 .action,

54 .option {

55

56 ul {

57 list-style-type: none;

58 display: flex;

59 margin: 0 -5px;

60

61 li {

62 width: 44px;

63 height: 44px;

64 padding: 10px;

65 margin: 0 5px;

66 border-radius: 22px;

67 cursor: pointer;

68 pointer-events: all;

69

70 &.placeholder {

71 pointer-events: none;

72 }

73

74 &.caption {

75 width: auto;

76 padding-right: 15px;

77 display: inline-flex;

78 align-items: center;

79

80 label {

81 display: inline-block;

82 padding-left: 8px;

83 font-size: 14px;

84 font-weight: 500;

85 white-space: nowrap;

86 pointer-events: none;

87 user-select: none;

88 }

89 }

90 }

91 }

92 }

93 }

94}

95

96#canvas,

97#overlay,

98.controls {

99 position: fixed;

100 top: 0;

101 left: 0;

102 right: 0;

103 bottom: 0;

104}

105

106#overlay {

107 pointer-events: none;

108}

109

110.badge {

111 display: inline-block;

112 margin-top: -1px;

113 margin-left: 5px;

114 padding: 2px 4px;

115 border-radius: 2px;

116 font-weight: 500;

117 font-size: 12px;

118}

119

120.key {

121 display: inline-block;

122 padding: 3px 8px;

123 border-radius: 3px;

124 font-weight: 500;

125

126 &.round {

127 border-radius: 999px;

128 }

129

130 &.ico {

131 padding: 2px;

132 max-width: 28px;

133 max-height: 27px;

134 display: flex;

135 justify-content: center;

136 align-items: center;

137

138 i.ico {

139 padding: 2px;

140 max-width: 28px;

141 }

142 }

143}

144

145.button {

146 display: block;

147 height: 44px;

148 padding: 0 22px;

149 border: none;

150 border-radius: 4px;

151 font-size: 16px;

152}

153

154.notification {

155 top: 90px;

156 position: fixed;

157 display: flex;

158 justify-content: center;

159 width: 100%;

160 opacity: 0;

161 text-align: center;

162 padding: 0 30px;

163

164 p {

165 display: inline-block;

166 padding: 10px 24px;

167 border-radius: 24px;

168 background: @brand-black;

169 color: white;

170 opacity: 0.95;

171 user-select: none;

172 pointer-events: none;

173 }

174}

175

176.controls {

177 pointer-events: none;

178

179 .hotbar {

180 display: flex;

181 position: fixed;

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

183 bottom: 30px;

184 z-index: -1;

185

186 &.inactive {

187

188 .color {

189 pointer-events: none !important;

190 }

191 }

192

193 .color {

194 margin: 6px;

195 width: 60px;

196 height: 60px;

197 border-radius: 30px;

198 cursor: pointer;

199 transition: transform 0.2s;

200 transform: scale(0.9);

201 pointer-events: all;

202

203 &:not(.active):hover {

204 transform: scale(1);

205 }

206

207 &.focus {

208 transform: scale(1);

209 }

210

211 &.active {

212 transform: scale(1.1);

213 }

214 }

215 }

216

217 .pencil-modal {

218 top: 75px;

219 left: 120px;

220 }

221

222 .scale-modal {

223 top: 75px;

224 left: 70px;

225 width: 400px;

226 height: 60px;

227

228 input[type="range"] {

229 -webkit-appearance: none;

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

231 margin-top: 21px;

232 margin-left: 27px;

233 height: 6px;

234 border: none;

235 border-radius: 4px;

236

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

238 -webkit-appearance: none;

239 }

240

241 &::-webkit-slider-thumb {

242 -webkit-appearance: none;

243 height: 20px;

244 width: 20px;

245 margin-top: -0px;

246 border-radius: 10px;

247 cursor: pointer;

248 }

249 }

250 }

251

252 .clear-modal {

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

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

255 width: 350px;

256 padding: 25px;

257 display: flex;

258 flex-direction: column;

259

260 .info {

261 width: 100%;

262 font-size: 20px;

263 text-align: center;

264 margin-bottom: 25px;

265 user-select: none;

266 }

267

268 .align {

269 display: flex;

270 margin: 0 -7.5px;

271

272 .btn-cancel {

273 width: 50%;

274 height: 48px;

275 border: none;

276 border-radius: 3px;

277 font-size: 16px;

278 padding-top: 1px;

279 margin: 0 7.5px;

280 }

281

282 .btn-apply {

283 width: 50%;

284 height: 48px;

285 border: none;

286 border-radius: 3px;

287 font-size: 16px;

288 padding-top: 1px;

289 margin: 0 7.5px;

290 }

291 }

292 }

293

294 .capture-modal {

295 top: 75px;

296 left: 15px;

297 }

298

299 .colors-modal {

300 flex-wrap: wrap;

301 min-width: 418px;

302 width: 418px;

303 max-width: 418px;

304 padding: calc(30px - 6px) !important;

305 top: 75px;

306 left: 15px;

307 display: flex;

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

309 overflow-y: auto;

310

311 &::-webkit-scrollbar {

312 width: 8px;

313 }

314

315 &::-webkit-scrollbar-thumb {

316 width: 8px;

317 }

318

319 .color {

320 margin: 6px;

321 width: 60px;

322 height: 60px;

323 border-radius: 30px;

324 cursor: pointer;

325 transition: transform 0.2s;

326 transform: scale(0.9);

327

328 &:not(.active):hover {

329 transform: scale(1);

330 }

331

332 &.active {

333 transform: scale(1.1);

334 }

335

336 &.focus {

337 transform: scale(1);

338 }

339 }

340 }

341

342 .multiplayer-modal {

343 top: 75px;

344 right: 120px;

345 }

346

347 .account-modal {

348 top: 75px;

349 right: 70px;

350 }

351

352 .more-modal {

353 top: 75px;

354 right: 15px;

355 }

356}

357

358.modal {

359 width: 250px;

360 position: fixed;

361 border-radius: 4px;

362 padding: 6px 0;

363 pointer-events: all;

364 overflow: hidden;

365 z-index: -1;

366 display: flex;

367

368 .main {

369 width: 248px;

370 min-width: 248px;7

371 max-width: 248px;

372 }

373

374 ul.tab-list {

375 width: 248px;

376 min-width: 248px;

377 max-width: 248px;

378 }

379

380 .header {

381 display: flex;

382 margin-bottom: 3px;

383

384 .back {

385 margin: 10px;

386 margin-top: 15px;

387 margin-right: 3px;

388 width: 36px;

389 height: 36px;

390 border-radius: 18px;

391 padding: 6px;

392 padding-left: 5px;

393 cursor: pointer;

394 }

395

396 .info {

397 display: flex;

398 flex-direction: column;

399 margin-top: 15px;

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

401

402 p {

403 display: flex;

404 align-items: center;

405 font-weight: 500;

406 user-select: none;

407 pointer-events: none;

408 }

409

410 span {

411 display: block;

412 margin-top: 3px;

413 font-size: 12px;

414 user-select: none;

415 pointer-events: none;

416 white-space: nowrap;

417 overflow: hidden;

418 text-overflow: ellipsis;

419 }

420 }

421 }

422

423 ul.item-list {

424

425 .separator {

426 margin: 6px 0;

427 width: 100%;

428 height: 1px;

429 }

430

431 li.caption {

432 padding: 2px 15px;

433 padding-top: 12px;

434 list-style: none;

435

436 p {

437 user-select: none;

438 pointer-events: none;

439 }

440 }

441

442 li.item {

443 display: flex;

444 align-items: center;

445 padding: 15px;

446 cursor: pointer;

447

448 &.empty {

449

450 p {

451 display: block;

452 width: 100%;

453 text-align: center;

454 user-select: none;

455 pointer-events: none;

456 }

457 }

458

459 i.ico {

460 user-select: none;

461 pointer-events: none;

462 }

463

464 i.lang {

465 display: flex;

466 justify-content: center;

467 align-items: center;

468 font-style: normal;

469 font-weight: 600;

470 width: 24px;

471 height: 24px;

472 user-select: none;

473 pointer-events: none;

474 }

475

476 .info {

477 display: flex;

478 flex-direction: column;

479 margin-left: 10px;

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

481

482 p {

483 display: flex;

484 align-items: center;

485 font-weight: 500;

486 user-select: none;

487 pointer-events: none;

488 }

489

490 span {

491 display: block;

492 margin-top: 3px;

493 font-size: 12px;

494 user-select: none;

495 pointer-events: none;

496 white-space: nowrap;

497 overflow: hidden;

498 text-overflow: ellipsis;

499 }

500 }

501 }

502 }

503}

504

505/* ### Home ### */

506body.home {

507

508 button.button:not(.accept) {

509 display: inline-flex;

510 justify-content: center;

511 align-items: center;

512 box-shadow: 0 0 20px 0 rgba(black, 0.05);

513 border: none;

514 border-radius: 5px;

515 height: 48px;

516 max-height: 48px;

517 min-width: 180px;

518 font-size: 16px;

519

520 &:hover {

521 box-shadow: 0 0 20px 0 rgba(black, 0.08);

522 }

523

524 &.button-prime-light {

525 height: 40px;

526 max-height: 40px;

527 min-width: 110px;

528 }

529 }

530

531 .badge-version {

532 padding: 3px 6px;

533 text-decoration: none;

534 border-radius: 3px;

535 font-weight: 500;

536 font-size: 16px;

537 user-select: none;

538 }

539

540 @media(max-width: @screen-lg) {

541

542 header {

543

544 .logo {

545 width: 140px;

546 height: 140px;

547 min-width: 140px;

548 min-height: 140px;

549 max-width: 140px;

550 max-height: 140px;

551 background-size: 160px 160px;

552 margin-bottom: 25px;

553 }

554

555 h1.headline {

556 font-size: 50px;

557 }

558

559 p.description {

560 font-size: 18px;

561 line-height: 26px;

562 margin-bottom: 20px;

563 }

564

565 .badge.badge-version {

566 margin-bottom: 40px;

567 }

568 }

569

570 .caption {

571 flex-wrap: wrap;

572 }

573 }

574

575 @media(max-width: @screen-sm) {

576

577 header {

578

579 p.description {

580 padding: 0 !important;

581 }

582 }

583 }

584

585 @media(max-width: @screen-xx) {

586

587 header {

588 padding: 0 30px !important;

589

590 h1.headline {

591 font-size: 40px;

592 }

593

594 .row {

595 flex-direction: column;

596 justify-content: flex-start;

597 align-items: center;

598 margin: -10px 0;

599

600 button {

601 margin: 10px 0;

602 min-width: 240px;

603 }

604 }

605 }

606

607 footer {

608 padding: 0 30px !important;

609

610 .footer-item {

611 font-size: 14px !important;

612 }

613

614 .footer-group {

615 margin: 0 -7.5px !important;

616

617 a {

618 margin: 0 7.5px !important;

619 }

620 }

621 }

622 }

623

624 .notification {

625 top: 50px;

626 z-index: 2;

627

628 p.content {

629 padding: 10px 16px;

630 border-radius: 10px;

631 }

632 }

633

634 .row {

635 display: flex;

636 justify-content: center;

637 margin: 0 -30px;

638

639 button {

640 margin: 0 30px;

641 }

642 }

643

644 .container {

645 max-width: 1200px;

646 margin: 0 auto;

647 }

648

649 header {

650 display: flex;

651 justify-content: center;

652 align-items: center;

653 background-size: cover;

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

655 min-height: 750px;

656 padding: 0 50px;

657

658 .container {

659

660 .header-info {

661 display: flex;

662 flex-direction: column;

663 align-items: center;

664 }

665 }

666 }

667

668 footer {

669 display: flex;

670 align-items: center;

671 justify-content: space-between;

672 height: 54px;

673 padding: 0 30px;

674

675 .footer-item {

676 font-size: 16px;

677 }

678

679 a.footer-item {

680 text-decoration: none;

681 margin: 0 12.5px;

682

683 &:hover {

684 text-decoration: underline;

685 }

686 }

687

688 .footer-group {

689 display: flex;

690 margin: 0 -12.5px;

691 }

692 }

693

694 .brand-logo {

695 display: none;

696 position: fixed;

697 top: 50px;

698 left: 50px;

699

700 a {

701 display: inline-block;

702 width: 44px;

703 height: 44px;

704 }

705 }

706

707 .logo {

708 width: 200px;

709 height: 200px;

710 min-width: 200px;

711 min-height: 200px;

712 max-width: 200px;

713 max-height: 200px;

714 border-radius: 100px;

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

716 margin: 0 auto;

717 margin-bottom: 35px;

718 }

719

720 h1.headline {

721 font-size: 70px;

722 font-weight: 600;

723 text-align: center;

724 margin-bottom: 15px;

725 }

726

727 p.description {

728 font-size: 20px;

729 font-weight: 400;

730 text-align: center;

731 max-width: 550px;

732 margin-bottom: 20px;

733 line-height: 28px;

734

735 b {

736 font-weight: inherit;

737 }

738 }

739

740 .badge-version {

741 margin-bottom: 60px;

742 }

743}

744

745.cookie {

746 display: flex;

747 position: fixed;

748 bottom: 43px;

749 align-items: center;

750 justify-content: space-between;

751 padding: 14px 24px;

752 background: @brand-blue;

753 border-radius: 4px;

754 width: 800px;

755 border: 1px solid @brand-blue;

756 z-index: 999;

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

758

759 p {

760 font-size: 16px;

761 color: white;

762 user-select: none;

763 pointer-events: none;

764 align-content: flex-start;

765 line-height: 24px;

766 }

767

768 button.button.accept {

769 font-size: 16px;

770 font-weight: 500;

771 color: white;

772 white-space: nowrap;

773 user-select: none;

774 background: inherit;

775

776 &:hover {

777 background: rgba(black, 0.05);

778 }

779 }

780

781 .group {

782 display: inline-flex;

783 align-items: center;

784 margin: 0 -7.5px;

785

786 a,

787 button {

788 margin: 0 7.5px;

789 }

790 }

791

792 a {

793 font-size: 16px;

794 color: white;

795 white-space: nowrap;

796 user-select: none;

797 text-decoration: none;

798

799 &:hover {

800 text-decoration: underline;

801 }

802 }

803}