so://phie

outline

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

blob: 9690e02d6d98e5a17cf94ee0d2a287251c30813f (5939 bytes)[doc][blame][raw]

1canvas.canvas {

2 position: relative;

3 z-index: 1;

4 cursor: none;

5 touch-action: none;

6}

7

8canvas.overlay {

9 pointer-events: none;

10 user-select: none;

11 position: absolute;

12 top: 0;

13 left: 0;

14 right: 0;

15 bottom: 0;

16 z-index: 99;

17}

18

19.wrapper {

20 width: 100vw;

21 height: 100vh;

22 position: fixed;

23 top: 0;

24 left: 0;

25 right: 0;

26 bottom: 0;

27 display: flex;

28 justify-content: center;

29 align-items: center;

30 background: rgba(0, 0, 0, 0.1);

31 z-index: 99999;

32 user-select: none;

33}

34

35.modal {

36 background: white;

37 width: 400px;

38 border-radius: 6px;

39 margin-top: -100px;

40 padding: 20px;

41 box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.03);

42

43 input.action-uuid,

44 input.action-file {

45 padding: 12px 14px;

46 width: 100%;

47 border: none;

48 background: #FAFAFA;

49 border-radius: 3px;

50 font-size: 16px;

51 user-select: none;

52

53 &:hover {

54 background: #F8F8F8;

55 }

56

57 &:focus {

58 background: #F5F5F5;

59 }

60 }

61

62 .seperator {

63 border-top: 1px solid #F5F5F5;

64 margin: 20px 0;

65 }

66

67 .align {

68 display: flex;

69 justify-content: space-between;

70 align-items: center;

71 }

72

73 p {

74 font-size: 18px;

75 letter-spacing: 0.2px;

76 padding-top: 5px;

77 margin-bottom: 25px;

78 }

79

80 button {

81 padding: 12px 14px;

82 border: none;

83 background: #F8F9FA;

84 border-radius: 3px;

85 font-size: 16px;

86 cursor: pointer;

87 user-select: none;

88 transition: background 0.1s;

89 color: #212121;

90

91 &:hover {

92 background: lighten(#F8F9FA, -5%);

93 }

94

95 &.success {

96 background: #28A745;

97 color: white;

98

99 &:hover {

100 background: lighten(#28A745, -5%);

101 }

102 }

103

104 &.danger {

105 background: #DC3545;

106 color: white;

107

108 &:hover {

109 background: lighten(#DC3545, -5%);

110 }

111 }

112

113 &.info {

114 background: #007BFF;

115 color: white;

116

117 &:hover {

118 background: lighten(#007BFF, -5%);

119 }

120 }

121 }

122

123 button.action-join {

124 width: 100%;

125 }

126

127 button.action-cancel {

128 width: calc(50% - 10px);

129 }

130

131 button.action-save,

132 button.action-clear,

133 button.action-background,

134 button.action-scaling,

135 button.action-color,

136 button.action-default {

137 width: calc(50% - 10px);

138 }

139

140 ul.avatar-list {

141 display: flex;

142 flex-wrap: wrap;

143 width: 100%;

144 list-style-type: none;

145

146 li.avatar {

147 background: #EEE;

148 border-radius: 9999px;

149 border: 5px solid white;

150 margin: 10px;

151 width: 70px;

152 height: 70px;

153 cursor: pointer;

154 transition: border-color 0.1s;

155

156 &:hover {

157 border: 5px solid #F8F8F8;

158 }

159 }

160 }

161

162 input.action-range {

163 width: calc(100% - 80px);

164 -webkit-appearance: none;

165 background: #F8F8F8;

166 height: 6px;

167

168 &:hover {

169 background: #F5F5F5;

170

171 &::-webkit-slider-thumb {

172 background: lighten(#888888, -20%);

173 }

174 }

175

176 &::-webkit-slider-thumb {

177 -webkit-appearance: none;

178 background: #888888;

179 width: 20px;

180 height: 20px;

181 border-radius: 9999px;

182 border: none;

183 cursor: pointer;

184 transition: background 0.1s;

185 }

186

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

188 -webkit-appearance: none;

189 }

190 }

191

192 .preview {

193 width: 60px;

194 height: 60px;

195 background: #F5F5F5;

196 border-radius: 9999px;

197 display: flex;

198 justify-content: center;

199 align-items: center;

200

201 .circle {

202 width: 12px;

203 height: 12px;

204 background: #212121;

205 border-radius: 9999px;

206 }

207 }

208

209 &.modal-color {

210 width: 580px;

211

212 .align {

213 width: calc(100% - 200px);

214 margin-left: 200px;

215 justify-content: flex-end;

216 }

217 }

218

219 ul.bucket-list {

220 display: flex;

221 flex-wrap: wrap;

222 width: 100%;

223 list-style-type: none;

224

225 li.bucket {

226 background: #EEE;

227 border-radius: 9999px;

228 margin: 10px;

229 width: 70px;

230 height: 70px;

231 cursor: pointer;

232 transition: transform 0.2s;

233 box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);

234

235 transform: scale(0.9);

236 user-select: none;

237

238 &:hover {

239 transition: transform 0.2s;

240 transform: scale(1);

241 }

242

243 &.focused {

244 transform: scale(1);

245 border: 3px solid #212121;

246 }

247

248 &::after {

249 position: absolute;

250 bottom: -20%;

251 }

252 }

253 }

254}

255

256.toolbar {

257 position: fixed;

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

259 bottom: 30px;

260 z-index: 2;

261 display: flex;

262 z-index: 999;

263

264 .bucket {

265 width: 56px;

266 height: 56px;

267 border-radius: 9999px;

268 background: #CCC;

269 margin: 8px;

270 transition: transform 0.2s;

271 box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);

272 cursor: pointer;

273 transform: scale(0.9);

274 user-select: none;

275

276 &:hover {

277 transition: transform 0.2s;

278 transform: scale(1);

279 }

280

281 &.focused {

282 transform: scale(1.1);

283 }

284 }

285}

286

287.actions {

288 position: fixed;

289 top: 30px;

290 left: 30px;

291 display: flex;

292}

293

294.action {

295 user-select: none;

296 position: relative;

297 width: 46px;

298 height: 46px;

299 border: none;

300 border-radius: 9999px;

301 background: transparent;

302 cursor: pointer;

303 outline: none;

304 position: fixed;

305 margin-right: 8px;

306

307 i {

308 color: #212121;

309 user-select: none;

310 pointer-events: none;

311 }

312

313 &:hover {

314 background: #ECECEC;

315 }

316

317 &::after {

318 bottom: -60%;

319 }

320}

321

322.tooltip {

323 position: relative;

324 display: flex;

325 justify-content: center;

326 align-items: center;

327

328 &:hover {

329

330 &::before {

331 opacity: 1;

332 transition-delay: 0.6s;

333 }

334

335 &::after {

336 opacity: 1;

337 transition-delay: 0.6s;

338 }

339 }

340

341 &::after {

342 display: flex;

343 opacity: 0;

344 content: attr(data-title);

345 justify-content: center;

346 align-items: center;

347 position: absolute;

348 background: #212121;

349 color: white;

350 min-height: 24px;

351 padding: 0 10px;

352 border-radius: 4px;

353 font-size: 12px;

354 top: auto;

355 bottom: -70%;

356 white-space: nowrap;

357 z-index: 9999;

358 pointer-events: none;

359 }

360

361 &.up {

362

363 &::before {

364 top: ~'calc(-90% + 26px)';

365 bottom: auto;

366 border-left: 6px solid transparent;

367 border-right: 6px solid transparent;

368 border-top: 6px solid #212121;

369 border-bottom: none;

370 }

371

372 &::after {

373 top: -60%;

374 bottom: auto;

375 }

376 }

377

378 &.down {

379

380 &::before {

381 top: auto;

382 bottom: ~'calc(-90% + 26px)';

383 border-left: 6px solid transparent;

384 border-right: 6px solid transparent;

385 border-top: none;

386 border-bottom: 6px solid #212121;

387 }

388

389 &::after {

390 top: auto;

391 bottom: -60%;

392 }

393 }

394}