so://phie

outline

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

blob: 98e27c75801cc5b78c3894bcef232d4e3c38ad37 (5896 bytes)[doc][blame][raw]

1canvas.canvas {

2 position: relative;

3 z-index: 1;

4 cursor: none;

5}

6

7canvas.overlay {

8 pointer-events: none;

9 user-select: none;

10 position: absolute;

11 top: 0;

12 left: 0;

13 right: 0;

14 bottom: 0;

15 z-index: 99;

16}

17

18.wrapper {

19 width: 100vw;

20 height: 100vh;

21 position: fixed;

22 top: 0;

23 left: 0;

24 right: 0;

25 bottom: 0;

26 display: flex;

27 justify-content: center;

28 align-items: center;

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

30 z-index: 99999;

31 user-select: none;

32}

33

34.modal {

35 background: white;

36 width: 400px;

37 border-radius: 6px;

38 margin-top: -100px;

39 padding: 20px;

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

41

42 input.action-uuid,

43 input.action-file {

44 padding: 12px 14px;

45 width: 100%;

46 border: none;

47 background: #FAFAFA;

48 border-radius: 3px;

49 font-size: 16px;

50 user-select: none;

51

52 &:hover {

53 background: #F8F8F8;

54 }

55

56 &:focus {

57 background: #F5F5F5;

58 }

59 }

60

61 .seperator {

62 border-top: 1px solid #F5F5F5;

63 margin: 20px 0;

64 }

65

66 .align {

67 display: flex;

68 justify-content: space-between;

69 align-items: center;

70 }

71

72 p {

73 font-size: 18px;

74 letter-spacing: 0.2px;

75 padding-top: 5px;

76 margin-bottom: 25px;

77 }

78

79 button {

80 padding: 12px 14px;

81 border: none;

82 background: #F8F9FA;

83 border-radius: 3px;

84 font-size: 16px;

85 cursor: pointer;

86 user-select: none;

87 transition: background 0.1s;

88 color: #212121;

89

90 &:hover {

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

92 }

93

94 &.success {

95 background: #28A745;

96 color: white;

97

98 &:hover {

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

100 }

101 }

102

103 &.danger {

104 background: #DC3545;

105 color: white;

106

107 &:hover {

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

109 }

110 }

111

112 &.info {

113 background: #007BFF;

114 color: white;

115

116 &:hover {

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

118 }

119 }

120 }

121

122 button.action-join {

123 width: 100%;

124 }

125

126 button.action-cancel {

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

128 }

129

130 button.action-save,

131 button.action-clear,

132 button.action-background,

133 button.action-scaling,

134 button.action-color,

135 button.action-default {

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

137 }

138

139 ul.avatar-list {

140 display: flex;

141 flex-wrap: wrap;

142 width: 100%;

143 list-style-type: none;

144

145 li.avatar {

146 background: #EEE;

147 border-radius: 9999px;

148 border: 5px solid white;

149 margin: 10px;

150 width: 70px;

151 height: 70px;

152 cursor: pointer;

153 transition: border-color 0.1s;

154

155 &:hover {

156 border: 5px solid #F8F8F8;

157 }

158 }

159 }

160

161 input.action-range {

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

163 -webkit-appearance: none;

164 background: #F8F8F8;

165 height: 6px;

166

167 &:hover {

168 background: #F5F5F5;

169

170 &::-webkit-slider-thumb {

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

172 }

173 }

174

175 &::-webkit-slider-thumb {

176 -webkit-appearance: none;

177 background: #888888;

178 width: 20px;

179 height: 20px;

180 border-radius: 9999px;

181 border: none;

182 cursor: pointer;

183 transition: background 0.1s;

184 }

185

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

187 -webkit-appearance: none;

188 }

189 }

190

191 .preview {

192 width: 60px;

193 height: 60px;

194 background: #F5F5F5;

195 border-radius: 9999px;

196 display: flex;

197 justify-content: center;

198 align-items: center;

199

200 .circle {

201 width: 12px;

202 height: 12px;

203 background: #212121;

204 border-radius: 9999px;

205 }

206 }

207

208 &.modal-color {

209 width: 580px;

210

211 .align {

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

213 margin-left: 200px;

214 justify-content: flex-end;

215 }

216 }

217

218 ul.bucket-list {

219 display: flex;

220 flex-wrap: wrap;

221 width: 100%;

222 list-style-type: none;

223

224 li.bucket {

225 background: #EEE;

226 border-radius: 9999px;

227 margin: 10px;

228 width: 70px;

229 height: 70px;

230 cursor: pointer;

231 transition: transform 0.2s;

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

233

234 transform: scale(0.9);

235 user-select: none;

236

237 &:hover {

238 transition: transform 0.2s;

239 transform: scale(1);

240 }

241

242 &.focused {

243 transform: scale(1);

244 border: 3px solid #212121;

245 }

246

247 &::after {

248 position: absolute;

249 bottom: -20%;

250 }

251 }

252 }

253}

254

255.toolbar {

256 position: fixed;

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

258 bottom: 30px;

259 z-index: 2;

260 display: flex;

261 z-index: 999;

262

263 .bucket {

264 width: 56px;

265 height: 56px;

266 border-radius: 9999px;

267 background: #CCC;

268 margin: 8px;

269 transition: transform 0.2s;

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

271 cursor: pointer;

272 transform: scale(0.9);

273 user-select: none;

274

275 &:hover {

276 transition: transform 0.2s;

277 transform: scale(1);

278 }

279

280 &.focused {

281 transform: scale(1.1);

282 }

283 }

284}

285

286.actions {

287 position: fixed;

288 top: 30px;

289 left: 30px;

290 display: flex;

291}

292

293.action {

294 user-select: none;

295 position: relative;

296 width: 46px;

297 height: 46px;

298 border: none;

299 border-radius: 9999px;

300 background: transparent;

301 cursor: pointer;

302 outline: none;

303 position: fixed;

304 margin-right: 8px;

305

306 i {

307 color: #212121;

308 user-select: none;

309 pointer-events: none;

310 }

311

312 &:hover {

313 background: #ECECEC;

314 }

315

316 &::after {

317 bottom: -60%;

318 }

319}

320

321.tooltip {

322 position: relative;

323 display: flex;

324 justify-content: center;

325

326 &:hover {

327

328 &::before {

329 opacity: 1;

330 transition-delay: 0.6s;

331 }

332

333 &::after {

334 opacity: 1;

335 transition-delay: 0.6s;

336 }

337 }

338

339 &::after {

340 display: flex;

341 opacity: 0;

342 content: attr(data-title);

343 justify-content: center;

344 align-items: center;

345 position: absolute;

346 background: #212121;

347 color: white;

348 min-height: 24px;

349 padding: 0 10px;

350 border-radius: 4px;

351 font-size: 12px;

352 top: auto;

353 bottom: -70%;

354 white-space: nowrap;

355 z-index: 9999;

356 pointer-events: none;

357 }

358

359 &.up {

360

361 &::before {

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

363 bottom: auto;

364 border-left: 6px solid transparent;

365 border-right: 6px solid transparent;

366 border-top: 6px solid #212121;

367 border-bottom: none;

368 }

369

370 &::after {

371 top: -60%;

372 bottom: auto;

373 }

374 }

375

376 &.down {

377

378 &::before {

379 top: auto;

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

381 border-left: 6px solid transparent;

382 border-right: 6px solid transparent;

383 border-top: none;

384 border-bottom: 6px solid #212121;

385 }

386

387 &::after {

388 top: auto;

389 bottom: -60%;

390 }

391 }

392}