so://phie

outline

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

blob: 614a838c6e106c42eb37dfedea2dd5af274bc7eb (8738 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#canvas,

21#overlay,

22.controls {

23 position: fixed;

24 top: 0;

25 left: 0;

26 right: 0;

27 bottom: 0;

28}

29

30#overlay {

31 pointer-events: none;

32}

33

34.badge {

35 display: inline-block;

36 margin-top: -1px;

37 margin-left: 5px;

38 padding: 2px 4px;

39 border-radius: 2px;

40 font-weight: 500;

41 font-size: 12px;

42 color: white !important;

43

44 &.prime {

45 background: @brand-blue;

46 }

47

48 &.beta {

49 background: @brand-green;

50 }

51}

52

53.button {

54 display: block;

55 height: 44px;

56 padding: 0 22px;

57 border: none;

58 border-radius: 4px;

59 background: @brand-grey-6;

60 color: @brand-black;

61 font-size: 16px;

62

63 &:hover {

64

65 &.ripple-active {

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

67 }

68 }

69

70 &.outline {

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

72 background: transparent;

73

74 &:hover {

75

76 &.ripple-active {

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

78 }

79 }

80 }

81

82 &.prime {

83 background: @brand-blue;

84 color: white;

85

86 &:hover {

87

88 &.ripple-active {

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

90 }

91 }

92 }

93

94 &.danger {

95 background: @brand-red;

96 color: white;

97

98 &:hover {

99

100 &.ripple-active {

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

102 }

103 }

104 }

105}

106

107.controls {

108 pointer-events: none;

109

110 .notification {

111 top: 30px;

112 position: fixed;

113 display: flex;

114 justify-content: center;

115 width: 100%;

116 opacity: 0;

117

118 p {

119 display: inline-block;

120 padding: 10px 24px;

121 border-radius: 999px;

122 background: @brand-black;

123 color: white;

124 opacity: 0.95;

125 user-select: none;

126 pointer-events: none;

127 }

128 }

129

130 .hotbar {

131 display: flex;

132 position: fixed;

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

134 bottom: 30px;

135 z-index: -1;

136

137 &.inactive {

138

139 .color {

140 pointer-events: none !important;

141 }

142 }

143

144 .color {

145 margin: 6px;

146 width: 60px;

147 height: 60px;

148 border-radius: 30px;

149 background: #EEE;

150 cursor: pointer;

151 transition: transform 0.2s;

152 transform: scale(0.9);

153 pointer-events: all;

154

155 &:not(.active):hover {

156 transform: scale(1);

157 }

158

159 &.focus {

160 transform: scale(1);

161 }

162

163 &.active {

164 transform: scale(1.1);

165 }

166 }

167 }

168

169 .pencil-modal {

170 top: 75px;

171 left: 130px;

172 }

173

174 .scale-modal {

175 top: 40px;

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

177 width: 400px;

178 height: 60px;

179

180 input[type="range"] {

181 -webkit-appearance: none;

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

183 margin-top: 21px;

184 margin-left: 27px;

185 height: 6px;

186 background: #EEEEEE;

187 border: none;

188 border-radius: 4px;

189

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

191 -webkit-appearance: none;

192 }

193

194 &::-webkit-slider-thumb {

195 -webkit-appearance: none;

196 height: 20px;

197 width: 20px;

198 margin-top: -0px;

199 background: @brand-grey-3;

200 border-radius: 10px;

201 cursor: pointer;

202

203 &:hover {

204 background: @brand-grey-2;

205 }

206 }

207 }

208 }

209

210 .clear-modal {

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

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

213 width: 400px;

214 padding: 25px;

215 display: flex;

216 flex-direction: column;

217

218 .info {

219 width: 100%;

220 font-size: 20px;

221 text-align: center;

222 margin-bottom: 25px;

223 color: @brand-black;

224 user-select: none;

225 }

226

227 .align {

228 display: flex;

229 gap: 25px;

230

231 .btn-cancel {

232 width: 185px;

233 height: 50px;

234 border: none;

235 border-radius: 3px;

236 font-size: 17px;

237 }

238

239 .btn-apply {

240 width: 185px;

241 height: 50px;

242 border: none;

243 border-radius: 3px;

244 border-color: grey;

245 font-size: 17px;

246 }

247 }

248 }

249

250 .capture-modal {

251 top: calc(50% - 213px);

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

253 width: 400px;

254 display: flex;

255 flex-direction: column;

256 padding: 25px;

257

258 .info {

259 font-size: 20px;

260 width: 100%;

261 text-align: center;

262 margin-bottom: 25px;

263 color: @brand-black;

264 user-select: none;

265 }

266

267 .preview {

268 height: 250px;

269 background: @brand-grey-6;

270 border: 1px solid #f1f1f1;

271 border-radius: 3px;

272 margin-bottom: 25px;

273 }

274

275 .align {

276 display: flex;

277 gap: 25px;

278

279 .btn-cancel {

280 width: 185px;

281 height: 50px;

282 border: none;

283 border-radius: 3px;

284 font-size: 17px;

285 }

286

287 .btn-apply {

288 width: 185px;

289 height: 50px;

290 border: none;

291 border-radius: 3px;

292 border-color: grey;

293 font-size: 17px;

294 }

295 }

296 }

297

298 .toolbar {

299 top: 20px;

300 left: 20px;

301 }

302

303 .actionbar {

304 top: 20px;

305 right: 20px;

306 }

307

308 .actionbar,

309 .toolbar {

310 display: flex;

311 position: fixed;

312

313 &.inactive {

314

315 .action,

316 .tool {

317 pointer-events: none !important;

318 }

319 }

320

321 .action,

322 .tool {

323 width: 44px;

324 height: 44px;

325 padding: 10px;

326 margin-left: 8px;

327 border-radius: 22px;

328 cursor: pointer;

329 pointer-events: all;

330

331 &:hover {

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

333

334 &.ripple {

335

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

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

338 }

339

340 &.active.ripple-active {

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

342 }

343 }

344 }

345

346 &.active {

347 background: rgba(#EEEEEE, 0.95);

348 }

349

350 i.ico {

351 color: @brand-grey-0;

352 }

353 }

354 }

355}

356

357.colors-modal {

358 flex-wrap: wrap;

359 min-width: 410px;

360 width: 410px;

361 max-width: 410px;

362 padding: 30px !important;

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

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

365 display: flex;

366 gap: 12px;

367

368 .color {

369 width: 60px;

370 height: 60px;

371 border-radius: 30px;

372 background: #EEE;

373 cursor: pointer;

374 transition: transform 0.2s;

375 transform: scale(0.9);

376

377 &:not(.active):hover {

378 transform: scale(1);

379 }

380

381 &.active {

382 transform: scale(1.1);

383 }

384

385 &.focus {

386 transform: scale(1);

387 }

388 }

389}

390

391.multiplayer-modal {

392 top: 75px;

393 right: 120px;

394}

395

396.account-modal {

397 top: 75px;

398 right: 70px;

399}

400

401.settings-modal {

402 top: 75px;

403 right: 20px;

404}

405

406.modal {

407 width: 250px;

408 position: fixed;

409 background: white;

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

411 border-radius: 4px;

412 padding: 6px 0;

413 pointer-events: all;

414 overflow: hidden;

415 z-index: -1;

416 display: flex;

417

418 .main {

419 width: 248px;

420 min-width: 248px;7

421 max-width: 248px;

422 }

423

424 ul.tab-list {

425 width: 248px;

426 min-width: 248px;

427 max-width: 248px;

428 }

429

430 .header {

431 display: flex;

432 margin-bottom: 3px;

433

434 .back {

435 margin: 10px;

436 margin-top: 15px;

437 margin-right: 3px;

438 width: 36px;

439 height: 36px;

440 border-radius: 18px;

441 padding: 6px;

442 padding-left: 5px;

443 cursor: pointer;

444

445 i.ico {

446 color: @brand-grey-0;

447 }

448

449 &:hover {

450 background: @brand-grey-7;

451 }

452

453 &.ripple {

454

455 &.ripple-active {

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

457 }

458 }

459 }

460

461 .info {

462 display: flex;

463 flex-direction: column;

464 margin-top: 15px;

465

466 p {

467 display: flex;

468 align-items: center;

469 font-weight: 500;

470 color: @brand-grey-1;

471 user-select: none;

472 pointer-events: none;

473 }

474

475 span {

476 display: block;

477 margin-top: 3px;

478 font-size: 12px;

479 color: @brand-grey-3;

480 user-select: none;

481 pointer-events: none;

482 }

483 }

484 }

485

486 ul.item-list {

487

488 .separator {

489 margin: 6px 0;

490 width: 100%;

491 height: 1px;

492 background: @brand-grey-5;

493 }

494

495 li.caption {

496 padding: 2px 15px;

497 padding-top: 12px;

498 list-style: none;

499

500 p {

501 color: @brand-grey-3;

502 user-select: none;

503 pointer-events: none;

504 }

505 }

506

507 li.item {

508 display: flex;

509 align-items: center;

510 padding: 15px;

511 cursor: pointer;

512

513 &.empty {

514

515 p {

516 display: block;

517 width: 100%;

518 color: @brand-grey-3;

519 text-align: center;

520 user-select: none;

521 pointer-events: none;

522 }

523 }

524

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

526

527 &:hover {

528 background: @brand-grey-7;

529 }

530

531 &.ripple {

532

533 &.ripple-active {

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

535 }

536 }

537 }

538

539 i.ico {

540 color: @brand-grey-0;

541 user-select: none;

542 pointer-events: none;

543 }

544

545 i.lang {

546 display: flex;

547 justify-content: center;

548 align-items: center;

549 font-style: normal;

550 font-weight: 600;

551 width: 24px;

552 height: 24px;

553 color: @brand-grey-0;

554 user-select: none;

555 pointer-events: none;

556 }

557

558 .info {

559 display: flex;

560 flex-direction: column;

561 margin-left: 10px;

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

563

564 p {

565 display: flex;

566 align-items: center;

567 font-weight: 500;

568 color: @brand-grey-1;

569 user-select: none;

570 pointer-events: none;

571 }

572

573 span {

574 display: block;

575 margin-top: 3px;

576 font-size: 12px;

577 color: @brand-grey-3;

578 user-select: none;

579 pointer-events: none;

580 white-space: nowrap;

581 overflow: hidden;

582 text-overflow: ellipsis;

583 }

584 }

585

586 &.active {

587 background: #EEEEEE;

588

589 &.ripple {

590

591 &.ripple-active {

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

593 }

594 }

595 }

596

597 &.inactive {

598

599 i.ico {

600 color: @brand-grey-3;

601 }

602

603 .info {

604

605 p {

606 color: @brand-grey-3;

607 }

608 }

609 }

610 }

611 }

612}