so://phie

outline

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

blob: 7a98c33b6f7e80166976926d84de62d277970234 (5836 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 }

215 }

216

217 ul.bucket-list {

218 display: flex;

219 flex-wrap: wrap;

220 width: 100%;

221 list-style-type: none;

222

223 li.bucket {

224 background: #EEE;

225 border-radius: 9999px;

226 margin: 10px;

227 width: 70px;

228 height: 70px;

229 cursor: pointer;

230 transition: transform 0.2s;

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

232

233 transform: scale(0.9);

234 user-select: none;

235

236 &:hover {

237 transition: transform 0.2s;

238 transform: scale(1);

239 }

240

241 &.focused {

242 transform: scale(1.1);

243 }

244

245 &::after {

246 position: absolute;

247 bottom: -20%;

248 }

249 }

250 }

251}

252

253.toolbar {

254 position: fixed;

255 left: calc(50% - 360px);

256 bottom: 30px;

257 z-index: 2;

258 display: flex;

259 z-index: 999;

260

261 .bucket {

262 width: 56px;

263 height: 56px;

264 border-radius: 9999px;

265 background: #CCC;

266 margin: 8px;

267 transition: transform 0.2s;

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

269 cursor: pointer;

270 transform: scale(0.9);

271 user-select: none;

272

273 &:hover {

274 transition: transform 0.2s;

275 transform: scale(1);

276 }

277

278 &.focused {

279 transform: scale(1.1);

280 }

281 }

282}

283

284.actions {

285 position: fixed;

286 top: 30px;

287 left: 30px;

288 display: flex;

289}

290

291.action {

292 user-select: none;

293 position: relative;

294 width: 46px;

295 height: 46px;

296 border: none;

297 border-radius: 9999px;

298 background: transparent;

299 cursor: pointer;

300 outline: none;

301 position: fixed;

302 margin-right: 8px;

303

304 i {

305 color: #212121;

306 user-select: none;

307 pointer-events: none;

308 }

309

310 &:hover {

311 background: #ECECEC;

312 }

313

314 &::after {

315 bottom: -60%;

316 }

317}

318

319.tooltip {

320 position: relative;

321 display: flex;

322 justify-content: center;

323

324 &:hover {

325

326 &::before {

327 opacity: 1;

328 transition-delay: 0.6s;

329 }

330

331 &::after {

332 opacity: 1;

333 transition-delay: 0.6s;

334 }

335 }

336

337 &::after {

338 display: flex;

339 opacity: 0;

340 content: attr(data-title);

341 justify-content: center;

342 align-items: center;

343 position: absolute;

344 background: #212121;

345 color: white;

346 min-height: 24px;

347 padding: 0 10px;

348 border-radius: 4px;

349 font-size: 12px;

350 top: auto;

351 bottom: -70%;

352 white-space: nowrap;

353 z-index: 9999;

354 pointer-events: none;

355 }

356

357 &.up {

358

359 &::before {

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

361 bottom: auto;

362 border-left: 6px solid transparent;

363 border-right: 6px solid transparent;

364 border-top: 6px solid #212121;

365 border-bottom: none;

366 }

367

368 &::after {

369 top: -60%;

370 bottom: auto;

371 }

372 }

373

374 &.down {

375

376 &::before {

377 top: auto;

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

379 border-left: 6px solid transparent;

380 border-right: 6px solid transparent;

381 border-top: none;

382 border-bottom: 6px solid #212121;

383 }

384

385 &::after {

386 top: auto;

387 bottom: -60%;

388 }

389 }

390}