so://phie

outline

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

blob: d7929eb80be25f503e8af246589ffba79588311c (10743 bytes)[doc][blame][raw]

1* {

2 -webkit-tap-highlight-color: transparent;

3}

4

5html,

6body {

7 overflow: hidden;

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 &:not(.inactive):not(.active):hover {

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

70

71 &.ripple {

72

73 &.ripple-active {

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

75 }

76 }

77 }

78

79 &.active {

80 background: rgba(#EEEEEE, 0.95);

81

82 &.ripple {

83

84 &.ripple-active {

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

86 }

87 }

88 }

89

90 &.inactive {

91

92 i.ico {

93 color: @brand-grey-4;

94 }

95 }

96

97 i.ico {

98 color: @brand-grey-1;

99 }

100 }

101 }

102 }

103 }

104}

105

106#canvas,

107#overlay,

108.controls {

109 position: fixed;

110 top: 0;

111 left: 0;

112 right: 0;

113 bottom: 0;

114}

115

116#overlay {

117 pointer-events: none;

118}

119

120.badge {

121 display: inline-block;

122 margin-top: -1px;

123 margin-left: 5px;

124 padding: 2px 4px;

125 border-radius: 2px;

126 font-weight: 500;

127 font-size: 12px;

128 color: white !important;

129

130 &.prime {

131 background: @brand-blue;

132 }

133

134 &.beta {

135 background: @brand-green;

136 }

137}

138

139.key {

140 display: inline-block;

141 padding: 3px 8px;

142 border-radius: 3px;

143 color: @brand-grey-2;

144 font-weight: 500;

145 background: @brand-grey-7;

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

147

148 &.round {

149 border-radius: 999px;

150 }

151

152 &.ico {

153 padding: 2px;

154 max-width: 28px;

155 max-height: 27px;

156 display: flex;

157 justify-content: center;

158 align-items: center;

159

160 i.ico {

161 padding: 2px;

162 max-width: 28px;

163 }

164 }

165}

166

167.button {

168 display: block;

169 height: 44px;

170 padding: 0 22px;

171 border: none;

172 border-radius: 4px;

173 background: @brand-grey-6;

174 color: @brand-black;

175 font-size: 16px;

176

177 &:hover {

178

179 &.ripple-active {

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

181 }

182 }

183

184 &.outline {

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

186 background: transparent;

187

188 &:hover {

189

190 &.ripple-active {

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

192 }

193 }

194 }

195

196 &.prime {

197 background: @brand-blue;

198 color: white;

199

200 &:hover {

201

202 &.ripple-active {

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

204 }

205 }

206 }

207

208 &.danger {

209 background: @brand-red;

210 color: white;

211

212 &:hover {

213

214 &.ripple-active {

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

216 }

217 }

218 }

219}

220

221.controls {

222 pointer-events: none;

223

224 .notification {

225 top: 90px;

226 position: fixed;

227 display: flex;

228 justify-content: center;

229 width: 100%;

230 opacity: 0;

231

232 p {

233 display: inline-block;

234 padding: 10px 24px;

235 border-radius: 999px;

236 background: @brand-black;

237 color: white;

238 opacity: 0.95;

239 user-select: none;

240 pointer-events: none;

241 }

242 }

243

244 .hotbar {

245 display: flex;

246 position: fixed;

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

248 bottom: 30px;

249 z-index: -1;

250

251 &.inactive {

252

253 .color {

254 pointer-events: none !important;

255 }

256 }

257

258 .color {

259 margin: 6px;

260 width: 60px;

261 height: 60px;

262 border-radius: 30px;

263 background: #EEE;

264 cursor: pointer;

265 transition: transform 0.2s;

266 transform: scale(0.9);

267 pointer-events: all;

268

269 &:not(.active):hover {

270 transform: scale(1);

271 }

272

273 &.focus {

274 transform: scale(1);

275 }

276

277 &.active {

278 transform: scale(1.1);

279 }

280 }

281 }

282

283 .pencil-modal {

284 top: 75px;

285 left: 120px;

286 }

287

288 .scale-modal {

289 top: 75px;

290 left: 70px;

291 width: 400px;

292 height: 60px;

293

294 input[type="range"] {

295 -webkit-appearance: none;

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

297 margin-top: 21px;

298 margin-left: 27px;

299 height: 6px;

300 background: #EEEEEE;

301 border: none;

302 border-radius: 4px;

303

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

305 -webkit-appearance: none;

306 }

307

308 &::-webkit-slider-thumb {

309 -webkit-appearance: none;

310 height: 20px;

311 width: 20px;

312 margin-top: -0px;

313 background: @brand-grey-3;

314 border-radius: 10px;

315 cursor: pointer;

316

317 &:hover {

318 background: @brand-grey-2;

319 }

320 }

321 }

322 }

323

324 .clear-modal {

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

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

327 width: 350px;

328 padding: 25px;

329 display: flex;

330 flex-direction: column;

331

332 .info {

333 width: 100%;

334 font-size: 20px;

335 text-align: center;

336 margin-bottom: 25px;

337 color: @brand-black;

338 user-select: none;

339 }

340

341 .align {

342 display: flex;

343 gap: 15px;

344

345 .btn-cancel {

346 width: 50%;

347 height: 48px;

348 border: none;

349 border-radius: 3px;

350 font-size: 17px;

351 }

352

353 .btn-apply {

354 width: 50%;

355 height: 48px;

356 border: none;

357 border-radius: 3px;

358 border-color: grey;

359 font-size: 17px;

360 }

361 }

362 }

363

364 .colors-modal {

365 flex-wrap: wrap;

366 min-width: 418px;

367 width: 418px;

368 max-width: 418px;

369 padding: 30px !important;

370 top: 75px;

371 left: 15px;

372 display: flex;

373 gap: 12px;

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

375 overflow-y: auto;

376

377 &::-webkit-scrollbar {

378 width: 8px;

379 }

380

381 &::-webkit-scrollbar-thumb {

382 width: 8px;

383 background: @brand-grey-5;

384

385 &:hover,

386 &:active {

387 background: @brand-grey-4;

388 }

389 }

390

391 .color {

392 width: 60px;

393 height: 60px;

394 border-radius: 30px;

395 background: #EEE;

396 cursor: pointer;

397 transition: transform 0.2s;

398 transform: scale(0.9);

399

400 &:not(.active):hover {

401 transform: scale(1);

402 }

403

404 &.active {

405 transform: scale(1.1);

406 }

407

408 &.focus {

409 transform: scale(1);

410 }

411 }

412 }

413

414 .multiplayer-modal {

415 top: 75px;

416 right: 120px;

417 }

418

419 .account-modal {

420 top: 75px;

421 right: 70px;

422 }

423

424 .more-modal {

425 top: 75px;

426 right: 15px;

427 }

428

429 .help-modal {

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

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

432 width: 800px;

433 height: 500px;

434 display: flex;

435 padding: 0;

436

437 .side {

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

439 width: 230px;

440 min-width: 230px;

441 overflow: hidden;

442

443 ul.item-list {

444 width: 100%;

445 padding: 6px 0;

446

447 li.item {

448 display: flex;

449 flex-direction: column;

450

451 .info {

452 font-size: 16px;

453 width: 100%;

454 max-width: 100%;

455 margin-left: 0;

456 }

457 }

458 }

459 }

460

461 .content {

462 padding: 6px 0;

463 overflow-y: auto;

464

465 &::-webkit-scrollbar {

466 width: 8px;

467 }

468

469 &::-webkit-scrollbar-thumb {

470 width: 8px;

471 background: @brand-grey-5;

472

473 &:hover,

474 &:active {

475 background: @brand-grey-4;

476 }

477 }

478

479 ul.content-list {

480 list-style-type: none;

481 pointer-events: none;

482

483 li.content-item {

484 pointer-events: none;

485 padding: 15px 20px;

486 padding-top: 25px;

487

488 p {

489 font-size: 16px;

490 color: @brand-grey-2;

491 line-height: 20px;

492 user-select: none;

493 pointer-events: none;

494 margin-bottom: 40px;

495 }

496

497 h2 {

498 font-size: 24px;

499 font-weight: 500;

500 margin-bottom: 20px;

501 user-select: none;

502 pointer-events: none;

503 color: @brand-grey-1;

504 }

505

506 h3 {

507 font-size: 22px;

508 font-weight: 500;

509 margin-bottom: 20px;

510 user-select: none;

511 pointer-events: none;

512 color: @brand-grey-1;

513 }

514 }

515 }

516 }

517 }

518}

519

520.modal {

521 width: 250px;

522 position: fixed;

523 background: white;

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

525 border-radius: 4px;

526 padding: 6px 0;

527 pointer-events: all;

528 overflow: hidden;

529 z-index: -1;

530 display: flex;

531

532 .main {

533 width: 248px;

534 min-width: 248px;7

535 max-width: 248px;

536 }

537

538 ul.tab-list {

539 width: 248px;

540 min-width: 248px;

541 max-width: 248px;

542 }

543

544 .header {

545 display: flex;

546 margin-bottom: 3px;

547

548 .back {

549 margin: 10px;

550 margin-top: 15px;

551 margin-right: 3px;

552 width: 36px;

553 height: 36px;

554 border-radius: 18px;

555 padding: 6px;

556 padding-left: 5px;

557 cursor: pointer;

558

559 i.ico {

560 color: @brand-grey-0;

561 }

562

563 &:hover {

564 background: @brand-grey-7;

565 }

566

567 &.ripple {

568

569 &.ripple-active {

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

571 }

572 }

573 }

574

575 .info {

576 display: flex;

577 flex-direction: column;

578 margin-top: 15px;

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

580

581 p {

582 display: flex;

583 align-items: center;

584 font-weight: 500;

585 color: @brand-grey-1;

586 user-select: none;

587 pointer-events: none;

588 }

589

590 span {

591 display: block;

592 margin-top: 3px;

593 font-size: 12px;

594 color: @brand-grey-3;

595 user-select: none;

596 pointer-events: none;

597 white-space: nowrap;

598 overflow: hidden;

599 text-overflow: ellipsis;

600 }

601 }

602 }

603

604 ul.item-list {

605

606 .separator {

607 margin: 6px 0;

608 width: 100%;

609 height: 1px;

610 background: @brand-grey-5;

611 }

612

613 li.caption {

614 padding: 2px 15px;

615 padding-top: 12px;

616 list-style: none;

617

618 p {

619 color: @brand-grey-3;

620 user-select: none;

621 pointer-events: none;

622 }

623 }

624

625 li.item {

626 display: flex;

627 align-items: center;

628 padding: 15px;

629 cursor: pointer;

630

631 &.empty {

632

633 p {

634 display: block;

635 width: 100%;

636 color: @brand-grey-3;

637 text-align: center;

638 user-select: none;

639 pointer-events: none;

640 }

641 }

642

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

644

645 &:hover {

646 background: @brand-grey-7;

647 }

648

649 &.ripple {

650

651 &.ripple-active {

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

653 }

654 }

655 }

656

657 i.ico {

658 color: @brand-grey-1;

659 user-select: none;

660 pointer-events: none;

661 }

662

663 i.lang {

664 display: flex;

665 justify-content: center;

666 align-items: center;

667 font-style: normal;

668 font-weight: 600;

669 width: 24px;

670 height: 24px;

671 color: @brand-grey-1;

672 user-select: none;

673 pointer-events: none;

674 }

675

676 .info {

677 display: flex;

678 flex-direction: column;

679 margin-left: 10px;

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

681

682 p {

683 display: flex;

684 align-items: center;

685 font-weight: 500;

686 color: @brand-grey-1;

687 user-select: none;

688 pointer-events: none;

689 }

690

691 span {

692 display: block;

693 margin-top: 3px;

694 font-size: 12px;

695 color: @brand-grey-3;

696 user-select: none;

697 pointer-events: none;

698 white-space: nowrap;

699 overflow: hidden;

700 text-overflow: ellipsis;

701 }

702 }

703

704 &.active {

705 background: #EEEEEE;

706

707 &.ripple {

708

709 &.ripple-active {

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

711 }

712 }

713 }

714

715 &.inactive {

716

717 i.ico {

718 color: @brand-grey-4;

719 }

720

721 .info {

722

723 p {

724 color: @brand-grey-3;

725 }

726

727 span {

728 color: @brand-grey-3;

729 }

730 }

731 }

732 }

733 }

734}