so://phie

outline

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

blob: 4fe0ec04c28f05e8cf2798bf9fd9e77cc40ab456 (8542 bytes)[doc][blame][raw]

1* {

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

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: @brand-blue;

36 }

37

38 &.beta {

39 background: @brand-green;

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: @brand-black;

59 color: white;

60 opacity: 0.95;

61 user-select: none;

62 pointer-events: none;

63 }

64 }

65

66 .hotbar {

67 display: flex;

68 position: fixed;

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

70 bottom: 30px;

71 z-index: -1;

72

73 .color {

74 margin: 6px;

75 width: 60px;

76 height: 60px;

77 border-radius: 30px;

78 background: #EEE;

79 cursor: pointer;

80 transition: transform 0.2s;

81 transform: scale(0.9);

82 pointer-events: all;

83

84 &:not(.active):hover {

85 transform: scale(1);

86 }

87

88 &.focus {

89 transform: scale(1);

90 }

91

92 &.active {

93 transform: scale(1.1);

94 }

95 }

96 }

97

98 .scale-modal {

99 top: 40px;

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

101 width: 400px;

102 height: 60px;

103

104 input[type="range"] {

105 -webkit-appearance: none;

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

107 margin-top: 21px;

108 margin-left: 27px;

109 height: 6px;

110 background: #EEEEEE;

111 border: none;

112 border-radius: 4px;

113

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

115 -webkit-appearance: none;

116 }

117

118 &::-webkit-slider-thumb {

119 -webkit-appearance: none;

120 height: 20px;

121 width: 20px;

122 margin-top: -0px;

123 background: @brand-grey-3;

124 border-radius: 10px;

125 cursor: pointer;

126

127 &:hover {

128 background: @brand-grey-2;

129 }

130 }

131 }

132 }

133

134 .clear-modal {

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

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

137 width: 400px;

138 height: 150px;

139 display: grid;

140 padding: 30px 10px 10px 10px;

141

142 .text-clear {

143 font-size: 20px;

144 width: 380px;

145 text-align: center;

146 align-items: center;

147 }

148

149 .align {

150 display: flex;

151 margin-top: auto;

152

153 .btn-cancel {

154 width: 185px;

155 height: 50px;

156 border: none;

157 border-radius: 3px;

158 background-color: @brand-grey-6;

159 font-size: 17px;

160

161 &:hover {

162 background-color: @brand-grey-4;

163 }

164 }

165

166 .btn-apply {

167 width: 185px;

168 height: 50px;

169 border: none;

170 border-radius: 3px;

171 border-color: grey;

172 background-color: @brand-grey-6;

173 margin-left: 10px;

174 font-size: 17px;

175

176 &:hover {

177 background-color: @brand-grey-4;

178 }

179 }

180 }

181 }

182

183 .capture-modal {

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

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

186 width: 400px;

187 height: 500px;

188 display: grid;

189

190 .text-save {

191 font-size: 20px;

192 width: 380px;

193 height: px;

194 text-align: center;

195 align-items: center;

196 margin-top: 20px;

197 }

198

199 .preview {

200 height: 250px;

201 background: @brand-grey-6;

202 border: 1px solid #f1f1f1;

203 border-radius: 3px;

204 margin-top: 20px;

205 margin-left: 20px;

206 margin-right: 20px;

207 }

208

209 .action-file {

210 border-radius: 3px;

211 border: 2px solid #f1f1f1;

212 height: 50px;

213 margin-top: 10px;

214 margin-left: 20px;

215 margin-right: 20px;

216 padding: 0px 0px 0px 10px;

217 font-size: 15px;

218 }

219

220 .align {

221 display: flex;

222 margin-top: auto;

223 margin-bottom: 20px;

224

225 .btn-cancel {

226 width: 170px;

227 height: 50px;

228 border: none;

229 border-radius: 3px;

230 background-color: @brand-grey-6;

231 font-size: 17px;

232 margin-left: 20px;

233

234 &:hover {

235 background-color: @brand-grey-4;

236 }

237 }

238

239 .btn-apply {

240 width: 170px;

241 height: 50px;

242 border: none;

243 border-radius: 3px;

244 border-color: grey;

245 background-color: @brand-grey-6;

246 margin-left: 20px;

247 font-size: 17px;

248

249 &:hover {

250 background-color: @brand-grey-4;

251 }

252 }

253 }

254 }

255

256 .toolbar {

257 top: 20px;

258 left: 20px;

259 }

260

261 .actionbar {

262 top: 20px;

263 right: 20px;

264 }

265

266 .actionbar,

267 .toolbar {

268 display: flex;

269 position: fixed;

270

271 .action,

272 .tool {

273 width: 44px;

274 height: 44px;

275 padding: 10px;

276 margin-left: 8px;

277 border-radius: 22px;

278 cursor: pointer;

279 pointer-events: all;

280

281 &:hover {

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

283

284 &.ripple {

285

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

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

288 }

289

290 &.active.ripple-active {

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

292 }

293 }

294 }

295

296 &.active {

297 background: rgba(#EEEEEE, 0.95);

298 }

299

300 i.ico {

301 color: @brand-grey-0;

302 }

303 }

304 }

305}

306

307.colors-modal {

308 flex-wrap: wrap;

309 min-width: 410px;

310 width: 410px;

311 max-width: 410px;

312 padding: 30px !important;

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

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

315 display: flex;

316 gap: 12px;

317

318 .color {

319 width: 60px;

320 height: 60px;

321 border-radius: 30px;

322 background: #EEE;

323 cursor: pointer;

324 transition: transform 0.2s;

325 transform: scale(0.9);

326

327 &:not(.active):hover {

328 transform: scale(1);

329 }

330

331 &.active {

332 transform: scale(1.1);

333 }

334

335 &.focus {

336 transform: scale(1);

337 }

338 }

339}

340

341.multiplayer-modal {

342 top: 75px;

343 right: 120px;

344}

345

346.account-modal {

347 top: 75px;

348 right: 70px;

349}

350

351.settings-modal {

352 top: 75px;

353 right: 20px;

354}

355

356.device-modal {

357 top: 100px;

358 right: 320px;

359}

360

361.language-modal {

362 top: 100px;

363 right: 860px;

364}

365

366.settings-modal {

367 top: 75px;

368 right: 20px;

369}

370

371.modal {

372 width: 250px;

373 position: fixed;

374 background: white;

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

376 border-radius: 4px;

377 padding: 6px 0;

378 pointer-events: all;

379 overflow: hidden;

380 z-index: -1;

381 display: flex;

382

383 .main {

384 width: 248px;

385 min-width: 248px;7

386 max-width: 248px;

387 }

388

389 ul.tab-list {

390 width: 248px;

391 min-width: 248px;

392 max-width: 248px;

393 }

394

395 .header {

396 display: flex;

397 margin-bottom: 3px;

398

399 .back {

400 margin: 10px;

401 margin-top: 15px;

402 margin-right: 3px;

403 width: 36px;

404 height: 36px;

405 border-radius: 18px;

406 padding: 6px;

407 padding-left: 5px;

408 cursor: pointer;

409

410 i.ico {

411 color: @brand-grey-0;

412 }

413

414 &:hover {

415 background: @brand-grey-7;

416 }

417

418 &.ripple {

419

420 &.ripple-active {

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

422 }

423 }

424 }

425

426 .info {

427 display: flex;

428 flex-direction: column;

429 margin-top: 15px;

430

431 p {

432 display: flex;

433 align-items: center;

434 font-weight: 500;

435 color: @brand-grey-1;

436 user-select: none;

437 pointer-events: none;

438 }

439

440 span {

441 display: block;

442 margin-top: 3px;

443 font-size: 12px;

444 color: @brand-grey-3;

445 user-select: none;

446 pointer-events: none;

447 }

448 }

449 }

450

451 ul.item-list {

452

453 .separator {

454 margin: 6px 0;

455 width: 100%;

456 height: 1px;

457 background: @brand-grey-5;

458 }

459

460 li.caption {

461 padding: 2px 15px;

462 padding-top: 12px;

463 list-style: none;

464

465 p {

466 color: @brand-grey-3;

467 user-select: none;

468 pointer-events: none;

469 }

470 }

471

472 li.item {

473 display: flex;

474 align-items: center;

475 padding: 15px;

476 cursor: pointer;

477

478 &.empty {

479

480 p {

481 display: block;

482 width: 100%;

483 color: @brand-grey-3;

484 text-align: center;

485 user-select: none;

486 pointer-events: none;

487 }

488 }

489

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

491

492 &:hover {

493 background: @brand-grey-7;

494 }

495

496 &.ripple {

497

498 &.ripple-active {

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

500 }

501 }

502 }

503

504 i.ico {

505 color: @brand-grey-0;

506 user-select: none;

507 pointer-events: none;

508 }

509

510 i.lang {

511 display: flex;

512 justify-content: center;

513 align-items: center;

514 font-style: normal;

515 font-weight: 600;

516 width: 24px;

517 height: 24px;

518 color: @brand-grey-0;

519 user-select: none;

520 pointer-events: none;

521 }

522

523 .info {

524 display: flex;

525 flex-direction: column;

526 margin-left: 10px;

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

528

529 p {

530 display: flex;

531 align-items: center;

532 font-weight: 500;

533 color: @brand-grey-1;

534 user-select: none;

535 pointer-events: none;

536 }

537

538 span {

539 display: block;

540 margin-top: 3px;

541 font-size: 12px;

542 color: @brand-grey-3;

543 user-select: none;

544 pointer-events: none;

545 white-space: nowrap;

546 overflow: hidden;

547 text-overflow: ellipsis;

548 }

549 }

550

551 &.active {

552 background: #EEEEEE;

553

554 &.ripple {

555

556 &.ripple-active {

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

558 }

559 }

560 }

561

562 &.inactive {

563

564 i.ico {

565 color: @brand-grey-3;

566 }

567

568 .info {

569

570 p {

571 color: @brand-grey-3;

572 }

573 }

574 }

575 }

576 }

577}