so://phie

outline

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

blob: 621d49da24ec3016a0606e9d42171a107aaf3344 (8568 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.controls {

54 pointer-events: none;

55

56 .notification {

57 top: 30px;

58 position: fixed;

59 display: flex;

60 justify-content: center;

61 width: 100%;

62 opacity: 0;

63

64 p {

65 display: inline-block;

66 padding: 10px 24px;

67 border-radius: 999px;

68 background: @brand-black;

69 color: white;

70 opacity: 0.95;

71 user-select: none;

72 pointer-events: none;

73 }

74 }

75

76 .hotbar {

77 display: flex;

78 position: fixed;

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

80 bottom: 30px;

81 z-index: -1;

82

83 &.inactive {

84

85 .color {

86 pointer-events: none !important;

87 }

88 }

89

90 .color {

91 margin: 6px;

92 width: 60px;

93 height: 60px;

94 border-radius: 30px;

95 background: #EEE;

96 cursor: pointer;

97 transition: transform 0.2s;

98 transform: scale(0.9);

99 pointer-events: all;

100

101 &:not(.active):hover {

102 transform: scale(1);

103 }

104

105 &.focus {

106 transform: scale(1);

107 }

108

109 &.active {

110 transform: scale(1.1);

111 }

112 }

113 }

114

115 .scale-modal {

116 top: 40px;

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

118 width: 400px;

119 height: 60px;

120

121 input[type="range"] {

122 -webkit-appearance: none;

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

124 margin-top: 21px;

125 margin-left: 27px;

126 height: 6px;

127 background: #EEEEEE;

128 border: none;

129 border-radius: 4px;

130

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

132 -webkit-appearance: none;

133 }

134

135 &::-webkit-slider-thumb {

136 -webkit-appearance: none;

137 height: 20px;

138 width: 20px;

139 margin-top: -0px;

140 background: @brand-grey-3;

141 border-radius: 10px;

142 cursor: pointer;

143

144 &:hover {

145 background: @brand-grey-2;

146 }

147 }

148 }

149 }

150

151 .clear-modal {

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

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

154 width: 400px;

155 padding: 25px;

156 display: flex;

157 flex-direction: column;

158

159 .info {

160 width: 100%;

161 font-size: 20px;

162 text-align: center;

163 margin-bottom: 25px;

164 color: @brand-black;

165 user-select: none;

166 }

167

168 .align {

169 display: flex;

170 gap: 25px;

171

172 .btn-cancel {

173 width: 185px;

174 height: 50px;

175 border: none;

176 border-radius: 3px;

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

178 font-size: 17px;

179 color: @brand-black;

180

181 &:hover {

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

183 }

184 }

185

186 .btn-apply {

187 width: 185px;

188 height: 50px;

189 border: none;

190 border-radius: 3px;

191 border-color: grey;

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

193 font-size: 17px;

194 color: @brand-black;

195

196 &:hover {

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

198 }

199 }

200 }

201 }

202

203 .capture-modal {

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

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

206 width: 400px;

207 display: flex;

208 flex-direction: column;

209 padding: 25px;

210

211 .info {

212 font-size: 20px;

213 width: 100%;

214 text-align: center;

215 margin-bottom: 25px;

216 color: @brand-black;

217 user-select: none;

218 }

219

220 .preview {

221 height: 250px;

222 background: @brand-grey-6;

223 border: 1px solid #f1f1f1;

224 border-radius: 3px;

225 margin-bottom: 25px;

226 }

227

228 .align {

229 display: flex;

230 gap: 25px;

231

232 .btn-cancel {

233 width: 185px;

234 height: 50px;

235 border: none;

236 border-radius: 3px;

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

238 font-size: 17px;

239

240 &:hover {

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

242 }

243 }

244

245 .btn-apply {

246 width: 185px;

247 height: 50px;

248 border: none;

249 border-radius: 3px;

250 border-color: grey;

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

252 font-size: 17px;

253

254 &:hover {

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

256 }

257 }

258 }

259 }

260

261 .toolbar {

262 top: 20px;

263 left: 20px;

264 }

265

266 .actionbar {

267 top: 20px;

268 right: 20px;

269 }

270

271 .actionbar,

272 .toolbar {

273 display: flex;

274 position: fixed;

275

276 &.inactive {

277

278 .action,

279 .tool {

280 pointer-events: none !important;

281 }

282 }

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 pointer-events: all;

293

294 &:hover {

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

296

297 &.ripple {

298

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

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

301 }

302

303 &.active.ripple-active {

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

305 }

306 }

307 }

308

309 &.active {

310 background: rgba(#EEEEEE, 0.95);

311 }

312

313 i.ico {

314 color: @brand-grey-0;

315 }

316 }

317 }

318}

319

320.colors-modal {

321 flex-wrap: wrap;

322 min-width: 410px;

323 width: 410px;

324 max-width: 410px;

325 padding: 30px !important;

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

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

328 display: flex;

329 gap: 12px;

330

331 .color {

332 width: 60px;

333 height: 60px;

334 border-radius: 30px;

335 background: #EEE;

336 cursor: pointer;

337 transition: transform 0.2s;

338 transform: scale(0.9);

339

340 &:not(.active):hover {

341 transform: scale(1);

342 }

343

344 &.active {

345 transform: scale(1.1);

346 }

347

348 &.focus {

349 transform: scale(1);

350 }

351 }

352}

353

354.multiplayer-modal {

355 top: 75px;

356 right: 120px;

357}

358

359.account-modal {

360 top: 75px;

361 right: 70px;

362}

363

364.settings-modal {

365 top: 75px;

366 right: 20px;

367}

368

369.device-modal {

370 top: 100px;

371 right: 320px;

372}

373

374.language-modal {

375 top: 100px;

376 right: 860px;

377}

378

379.settings-modal {

380 top: 75px;

381 right: 20px;

382}

383

384.modal {

385 width: 250px;

386 position: fixed;

387 background: white;

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

389 border-radius: 4px;

390 padding: 6px 0;

391 pointer-events: all;

392 overflow: hidden;

393 z-index: -1;

394 display: flex;

395

396 .main {

397 width: 248px;

398 min-width: 248px;7

399 max-width: 248px;

400 }

401

402 ul.tab-list {

403 width: 248px;

404 min-width: 248px;

405 max-width: 248px;

406 }

407

408 .header {

409 display: flex;

410 margin-bottom: 3px;

411

412 .back {

413 margin: 10px;

414 margin-top: 15px;

415 margin-right: 3px;

416 width: 36px;

417 height: 36px;

418 border-radius: 18px;

419 padding: 6px;

420 padding-left: 5px;

421 cursor: pointer;

422

423 i.ico {

424 color: @brand-grey-0;

425 }

426

427 &:hover {

428 background: @brand-grey-7;

429 }

430

431 &.ripple {

432

433 &.ripple-active {

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

435 }

436 }

437 }

438

439 .info {

440 display: flex;

441 flex-direction: column;

442 margin-top: 15px;

443

444 p {

445 display: flex;

446 align-items: center;

447 font-weight: 500;

448 color: @brand-grey-1;

449 user-select: none;

450 pointer-events: none;

451 }

452

453 span {

454 display: block;

455 margin-top: 3px;

456 font-size: 12px;

457 color: @brand-grey-3;

458 user-select: none;

459 pointer-events: none;

460 }

461 }

462 }

463

464 ul.item-list {

465

466 .separator {

467 margin: 6px 0;

468 width: 100%;

469 height: 1px;

470 background: @brand-grey-5;

471 }

472

473 li.caption {

474 padding: 2px 15px;

475 padding-top: 12px;

476 list-style: none;

477

478 p {

479 color: @brand-grey-3;

480 user-select: none;

481 pointer-events: none;

482 }

483 }

484

485 li.item {

486 display: flex;

487 align-items: center;

488 padding: 15px;

489 cursor: pointer;

490

491 &.empty {

492

493 p {

494 display: block;

495 width: 100%;

496 color: @brand-grey-3;

497 text-align: center;

498 user-select: none;

499 pointer-events: none;

500 }

501 }

502

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

504

505 &:hover {

506 background: @brand-grey-7;

507 }

508

509 &.ripple {

510

511 &.ripple-active {

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

513 }

514 }

515 }

516

517 i.ico {

518 color: @brand-grey-0;

519 user-select: none;

520 pointer-events: none;

521 }

522

523 i.lang {

524 display: flex;

525 justify-content: center;

526 align-items: center;

527 font-style: normal;

528 font-weight: 600;

529 width: 24px;

530 height: 24px;

531 color: @brand-grey-0;

532 user-select: none;

533 pointer-events: none;

534 }

535

536 .info {

537 display: flex;

538 flex-direction: column;

539 margin-left: 10px;

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

541

542 p {

543 display: flex;

544 align-items: center;

545 font-weight: 500;

546 color: @brand-grey-1;

547 user-select: none;

548 pointer-events: none;

549 }

550

551 span {

552 display: block;

553 margin-top: 3px;

554 font-size: 12px;

555 color: @brand-grey-3;

556 user-select: none;

557 pointer-events: none;

558 white-space: nowrap;

559 overflow: hidden;

560 text-overflow: ellipsis;

561 }

562 }

563

564 &.active {

565 background: #EEEEEE;

566

567 &.ripple {

568

569 &.ripple-active {

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

571 }

572 }

573 }

574

575 &.inactive {

576

577 i.ico {

578 color: @brand-grey-3;

579 }

580

581 .info {

582

583 p {

584 color: @brand-grey-3;

585 }

586 }

587 }

588 }

589 }

590}