so://phie

outline

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

blob: 0d7c9f5bf7f984115323d45908c8307ebd4b7517 (11024 bytes)[doc][blame][raw]

1@brand-dark: #333C41;

2@brand-light: #E0E0E0;

3@brand-night: #2D353A;

4@brand-grey: #828282;

5

6@media(prefers-color-scheme: dark) {

7

8 /* ### Home ### */

9

10 body.home {

11 background: @brand-dark;

12

13 header {

14 background-image: url('../asset/img/background-dark.png');

15

16 .brand-logo {

17

18 a {

19 background-image: url('../asset/img/brand-logo-dark.png');

20 }

21 }

22

23 .logo {

24 background-image: url('../asset/img/logo-dark.png');

25 background-position: center;

26 }

27

28 h1.headline {

29 color: white;

30 }

31

32 p.description {

33 color: @brand-light;

34

35 b {

36 color: @brand-blue;

37 }

38 }

39 }

40

41 main {

42 background: @brand-dark;

43 }

44

45 footer {

46 background: @brand-night;

47

48 .footer-item {

49 color: darken(@brand-light, 20%);

50 }

51 }

52

53 button.button {

54

55 &.button-prime {

56 background: @brand-blue;

57 color: white;

58

59 &:hover {

60 background: darken(@brand-blue, 2%);

61 }

62 }

63

64 &.button-default {

65 background: darken(@brand-night, 7%);

66 color: @brand-light;

67

68 &:hover {

69 background: darken(@brand-night, 8%);

70 color: lighten(@brand-light, 10%);

71 }

72 }

73

74 &.button-prime-light {

75 background: rgba(@brand-blue, 0.1);

76 color: lighten(@brand-blue, 8%);

77

78 &:hover {

79 background: rgba(@brand-blue, 0.13);

80 color: lighten(@brand-blue, 12%);

81 }

82 }

83 }

84

85 .badge-version {

86 background: @brand-night;

87 color: @brand-light;

88 }

89

90 .caption {

91

92 h2.caption-headline {

93 color: white;

94

95 b {

96 color: @brand-blue;

97 }

98 }

99

100 .caption-info {

101

102 p {

103 color: @brand-light;

104 }

105 }

106 }

107 }

108

109 /* ### App ### */

110

111 .wrapper {

112 background: white;

113 }

114

115 .header-list {

116 background: @brand-dark;

117 border-bottom: 1px solid @brand-dark;

118

119 .mainbar,

120 .sidebar {

121

122 .tool,

123 .action,

124 .option {

125

126 ul {

127

128 li {

129

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

131 background: rgba(@brand-night, 0.95);

132

133 &.ripple {

134

135 &.ripple-active {

136 background: lighten(rgba(@brand-night, 0.95), -2%);

137 }

138 }

139 }

140

141 &.active {

142 background: rgba(@brand-night, 0.95);

143

144 &.ripple {

145

146 &.ripple-active {

147 background: lighten(rgba(@brand-night, 0.95), -2%);

148 }

149 }

150 }

151

152 &.inactive {

153

154 i.ico {

155 color: @brand-grey;

156

157 svg {

158

159 path {

160 fill: @brand-grey;

161 }

162 }

163 }

164 }

165

166 i.ico {

167 color: @brand-light;

168

169 svg {

170

171 path {

172 fill: @brand-light;

173 }

174 }

175 }

176 }

177 }

178 }

179 }

180 }

181

182 .badge {

183

184 &.prime {

185 background: @brand-blue;

186 }

187

188 &.beta {

189 background: @brand-green;

190 }

191 }

192

193 .key {

194 color: @brand-grey-2;

195 background: @brand-grey-7;

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

197 }

198

199 .button {

200 background: darken(@brand-night, 4%);

201 color: @brand-light;

202

203 &:hover {

204

205 &.ripple-active {

206 background: darken(@brand-night, 5%);

207 }

208 }

209

210 &.outline {

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

212

213 &:hover {

214

215 &.ripple-active {

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

217 }

218 }

219 }

220

221 &.prime {

222 background: @brand-blue;

223 color: white;

224

225 &:hover {

226

227 &.ripple-active {

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

229 }

230 }

231 }

232

233 &.danger {

234 background: @brand-red;

235 color: white;

236

237 &:hover {

238

239 &.ripple-active {

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

241 }

242 }

243 }

244 }

245

246 .notification {

247

248 p {

249 background: @brand-black;

250 color: white;

251 }

252 }

253

254 .controls {

255

256 .hotbar {

257

258 .color {

259 background: @brand-bright;

260 }

261 }

262

263 .scale-modal {

264

265 input[type="range"] {

266 background: @brand-grey-1;

267

268 &::-webkit-slider-thumb {

269 background: @brand-grey-3;

270

271 &:hover {

272 background: darken(@brand-grey-3, 2%);

273 }

274 }

275 }

276 }

277

278 .clear-modal {

279

280 .info {

281 color: @brand-light;

282 }

283

284 .align {

285

286 .btn-apply {

287 border-color: grey;

288 }

289 }

290 }

291

292 .colors-modal {

293

294 &::-webkit-scrollbar-thumb {

295 background: @brand-night;

296

297 &:hover,

298 &:active {

299 background: darken(@brand-night, 2%);

300 }

301 }

302

303 .color {

304 background: @brand-bright;

305 }

306 }

307 }

308

309 .modal {

310 background: @brand-dark;

311 border: 1px solid @brand-dark;

312

313 .header {

314

315 .back {

316

317 i.ico {

318 color: @brand-light;

319 }

320

321 &:hover {

322 background: @brand-night;

323 }

324

325 &.ripple {

326

327 &.ripple-active {

328 background: lighten(@brand-night, -2%);

329 }

330 }

331 }

332

333 .info {

334

335 p {

336 color: @brand-light;

337 }

338

339 span {

340 color: @brand-grey-3;

341 }

342 }

343 }

344

345 ul.item-list {

346

347 .separator {

348 background: lighten(@brand-dark, 5%);

349 }

350

351 li.caption {

352

353 p {

354 color: @brand-grey-3;

355 }

356 }

357

358 li.item {

359

360 &.empty {

361

362 p {

363 color: @brand-light;

364 }

365 }

366

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

368

369 &:hover {

370 background: lighten(@brand-dark, -2%);

371 }

372

373 &.ripple {

374

375 &.ripple-active {

376 background: lighten(@brand-dark, -2%);

377 }

378 }

379 }

380

381 i.ico {

382 color: @brand-light;

383

384 svg {

385

386 path {

387 fill: @brand-light;

388 }

389 }

390 }

391

392 i.lang {

393 color: @brand-light;

394 }

395

396 .info {

397

398 p {

399 color: @brand-light;

400 }

401

402 span {

403 color: @brand-grey-3;

404 }

405 }

406

407 &.active {

408 background: @brand-night;

409

410 &.ripple {

411

412 &.ripple-active {

413 background: lighten(@brand-night, -2%);

414 }

415 }

416 }

417

418 &.inactive {

419

420 i.ico {

421 color: @brand-grey-3;

422 }

423

424 .info {

425

426 p {

427 color: @brand-grey-3;

428 }

429

430 span {

431 color: @brand-grey-3;

432 }

433 }

434 }

435 }

436 }

437 }

438}

439

440body.theme-dark {

441

442 /* ### Home ### */

443

444 &.home {

445 background: @brand-dark;

446

447 header {

448 background-image: url('../asset/img/background-dark.png');

449

450 .brand-logo {

451

452 a {

453 background-image: url('../asset/img/brand-logo-dark.png');

454 }

455 }

456

457 .logo {

458 background-image: url('../asset/img/logo-dark.png');

459 background-position: center;

460 }

461

462 h1.headline {

463 color: white;

464 }

465

466 p.description {

467 color: @brand-light;

468

469 b {

470 color: @brand-blue;

471 }

472 }

473 }

474

475 main {

476 background: @brand-dark;

477 }

478

479 footer {

480 background: @brand-night;

481

482 .footer-item {

483 color: darken(@brand-light, 20%);

484 }

485 }

486

487 button.button {

488

489 &.button-prime {

490 background: @brand-blue;

491 color: white;

492

493 &:hover {

494 background: darken(@brand-blue, 2%);

495 }

496 }

497

498 &.button-default {

499 background: darken(@brand-night, 7%);

500 color: @brand-light;

501

502 &:hover {

503 background: darken(@brand-night, 8%);

504 color: lighten(@brand-light, 10%);

505 }

506 }

507

508 &.button-prime-light {

509 background: rgba(@brand-blue, 0.1);

510 color: lighten(@brand-blue, 8%);

511

512 &:hover {

513 background: rgba(@brand-blue, 0.13);

514 color: lighten(@brand-blue, 12%);

515 }

516 }

517 }

518

519 .badge-version {

520 background: @brand-night;

521 color: @brand-light;

522 }

523

524 .caption {

525

526 h2.caption-headline {

527 color: white;

528

529 b {

530 color: @brand-blue;

531 }

532 }

533

534 .caption-info {

535

536 p {

537 color: @brand-light;

538 }

539 }

540 }

541 }

542

543 /* ### App ### */

544

545 .wrapper {

546 background: white;

547 }

548

549 .header-list {

550 background: @brand-dark;

551 border-bottom: 1px solid @brand-dark;

552

553 .mainbar,

554 .sidebar {

555

556 .tool,

557 .action,

558 .option {

559

560 ul {

561

562 li {

563

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

565 background: rgba(@brand-night, 0.95);

566

567 &.ripple {

568

569 &.ripple-active {

570 background: lighten(rgba(@brand-night, 0.95), -2%);

571 }

572 }

573 }

574

575 &.active {

576 background: rgba(@brand-night, 0.95);

577

578 &.ripple {

579

580 &.ripple-active {

581 background: lighten(rgba(@brand-night, 0.95), -2%);

582 }

583 }

584 }

585

586 &.inactive {

587

588 i.ico {

589 color: @brand-grey;

590

591 svg {

592

593 path {

594 fill: @brand-grey;

595 }

596 }

597 }

598 }

599

600 i.ico {

601 color: @brand-light;

602

603 svg {

604

605 path {

606 fill: @brand-light;

607 }

608 }

609 }

610 }

611 }

612 }

613 }

614 }

615

616 .badge {

617

618 &.prime {

619 background: @brand-blue;

620 }

621

622 &.beta {

623 background: @brand-green;

624 }

625 }

626

627 .key {

628 color: @brand-grey-2;

629 background: @brand-grey-7;

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

631 }

632

633 .button {

634 background: darken(@brand-night, 4%);

635 color: @brand-light;

636

637 &:hover {

638

639 &.ripple-active {

640 background: darken(@brand-night, 5%);

641 }

642 }

643

644 &.outline {

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

646

647 &:hover {

648

649 &.ripple-active {

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

651 }

652 }

653 }

654

655 &.prime {

656 background: @brand-blue;

657 color: white;

658

659 &:hover {

660

661 &.ripple-active {

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

663 }

664 }

665 }

666

667 &.danger {

668 background: @brand-red;

669 color: white;

670

671 &:hover {

672

673 &.ripple-active {

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

675 }

676 }

677 }

678 }

679

680 .notification {

681

682 p {

683 background: @brand-black;

684 color: white;

685 }

686 }

687

688 .controls {

689

690 .hotbar {

691

692 .color {

693 background: @brand-bright;

694 }

695 }

696

697 .scale-modal {

698

699 input[type="range"] {

700 background: @brand-grey-1;

701

702 &::-webkit-slider-thumb {

703 background: @brand-grey-3;

704

705 &:hover {

706 background: darken(@brand-grey-3, 2%);

707 }

708 }

709 }

710 }

711

712 .clear-modal {

713

714 .info {

715 color: @brand-light;

716 }

717

718 .align {

719

720 .btn-apply {

721 border-color: grey;

722 }

723 }

724 }

725

726 .colors-modal {

727

728 &::-webkit-scrollbar-thumb {

729 background: @brand-night;

730

731 &:hover,

732 &:active {

733 background: darken(@brand-night, 2%);

734 }

735 }

736

737 .color {

738 background: @brand-bright;

739 }

740 }

741 }

742

743 .modal {

744 background: @brand-dark;

745 border: 1px solid @brand-dark;

746

747 .header {

748

749 .back {

750

751 i.ico {

752 color: @brand-light;

753 }

754

755 &:hover {

756 background: @brand-night;

757 }

758

759 &.ripple {

760

761 &.ripple-active {

762 background: lighten(@brand-night, -2%);

763 }

764 }

765 }

766

767 .info {

768

769 p {

770 color: @brand-light;

771 }

772

773 span {

774 color: @brand-grey-3;

775 }

776 }

777 }

778

779 ul.item-list {

780

781 .separator {

782 background: lighten(@brand-dark, 5%);

783 }

784

785 li.caption {

786

787 p {

788 color: @brand-grey-3;

789 }

790 }

791

792 li.item {

793

794 &.empty {

795

796 p {

797 color: @brand-light;

798 }

799 }

800

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

802

803 &:hover {

804 background: lighten(@brand-dark, -2%);

805 }

806

807 &.ripple {

808

809 &.ripple-active {

810 background: lighten(@brand-dark, -2%);

811 }

812 }

813 }

814

815 i.ico {

816 color: @brand-light;

817

818 svg {

819

820 path {

821 fill: @brand-light;

822 }

823 }

824 }

825

826 i.lang {

827 color: @brand-light;

828 }

829

830 .info {

831

832 p {

833 color: @brand-light;

834 }

835

836 span {

837 color: @brand-grey-3;

838 }

839 }

840

841 &.active {

842 background: @brand-night;

843

844 &.ripple {

845

846 &.ripple-active {

847 background: lighten(@brand-night, -2%);

848 }

849 }

850 }

851

852 &.inactive {

853

854 i.ico {

855 color: @brand-grey-3;

856 }

857

858 .info {

859

860 p {

861 color: @brand-grey-3;

862 }

863

864 span {

865 color: @brand-grey-3;

866 }

867 }

868 }

869 }

870 }

871 }

872}