so://phie

outline

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

blob: 5c4f43ae8003328e5c576efcf332cee40e0be9a4 (10852 bytes)[doc][blame][raw]

1@brand-dark: #333C41;

2@brand-light: #F5F5F5;

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

91 /* ### App ### */

92

93 .wrapper {

94 background: @brand-dark;

95 }

96

97 .header-list {

98 background: @brand-dark;

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

100

101 .mainbar,

102 .sidebar {

103

104 .tool,

105 .action,

106 .option {

107

108 ul {

109

110 li {

111

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

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

114

115 &.ripple {

116

117 &.ripple-active {

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

119 }

120 }

121 }

122

123 &.active {

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

125

126 &.ripple {

127

128 &.ripple-active {

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

130 }

131 }

132 }

133

134 &.inactive {

135

136 i.ico {

137 color: @brand-grey;

138

139 svg {

140

141 path {

142 fill: @brand-grey;

143 }

144 }

145 }

146 }

147

148 i.ico {

149 color: @brand-light;

150

151 svg {

152

153 path {

154 fill: @brand-light;

155 }

156 }

157 }

158

159 &.caption {

160

161 label {

162 color: @brand-light;

163 }

164 }

165 }

166 }

167 }

168 }

169 }

170

171 .badge {

172

173 &.prime {

174 background: @brand-blue;

175 }

176

177 &.beta {

178 background: @brand-green;

179 }

180 }

181

182 .key {

183 color: @brand-grey-2;

184 background: @brand-grey-7;

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

186 }

187

188 .button {

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

190 color: @brand-light;

191

192 &:hover {

193

194 &.ripple-active {

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

196 }

197 }

198

199 &.outline {

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

201

202 &:hover {

203

204 &.ripple-active {

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

206 }

207 }

208 }

209

210 &.prime {

211 background: @brand-blue;

212 color: white;

213

214 &:hover {

215

216 &.ripple-active {

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

218 }

219 }

220 }

221

222 &.danger {

223 background: @brand-red;

224 color: white;

225

226 &:hover {

227

228 &.ripple-active {

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

230 }

231 }

232 }

233 }

234

235 .notification {

236

237 p {

238 background: @brand-black;

239 color: white;

240 }

241 }

242

243 .controls {

244

245 .hotbar {

246

247 .color {

248 background: @brand-bright;

249 }

250 }

251

252 .scale-modal {

253

254 input[type="range"] {

255 background: @brand-grey-1;

256

257 &::-webkit-slider-thumb {

258 background: @brand-grey-3;

259

260 &:hover {

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

262 }

263 }

264 }

265 }

266

267 .clear-modal {

268

269 .info {

270 color: @brand-light;

271 }

272

273 .align {

274

275 .btn-apply {

276 border-color: grey;

277 }

278 }

279 }

280

281 .colors-modal {

282

283 &::-webkit-scrollbar-thumb {

284 background: @brand-night;

285

286 &:hover,

287 &:active {

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

289 }

290 }

291

292 .color {

293 background: @brand-bright;

294 }

295 }

296 }

297

298 .modal {

299 background: @brand-dark;

300 border: 1px solid @brand-dark;

301

302 .header {

303

304 .back {

305

306 i.ico {

307 color: @brand-light;

308 }

309

310 &:hover {

311 background: @brand-night;

312 }

313

314 &.ripple {

315

316 &.ripple-active {

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

318 }

319 }

320 }

321

322 .info {

323

324 p {

325 color: @brand-light;

326 }

327

328 span {

329 color: @brand-grey-3;

330 }

331 }

332 }

333

334 ul.item-list {

335

336 .separator {

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

338 }

339

340 li.caption {

341

342 p {

343 color: @brand-grey-3;

344 }

345 }

346

347 li.item {

348

349 &.empty {

350

351 p {

352 color: @brand-light;

353 }

354 }

355

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

357

358 &:hover {

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

360 }

361

362 &.ripple {

363

364 &.ripple-active {

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

366 }

367 }

368 }

369

370 i.ico {

371 color: @brand-light;

372

373 svg {

374

375 path {

376 fill: @brand-light;

377 }

378 }

379 }

380

381 i.lang {

382 color: @brand-light;

383 }

384

385 .info {

386

387 p {

388 color: @brand-light;

389 }

390

391 span {

392 color: @brand-grey-3;

393 }

394 }

395

396 &.active {

397 background: @brand-night;

398

399 &.ripple {

400

401 &.ripple-active {

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

403 }

404 }

405 }

406

407 &.inactive {

408

409 i.ico {

410 color: @brand-grey-3;

411 }

412

413 .info {

414

415 p {

416 color: @brand-grey-3;

417 }

418

419 span {

420 color: @brand-grey-3;

421 }

422 }

423 }

424 }

425 }

426 }

427}

428

429body.theme-dark {

430

431 /* ### Home ### */

432

433 &.home {

434 background: @brand-dark;

435

436 header {

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

438

439 .brand-logo {

440

441 a {

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

443 }

444 }

445

446 .logo {

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

448 background-position: center;

449 }

450

451 h1.headline {

452 color: white;

453 }

454

455 p.description {

456 color: @brand-light;

457

458 b {

459 color: @brand-blue;

460 }

461 }

462 }

463

464 main {

465 background: @brand-dark;

466 }

467

468 footer {

469 background: @brand-night;

470

471 .footer-item {

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

473 }

474 }

475

476 button.button {

477

478 &.button-prime {

479 background: @brand-blue;

480 color: white;

481

482 &:hover {

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

484 }

485 }

486

487 &.button-default {

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

489 color: @brand-light;

490

491 &:hover {

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

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

494 }

495 }

496

497 &.button-prime-light {

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

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

500

501 &:hover {

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

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

504 }

505 }

506 }

507

508 .badge-version {

509 background: @brand-night;

510 color: @brand-light;

511 }

512 }

513

514 /* ### App ### */

515

516 .wrapper {

517 background: @brand-dark;

518 }

519

520 .header-list {

521 background: @brand-dark;

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

523

524 .mainbar,

525 .sidebar {

526

527 .tool,

528 .action,

529 .option {

530

531 ul {

532

533 li {

534

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

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

537

538 &.ripple {

539

540 &.ripple-active {

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

542 }

543 }

544 }

545

546 &.active {

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

548

549 &.ripple {

550

551 &.ripple-active {

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

553 }

554 }

555 }

556

557 &.inactive {

558

559 i.ico {

560 color: @brand-grey;

561

562 svg {

563

564 path {

565 fill: @brand-grey;

566 }

567 }

568 }

569 }

570

571 i.ico {

572 color: @brand-light;

573

574 svg {

575

576 path {

577 fill: @brand-light;

578 }

579 }

580 }

581

582 &.caption {

583

584 label {

585 color: @brand-light;

586 }

587 }

588 }

589 }

590 }

591 }

592 }

593

594 .badge {

595

596 &.prime {

597 background: @brand-blue;

598 }

599

600 &.beta {

601 background: @brand-green;

602 }

603 }

604

605 .key {

606 color: @brand-grey-2;

607 background: @brand-grey-7;

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

609 }

610

611 .button {

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

613 color: @brand-light;

614

615 &:hover {

616

617 &.ripple-active {

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

619 }

620 }

621

622 &.outline {

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

624

625 &:hover {

626

627 &.ripple-active {

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

629 }

630 }

631 }

632

633 &.prime {

634 background: @brand-blue;

635 color: white;

636

637 &:hover {

638

639 &.ripple-active {

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

641 }

642 }

643 }

644

645 &.danger {

646 background: @brand-red;

647 color: white;

648

649 &:hover {

650

651 &.ripple-active {

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

653 }

654 }

655 }

656 }

657

658 .notification {

659

660 p {

661 background: @brand-black;

662 color: white;

663 }

664 }

665

666 .controls {

667

668 .hotbar {

669

670 .color {

671 background: @brand-bright;

672 }

673 }

674

675 .scale-modal {

676

677 input[type="range"] {

678 background: @brand-grey-1;

679

680 &::-webkit-slider-thumb {

681 background: @brand-grey-3;

682

683 &:hover {

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

685 }

686 }

687 }

688 }

689

690 .clear-modal {

691

692 .info {

693 color: @brand-light;

694 }

695

696 .align {

697

698 .btn-apply {

699 border-color: grey;

700 }

701 }

702 }

703

704 .colors-modal {

705

706 &::-webkit-scrollbar-thumb {

707 background: @brand-night;

708

709 &:hover,

710 &:active {

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

712 }

713 }

714

715 .color {

716 background: @brand-bright;

717 }

718 }

719 }

720

721 .modal {

722 background: @brand-dark;

723 border: 1px solid @brand-dark;

724

725 .header {

726

727 .back {

728

729 i.ico {

730 color: @brand-light;

731 }

732

733 &:hover {

734 background: @brand-night;

735 }

736

737 &.ripple {

738

739 &.ripple-active {

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

741 }

742 }

743 }

744

745 .info {

746

747 p {

748 color: @brand-light;

749 }

750

751 span {

752 color: @brand-grey-3;

753 }

754 }

755 }

756

757 ul.item-list {

758

759 .separator {

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

761 }

762

763 li.caption {

764

765 p {

766 color: @brand-grey-3;

767 }

768 }

769

770 li.item {

771

772 &.empty {

773

774 p {

775 color: @brand-light;

776 }

777 }

778

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

780

781 &:hover {

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

783 }

784

785 &.ripple {

786

787 &.ripple-active {

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

789 }

790 }

791 }

792

793 i.ico {

794 color: @brand-light;

795

796 svg {

797

798 path {

799 fill: @brand-light;

800 }

801 }

802 }

803

804 i.lang {

805 color: @brand-light;

806 }

807

808 .info {

809

810 p {

811 color: @brand-light;

812 }

813

814 span {

815 color: @brand-grey-3;

816 }

817 }

818

819 &.active {

820 background: @brand-night;

821

822 &.ripple {

823

824 &.ripple-active {

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

826 }

827 }

828 }

829

830 &.inactive {

831

832 i.ico {

833 color: @brand-grey-3;

834 }

835

836 .info {

837

838 p {

839 color: @brand-grey-3;

840 }

841

842 span {

843 color: @brand-grey-3;

844 }

845 }

846 }

847 }

848 }

849 }

850}