so://phie

outline

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

blob: b4ec3a893f2d1868b3beed34df29d355fcc2932f (8832 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 .scale-modal {

170 top: 40px;

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

172 width: 400px;

173 height: 60px;

174

175 input[type="range"] {

176 -webkit-appearance: none;

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

178 margin-top: 21px;

179 margin-left: 27px;

180 height: 6px;

181 background: #EEEEEE;

182 border: none;

183 border-radius: 4px;

184

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

186 -webkit-appearance: none;

187 }

188

189 &::-webkit-slider-thumb {

190 -webkit-appearance: none;

191 height: 20px;

192 width: 20px;

193 margin-top: -0px;

194 background: @brand-grey-3;

195 border-radius: 10px;

196 cursor: pointer;

197

198 &:hover {

199 background: @brand-grey-2;

200 }

201 }

202 }

203 }

204

205 .clear-modal {

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

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

208 width: 400px;

209 padding: 25px;

210 display: flex;

211 flex-direction: column;

212

213 .info {

214 width: 100%;

215 font-size: 20px;

216 text-align: center;

217 margin-bottom: 25px;

218 color: @brand-black;

219 user-select: none;

220 }

221

222 .align {

223 display: flex;

224 gap: 25px;

225

226 .btn-cancel {

227 width: 185px;

228 height: 50px;

229 border: none;

230 border-radius: 3px;

231 font-size: 17px;

232 }

233

234 .btn-apply {

235 width: 185px;

236 height: 50px;

237 border: none;

238 border-radius: 3px;

239 border-color: grey;

240 font-size: 17px;

241 }

242 }

243 }

244

245 .capture-modal {

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

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

248 width: 400px;

249 display: flex;

250 flex-direction: column;

251 padding: 25px;

252

253 .info {

254 font-size: 20px;

255 width: 100%;

256 text-align: center;

257 margin-bottom: 25px;

258 color: @brand-black;

259 user-select: none;

260 }

261

262 .preview {

263 height: 250px;

264 background: @brand-grey-6;

265 border: 1px solid #f1f1f1;

266 border-radius: 3px;

267 margin-bottom: 25px;

268 }

269

270 .align {

271 display: flex;

272 gap: 25px;

273

274 .btn-cancel {

275 width: 185px;

276 height: 50px;

277 border: none;

278 border-radius: 3px;

279 font-size: 17px;

280 }

281

282 .btn-apply {

283 width: 185px;

284 height: 50px;

285 border: none;

286 border-radius: 3px;

287 border-color: grey;

288 font-size: 17px;

289 }

290 }

291 }

292

293 .toolbar {

294 top: 20px;

295 left: 20px;

296 }

297

298 .actionbar {

299 top: 20px;

300 right: 20px;

301 }

302

303 .actionbar,

304 .toolbar {

305 display: flex;

306 position: fixed;

307

308 &.inactive {

309

310 .action,

311 .tool {

312 pointer-events: none !important;

313 }

314 }

315

316 .action,

317 .tool {

318 width: 44px;

319 height: 44px;

320 padding: 10px;

321 margin-left: 8px;

322 border-radius: 22px;

323 cursor: pointer;

324 pointer-events: all;

325

326 &:hover {

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

328

329 &.ripple {

330

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

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

333 }

334

335 &.active.ripple-active {

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

337 }

338 }

339 }

340

341 &.active {

342 background: rgba(#EEEEEE, 0.95);

343 }

344

345 i.ico {

346 color: @brand-grey-0;

347 }

348 }

349 }

350}

351

352.colors-modal {

353 flex-wrap: wrap;

354 min-width: 410px;

355 width: 410px;

356 max-width: 410px;

357 padding: 30px !important;

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

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

360 display: flex;

361 gap: 12px;

362

363 .color {

364 width: 60px;

365 height: 60px;

366 border-radius: 30px;

367 background: #EEE;

368 cursor: pointer;

369 transition: transform 0.2s;

370 transform: scale(0.9);

371

372 &:not(.active):hover {

373 transform: scale(1);

374 }

375

376 &.active {

377 transform: scale(1.1);

378 }

379

380 &.focus {

381 transform: scale(1);

382 }

383 }

384}

385

386.multiplayer-modal {

387 top: 75px;

388 right: 120px;

389}

390

391.account-modal {

392 top: 75px;

393 right: 70px;

394}

395

396.settings-modal {

397 top: 75px;

398 right: 20px;

399}

400

401.device-modal {

402 top: 100px;

403 right: 320px;

404}

405

406.language-modal {

407 top: 100px;

408 right: 860px;

409}

410

411.settings-modal {

412 top: 75px;

413 right: 20px;

414}

415

416.modal {

417 width: 250px;

418 position: fixed;

419 background: white;

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

421 border-radius: 4px;

422 padding: 6px 0;

423 pointer-events: all;

424 overflow: hidden;

425 z-index: -1;

426 display: flex;

427

428 .main {

429 width: 248px;

430 min-width: 248px;7

431 max-width: 248px;

432 }

433

434 ul.tab-list {

435 width: 248px;

436 min-width: 248px;

437 max-width: 248px;

438 }

439

440 .header {

441 display: flex;

442 margin-bottom: 3px;

443

444 .back {

445 margin: 10px;

446 margin-top: 15px;

447 margin-right: 3px;

448 width: 36px;

449 height: 36px;

450 border-radius: 18px;

451 padding: 6px;

452 padding-left: 5px;

453 cursor: pointer;

454

455 i.ico {

456 color: @brand-grey-0;

457 }

458

459 &:hover {

460 background: @brand-grey-7;

461 }

462

463 &.ripple {

464

465 &.ripple-active {

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

467 }

468 }

469 }

470

471 .info {

472 display: flex;

473 flex-direction: column;

474 margin-top: 15px;

475

476 p {

477 display: flex;

478 align-items: center;

479 font-weight: 500;

480 color: @brand-grey-1;

481 user-select: none;

482 pointer-events: none;

483 }

484

485 span {

486 display: block;

487 margin-top: 3px;

488 font-size: 12px;

489 color: @brand-grey-3;

490 user-select: none;

491 pointer-events: none;

492 }

493 }

494 }

495

496 ul.item-list {

497

498 .separator {

499 margin: 6px 0;

500 width: 100%;

501 height: 1px;

502 background: @brand-grey-5;

503 }

504

505 li.caption {

506 padding: 2px 15px;

507 padding-top: 12px;

508 list-style: none;

509

510 p {

511 color: @brand-grey-3;

512 user-select: none;

513 pointer-events: none;

514 }

515 }

516

517 li.item {

518 display: flex;

519 align-items: center;

520 padding: 15px;

521 cursor: pointer;

522

523 &.empty {

524

525 p {

526 display: block;

527 width: 100%;

528 color: @brand-grey-3;

529 text-align: center;

530 user-select: none;

531 pointer-events: none;

532 }

533 }

534

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

536

537 &:hover {

538 background: @brand-grey-7;

539 }

540

541 &.ripple {

542

543 &.ripple-active {

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

545 }

546 }

547 }

548

549 i.ico {

550 color: @brand-grey-0;

551 user-select: none;

552 pointer-events: none;

553 }

554

555 i.lang {

556 display: flex;

557 justify-content: center;

558 align-items: center;

559 font-style: normal;

560 font-weight: 600;

561 width: 24px;

562 height: 24px;

563 color: @brand-grey-0;

564 user-select: none;

565 pointer-events: none;

566 }

567

568 .info {

569 display: flex;

570 flex-direction: column;

571 margin-left: 10px;

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

573

574 p {

575 display: flex;

576 align-items: center;

577 font-weight: 500;

578 color: @brand-grey-1;

579 user-select: none;

580 pointer-events: none;

581 }

582

583 span {

584 display: block;

585 margin-top: 3px;

586 font-size: 12px;

587 color: @brand-grey-3;

588 user-select: none;

589 pointer-events: none;

590 white-space: nowrap;

591 overflow: hidden;

592 text-overflow: ellipsis;

593 }

594 }

595

596 &.active {

597 background: #EEEEEE;

598

599 &.ripple {

600

601 &.ripple-active {

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

603 }

604 }

605 }

606

607 &.inactive {

608

609 i.ico {

610 color: @brand-grey-3;

611 }

612

613 .info {

614

615 p {

616 color: @brand-grey-3;

617 }

618 }

619 }

620 }

621 }

622}