so://phie

outline

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

blob: 4e1efd848abc05e1d49c98c279593cca12e64028 (9652 bytes)[doc][blame][raw]

1* {

2 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

3}

4

5html,

6body {

7 overflow: hidden;

8}

9

10#canvas,

11#overlay,

12.controls {

13 position: fixed;

14 top: 0;

15 left: 0;

16 right: 0;

17 bottom: 0;

18}

19

20#overlay {

21 pointer-events: none;

22}

23

24.badge {

25 display: inline-block;

26 margin-top: -1px;

27 margin-left: 5px;

28 padding: 2px 4px;

29 border-radius: 2px;

30 font-weight: 500;

31 font-size: 12px;

32 color: white !important;

33

34 &.prime {

35 background: #0372EF;

36 }

37

38 &.beta {

39 background: #388E3C;

40 }

41}

42

43.controls {

44 pointer-events: none;

45

46 .notification {

47 top: 30px;

48 position: fixed;

49 display: flex;

50 justify-content: center;

51 width: 100%;

52 opacity: 0;

53

54 p {

55 display: inline-block;

56 padding: 10px 24px;

57 border-radius: 999px;

58 background: #24292E;

59 color: white;

60 opacity: 0.95;

61 user-select: none;

62 pointer-events: none;

63 }

64 }

65

66 .ad {

67 position: fixed;

68 width: 400px;

69 height: 150px;

70 border-radius: 4px;

71 background: #EEE;

72 bottom: 40px;

73 right: 40px;

74 pointer-events: all;

75 }

76

77 .hotbar {

78 display: flex;

79 position: fixed;

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

81 bottom: 30px;

82 pointer-events: all;

83 z-index: -1;

84

85 .color {

86 margin: 6px;

87 width: 60px;

88 height: 60px;

89 border-radius: 30px;

90 background: #EEE;

91 cursor: pointer;

92 transition: transform 0.2s;

93 transform: scale(0.9);

94

95 &:not(.active):hover {

96 transform: scale(1);

97 }

98

99 &.focus {

100 transform: scale(1);

101 }

102

103 &.active {

104 transform: scale(1.1);

105 }

106 }

107 }

108

109 .scale-modal {

110 top: 40px;

111 left: calc(50% - 200px);

112 width: 400px;

113 height: 60px;

114

115 input[type="range"] {

116 -webkit-appearance: none;

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

118 margin-top: 21px;

119 margin-left: 27px;

120 height: 6px;

121 background: #EEEEEE;

122 border: none;

123 border-radius: 4px;

124

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

126 -webkit-appearance: none;

127 }

128

129 &::-webkit-slider-thumb {

130 -webkit-appearance: none;

131 height: 20px;

132 width: 20px;

133 margin-top: -0px;

134 background: #9E9E9E;

135 border-radius: 10px;

136 cursor: pointer;

137

138 &:hover {

139 background: #757575;

140 }

141 }

142 }

143 }

144

145 .clear-modal {

146 top: calc(50% - 75px);

147 left: calc(50% - 200px);

148 width: 400px;

149 height: 150px;

150 display: grid;

151 padding: 30px 10px 10px 10px;

152

153 .text-clear {

154 font-size: 20px;

155 width: 380px;

156 height: px;

157 text-align: center;

158 align-items: center;

159 }

160

161 .align {

162 display: flex;

163 margin-top: auto;

164

165 .btn-cancel {

166 width: 185px;

167 height: 50px;

168 border: none;

169 border-radius: 3px;

170 background-color: #F5F5F5;

171 font-size: 17px;

172

173 &:hover {

174 background-color: #E0E0E0;

175 }

176 }

177

178 .btn-apply {

179 width: 185px;

180 height: 50px;

181 border: none;

182 border-radius: 3px;

183 border-color: grey;

184 background-color: #F5F5F5;

185 margin-left: 10px;

186 font-size: 17px;

187

188 &:hover {

189 background-color: #E0E0E0;

190 }

191 }

192 }

193 }

194

195 .capture-modal {

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

197 left: calc(50% - 200px);

198 width: 400px;

199 height: 500px;

200 display: grid;

201

202 .text-save {

203 font-size: 20px;

204 width: 380px;

205 height: px;

206 text-align: center;

207 align-items: center;

208 margin-top: 20px;

209 }

210

211 .preview {

212 height: 250px;

213 background: #F5F5F5;

214 border: 1px solid #f1f1f1;

215 border-radius: 3px;

216 margin-top: 20px;

217 margin-left: 20px;

218 margin-right: 20px;

219 }

220

221 .action-file {

222 border-radius: 3px;

223 border: 2px solid #f1f1f1;

224 height: 50px;

225 margin-top: 10px;

226 margin-left: 20px;

227 margin-right: 20px;

228 padding: 0px 0px 0px 10px;

229 font-size: 15px;

230 }

231

232 .align {

233 display: flex;

234 margin-top: auto;

235 margin-bottom: 20px;

236

237 .btn-cancel {

238 width: 170px;

239 height: 50px;

240 border: none;

241 border-radius: 3px;

242 background-color: #F5F5F5;

243 font-size: 17px;

244 margin-left: 20px;

245

246 &:hover {

247 background-color: #E0E0E0;

248 }

249 }

250

251 .btn-apply {

252 width: 170px;

253 height: 50px;

254 border: none;

255 border-radius: 3px;

256 border-color: grey;

257 background-color: #F5F5F5;

258 margin-left: 20px;

259 font-size: 17px;

260

261 &:hover {

262 background-color: #E0E0E0;

263 }

264 }

265 }

266 }

267

268 .toolbar {

269 top: 20px;

270 left: 20px;

271 }

272

273 .actionbar {

274 top: 20px;

275 right: 20px;

276 }

277

278 .actionbar,

279 .toolbar {

280 display: flex;

281 position: fixed;

282 pointer-events: all;

283

284 .action,

285 .tool {

286 width: 44px;

287 height: 44px;

288 padding: 10px;

289 margin-left: 8px;

290 border-radius: 22px;

291 cursor: pointer;

292

293 &:hover {

294 background: rgba(#FAFAFA, 0.95);

295

296 &.ripple {

297

298 &:not(.active).ripple-active {

299 background: lighten(rgba(#FAFAFA, 0.95), -2%);

300 }

301

302 &.active.ripple-active {

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

304 }

305 }

306 }

307

308 &.active {

309 background: rgba(#EEEEEE, 0.95);

310 }

311

312 i.ico {

313 color: #424242;

314 }

315 }

316 }

317}

318

319.colors-modal {

320 flex-wrap: wrap;

321 min-width: 410px;

322 width: 410px;

323 max-width: 410px;

324 padding: 30px !important;

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

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

327 display: flex;

328 gap: 12px;

329

330 .color {

331 width: 60px;

332 height: 60px;

333 border-radius: 30px;

334 background: #EEE;

335 cursor: pointer;

336 transition: transform 0.2s;

337 transform: scale(0.9);

338

339 &:not(.active):hover {

340 transform: scale(1);

341 }

342

343 &.active {

344 transform: scale(1.1);

345 }

346

347 &.focus {

348 transform: scale(1);

349 }

350 }

351}

352

353.multiplayer-modal {

354 top: 75px;

355 right: 120px;

356}

357

358.account-modal {

359 top: 75px;

360 right: 70px;

361}

362

363.settings-modal {

364 top: 75px;

365 right: 20px;

366}

367

368.device-modal {

369 top: 100px;

370 right: 320px;

371}

372

373.language-modal {

374 top: 100px;

375 right: 860px;

376}

377

378.settings-modal {

379 top: 75px;

380 right: 20px;

381}

382

383.modal {

384 width: 250px;

385 position: fixed;

386 background: white;

387 border: 1px solid #F1F1F1;

388 border-radius: 4px;

389 padding: 6px 0;

390 pointer-events: all;

391 overflow: hidden;

392 z-index: -1;

393 display: flex;

394

395 .main {

396 width: 248px;

397 min-width: 248px;7

398 max-width: 248px;

399 }

400

401 ul.tab-list {

402 width: 248px;

403 min-width: 248px;

404 max-width: 248px;

405 }

406

407 .header {

408 display: flex;

409 margin-bottom: 3px;

410

411 .back {

412 margin: 10px;

413 margin-top: 15px;

414 margin-right: 3px;

415 width: 36px;

416 height: 36px;

417 border-radius: 18px;

418 padding: 6px;

419 padding-left: 5px;

420 cursor: pointer;

421

422 i.ico {

423 color: #424242;

424 }

425

426 &:hover {

427 background: #FAFAFA;

428 }

429

430 &.ripple {

431

432 &.ripple-active {

433 background: lighten(#FAFAFA, -2%);

434 }

435 }

436 }

437

438 .info {

439 display: flex;

440 flex-direction: column;

441 margin-top: 15px;

442

443 p {

444 display: flex;

445 align-items: center;

446 font-weight: 500;

447 color: #616161;

448 user-select: none;

449 pointer-events: none;

450 }

451

452 span {

453 display: block;

454 margin-top: 3px;

455 font-size: 12px;

456 color: #9E9E9E;

457 user-select: none;

458 pointer-events: none;

459 }

460 }

461 }

462

463 ul.item-list {

464

465 .separator {

466 margin: 6px 0;

467 width: 100%;

468 height: 1px;

469 background: #F1F1F1;

470 }

471

472 li.caption {

473 padding: 2px 15px;

474 padding-top: 12px;

475 list-style: none;

476

477 p {

478 color: #9E9E9E;

479 user-select: none;

480 pointer-events: none;

481 }

482 }

483

484 li.item {

485 display: flex;

486 align-items: center;

487 padding: 15px;

488 cursor: pointer;

489

490 &.empty {

491

492 p {

493 display: block;

494 width: 100%;

495 color: #9E9E9E;

496 text-align: center;

497 user-select: none;

498 pointer-events: none;

499 }

500 }

501

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

503

504 &:hover {

505 background: #FAFAFA;

506 }

507

508 &.ripple {

509

510 &.ripple-active {

511 background: lighten(#FAFAFA, -2%);

512 }

513 }

514 }

515

516 i.ico {

517 color: #424242;

518 user-select: none;

519 pointer-events: none;

520 }

521

522 i.lang {

523 display: flex;

524 justify-content: center;

525 align-items: center;

526 font-style: normal;

527 font-weight: 600;

528 width: 24px;

529 height: 24px;

530 color: #424242;

531 user-select: none;

532 pointer-events: none;

533 }

534

535 .info {

536 display: flex;

537 flex-direction: column;

538 margin-left: 10px;

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

540

541 p {

542 display: flex;

543 align-items: center;

544 font-weight: 500;

545 color: #616161;

546 user-select: none;

547 pointer-events: none;

548 }

549

550 span {

551 display: block;

552 margin-top: 3px;

553 font-size: 12px;

554 color: #9E9E9E;

555 user-select: none;

556 pointer-events: none;

557 white-space: nowrap;

558 overflow: hidden;

559 text-overflow: ellipsis;

560 }

561 }

562

563 &.active {

564 background: #EEEEEE;

565

566 &.ripple {

567

568 &.ripple-active {

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

570 }

571 }

572 }

573

574 &.inactive {

575

576 i.ico {

577 color: #9E9E9E;

578 }

579

580 .info {

581

582 p {

583 color: #9E9E9E;

584 }

585 }

586 }

587 }

588 }

589}

590

591.tooltip {

592 position: relative;

593 display: flex;

594 justify-content: center;

595 align-items: center;

596

597 &:hover {

598

599 &::before {

600 opacity: 0.95;

601 transition-delay: 0.6s;

602 }

603

604 &::after {

605 opacity: 0.95;

606 transition-delay: 0.6s;

607 }

608 }

609

610 &::after {

611 display: flex;

612 opacity: 0;

613 content: attr(data-title);

614 justify-content: center;

615 align-items: center;

616 position: absolute;

617 background: #24292E;

618 color: white;

619 min-height: 24px;

620 padding: 0 12px;

621 border-radius: 999px;

622 font-size: 12px;

623 top: auto;

624 bottom: -70%;

625 white-space: nowrap;

626 z-index: 9999;

627 pointer-events: none;

628 }

629

630 &.up {

631

632 &::before {

633 top: ~'calc(-90% + 26px)';

634 bottom: auto;

635 border-left: 6px solid transparent;

636 border-right: 6px solid transparent;

637 border-top: 6px solid #24292E;

638 border-bottom: none;

639 }

640

641 &::after {

642 top: -60%;

643 bottom: auto;

644 }

645 }

646

647 &.down {

648

649 &::before {

650 top: auto;

651 bottom: ~'calc(-90% + 26px)';

652 border-left: 6px solid transparent;

653 border-right: 6px solid transparent;

654 border-top: none;

655 border-bottom: 6px solid #24292E;

656 }

657

658 &::after {

659 top: auto;

660 bottom: -60%;

661 }

662 }

663}