so://phie

outline

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

blob: 04682b7a3472b0b15e48c751f207164c6e75c706 (8298 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% - 75.5px);

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

137 width: 400px;

138 padding: 25px;

139 display: flex;

140 flex-direction: column;

141

142 .info {

143 width: 100%;

144 font-size: 20px;

145 text-align: center;

146 margin-bottom: 25px;

147 color: @brand-black;

148 user-select: none;

149 }

150

151 .align {

152 display: flex;

153 gap: 25px;

154

155 .btn-cancel {

156 width: 185px;

157 height: 50px;

158 border: none;

159 border-radius: 3px;

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

161 font-size: 17px;

162 color: @brand-black;

163

164 &:hover {

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

166 }

167 }

168

169 .btn-apply {

170 width: 185px;

171 height: 50px;

172 border: none;

173 border-radius: 3px;

174 border-color: grey;

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

176 font-size: 17px;

177 color: @brand-black;

178

179 &:hover {

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

181 }

182 }

183 }

184 }

185

186 .capture-modal {

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

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

189 width: 400px;

190 display: flex;

191 flex-direction: column;

192 padding: 25px;

193

194 .info {

195 font-size: 20px;

196 width: 100%;

197 text-align: center;

198 margin-bottom: 25px;

199 color: @brand-black;

200 user-select: none;

201 }

202

203 .preview {

204 height: 250px;

205 background: @brand-grey-6;

206 border: 1px solid #f1f1f1;

207 border-radius: 3px;

208 margin-bottom: 25px;

209 }

210

211 .align {

212 display: flex;

213 gap: 25px;

214

215 .btn-cancel {

216 width: 185px;

217 height: 50px;

218 border: none;

219 border-radius: 3px;

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

221 font-size: 17px;

222

223 &:hover {

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

225 }

226 }

227

228 .btn-apply {

229 width: 185px;

230 height: 50px;

231 border: none;

232 border-radius: 3px;

233 border-color: grey;

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

235 font-size: 17px;

236

237 &:hover {

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

239 }

240 }

241 }

242 }

243

244 .toolbar {

245 top: 20px;

246 left: 20px;

247 }

248

249 .actionbar {

250 top: 20px;

251 right: 20px;

252 }

253

254 .actionbar,

255 .toolbar {

256 display: flex;

257 position: fixed;

258

259 .action,

260 .tool {

261 width: 44px;

262 height: 44px;

263 padding: 10px;

264 margin-left: 8px;

265 border-radius: 22px;

266 cursor: pointer;

267 pointer-events: all;

268

269 &:hover {

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

271

272 &.ripple {

273

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

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

276 }

277

278 &.active.ripple-active {

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

280 }

281 }

282 }

283

284 &.active {

285 background: rgba(#EEEEEE, 0.95);

286 }

287

288 i.ico {

289 color: @brand-grey-0;

290 }

291 }

292 }

293}

294

295.colors-modal {

296 flex-wrap: wrap;

297 min-width: 410px;

298 width: 410px;

299 max-width: 410px;

300 padding: 30px !important;

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

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

303 display: flex;

304 gap: 12px;

305

306 .color {

307 width: 60px;

308 height: 60px;

309 border-radius: 30px;

310 background: #EEE;

311 cursor: pointer;

312 transition: transform 0.2s;

313 transform: scale(0.9);

314

315 &:not(.active):hover {

316 transform: scale(1);

317 }

318

319 &.active {

320 transform: scale(1.1);

321 }

322

323 &.focus {

324 transform: scale(1);

325 }

326 }

327}

328

329.multiplayer-modal {

330 top: 75px;

331 right: 120px;

332}

333

334.account-modal {

335 top: 75px;

336 right: 70px;

337}

338

339.settings-modal {

340 top: 75px;

341 right: 20px;

342}

343

344.device-modal {

345 top: 100px;

346 right: 320px;

347}

348

349.language-modal {

350 top: 100px;

351 right: 860px;

352}

353

354.settings-modal {

355 top: 75px;

356 right: 20px;

357}

358

359.modal {

360 width: 250px;

361 position: fixed;

362 background: white;

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

364 border-radius: 4px;

365 padding: 6px 0;

366 pointer-events: all;

367 overflow: hidden;

368 z-index: -1;

369 display: flex;

370

371 .main {

372 width: 248px;

373 min-width: 248px;7

374 max-width: 248px;

375 }

376

377 ul.tab-list {

378 width: 248px;

379 min-width: 248px;

380 max-width: 248px;

381 }

382

383 .header {

384 display: flex;

385 margin-bottom: 3px;

386

387 .back {

388 margin: 10px;

389 margin-top: 15px;

390 margin-right: 3px;

391 width: 36px;

392 height: 36px;

393 border-radius: 18px;

394 padding: 6px;

395 padding-left: 5px;

396 cursor: pointer;

397

398 i.ico {

399 color: @brand-grey-0;

400 }

401

402 &:hover {

403 background: @brand-grey-7;

404 }

405

406 &.ripple {

407

408 &.ripple-active {

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

410 }

411 }

412 }

413

414 .info {

415 display: flex;

416 flex-direction: column;

417 margin-top: 15px;

418

419 p {

420 display: flex;

421 align-items: center;

422 font-weight: 500;

423 color: @brand-grey-1;

424 user-select: none;

425 pointer-events: none;

426 }

427

428 span {

429 display: block;

430 margin-top: 3px;

431 font-size: 12px;

432 color: @brand-grey-3;

433 user-select: none;

434 pointer-events: none;

435 }

436 }

437 }

438

439 ul.item-list {

440

441 .separator {

442 margin: 6px 0;

443 width: 100%;

444 height: 1px;

445 background: @brand-grey-5;

446 }

447

448 li.caption {

449 padding: 2px 15px;

450 padding-top: 12px;

451 list-style: none;

452

453 p {

454 color: @brand-grey-3;

455 user-select: none;

456 pointer-events: none;

457 }

458 }

459

460 li.item {

461 display: flex;

462 align-items: center;

463 padding: 15px;

464 cursor: pointer;

465

466 &.empty {

467

468 p {

469 display: block;

470 width: 100%;

471 color: @brand-grey-3;

472 text-align: center;

473 user-select: none;

474 pointer-events: none;

475 }

476 }

477

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

479

480 &:hover {

481 background: @brand-grey-7;

482 }

483

484 &.ripple {

485

486 &.ripple-active {

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

488 }

489 }

490 }

491

492 i.ico {

493 color: @brand-grey-0;

494 user-select: none;

495 pointer-events: none;

496 }

497

498 i.lang {

499 display: flex;

500 justify-content: center;

501 align-items: center;

502 font-style: normal;

503 font-weight: 600;

504 width: 24px;

505 height: 24px;

506 color: @brand-grey-0;

507 user-select: none;

508 pointer-events: none;

509 }

510

511 .info {

512 display: flex;

513 flex-direction: column;

514 margin-left: 10px;

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

516

517 p {

518 display: flex;

519 align-items: center;

520 font-weight: 500;

521 color: @brand-grey-1;

522 user-select: none;

523 pointer-events: none;

524 }

525

526 span {

527 display: block;

528 margin-top: 3px;

529 font-size: 12px;

530 color: @brand-grey-3;

531 user-select: none;

532 pointer-events: none;

533 white-space: nowrap;

534 overflow: hidden;

535 text-overflow: ellipsis;

536 }

537 }

538

539 &.active {

540 background: #EEEEEE;

541

542 &.ripple {

543

544 &.ripple-active {

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

546 }

547 }

548 }

549

550 &.inactive {

551

552 i.ico {

553 color: @brand-grey-3;

554 }

555

556 .info {

557

558 p {

559 color: @brand-grey-3;

560 }

561 }

562 }

563 }

564 }

565}