so://phie

outline

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

blob: 311baaac8ca6a6ad92d8bd820f0adfc41dd2ce61 (5572 bytes)[doc][blame][raw]

1@media(prefers-color-scheme: dark) {

2

3 @brand-dark: #333C41;

4 @brand-light: #E0E0E0;

5 @brand-night: #2D353A;

6 @brand-grey: #828282;

7

8 /* ### Home ### */

9

10 body.home {

11 background: @brand-dark;

12

13 header {

14 background-image: url('../asset/img/background-dark.png');

15

16 .brand-logo {

17

18 a {

19 background-image: url('../asset/img/brand-logo-dark.png');

20 }

21 }

22

23 .logo {

24 background-image: url('../asset/img/logo-dark.png');

25 background-position: center;

26 }

27

28 h1.headline {

29 color: white;

30 }

31

32 p.description {

33 color: @brand-light;

34

35 b {

36 color: @brand-blue;

37 }

38 }

39 }

40

41 main {

42 background: @brand-dark;

43 }

44

45 footer {

46 background: @brand-night;

47

48 .footer-item {

49 color: darken(@brand-light, 20%);

50 }

51 }

52

53 button.button {

54

55 &.button-prime {

56 background: @brand-blue;

57 color: white;

58

59 &:hover {

60 background: darken(@brand-blue, 2%);

61 }

62 }

63

64 &.button-default {

65 background: darken(@brand-night, 7%);

66 color: @brand-light;

67

68 &:hover {

69 background: darken(@brand-night, 8%);

70 color: lighten(@brand-light, 10%);

71 }

72 }

73

74 &.button-prime-light {

75 background: rgba(@brand-blue, 0.1);

76 color: lighten(@brand-blue, 8%);

77

78 &:hover {

79 background: rgba(@brand-blue, 0.13);

80 color: lighten(@brand-blue, 12%);

81 }

82 }

83 }

84

85 .badge-version {

86 background: @brand-night;

87 color: @brand-light;

88 }

89

90 .caption {

91

92 h2.caption-headline {

93 color: white;

94

95 b {

96 color: @brand-blue;

97 }

98 }

99

100 .caption-info {

101

102 p {

103 color: @brand-light;

104 }

105 }

106 }

107 }

108

109 /* ### App ### */

110

111 .wrapper {

112 background: white;

113 }

114

115 .header-list {

116 background: @brand-dark;

117 border-bottom: 1px solid @brand-dark;

118

119 .mainbar,

120 .sidebar {

121

122 .tool,

123 .action,

124 .option {

125

126 ul {

127

128 li {

129

130 &:not(.inactive):not(.active):hover {

131 background: rgba(@brand-night, 0.95);

132

133 &.ripple {

134

135 &.ripple-active {

136 background: lighten(rgba(@brand-night, 0.95), -2%);

137 }

138 }

139 }

140

141 &.active {

142 background: rgba(@brand-night, 0.95);

143

144 &.ripple {

145

146 &.ripple-active {

147 background: lighten(rgba(@brand-night, 0.95), -2%);

148 }

149 }

150 }

151

152 &.inactive {

153

154 i.ico {

155 color: @brand-grey;

156

157 svg {

158

159 path {

160 fill: @brand-grey;

161 }

162 }

163 }

164 }

165

166 i.ico {

167 color: @brand-light;

168

169 svg {

170

171 path {

172 fill: @brand-light;

173 }

174 }

175 }

176 }

177 }

178 }

179 }

180 }

181

182 .badge {

183

184 &.prime {

185 background: @brand-blue;

186 }

187

188 &.beta {

189 background: @brand-green;

190 }

191 }

192

193 .key {

194 color: @brand-grey-2;

195 background: @brand-grey-7;

196 border: 1px solid @brand-grey-4;

197 }

198

199 .button {

200 background: darken(@brand-night, 4%);

201 color: @brand-light;

202

203 &:hover {

204

205 &.ripple-active {

206 background: darken(@brand-night, 5%);

207 }

208 }

209

210 &.outline {

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

212

213 &:hover {

214

215 &.ripple-active {

216 background: lighten(white, -2%);

217 }

218 }

219 }

220

221 &.prime {

222 background: @brand-blue;

223 color: white;

224

225 &:hover {

226

227 &.ripple-active {

228 background: lighten(@brand-blue, -2%);

229 }

230 }

231 }

232

233 &.danger {

234 background: @brand-red;

235 color: white;

236

237 &:hover {

238

239 &.ripple-active {

240 background: lighten(@brand-red, -2%);

241 }

242 }

243 }

244 }

245

246 .notification {

247

248 p {

249 background: @brand-black;

250 color: white;

251 }

252 }

253

254 .controls {

255

256 .hotbar {

257

258 .color {

259 background: @brand-bright;

260 }

261 }

262

263 .scale-modal {

264

265 input[type="range"] {

266 background: @brand-grey-1;

267

268 &::-webkit-slider-thumb {

269 background: @brand-grey-3;

270

271 &:hover {

272 background: darken(@brand-grey-3, 2%);

273 }

274 }

275 }

276 }

277

278 .clear-modal {

279

280 .info {

281 color: @brand-light;

282 }

283

284 .align {

285

286 .btn-apply {

287 border-color: grey;

288 }

289 }

290 }

291

292 .colors-modal {

293

294 &::-webkit-scrollbar-thumb {

295 background: @brand-night;

296

297 &:hover,

298 &:active {

299 background: darken(@brand-night, 2%);

300 }

301 }

302

303 .color {

304 background: @brand-bright;

305 }

306 }

307 }

308

309 .modal {

310 background: @brand-dark;

311 border: 1px solid @brand-dark;

312

313 .header {

314

315 .back {

316

317 i.ico {

318 color: @brand-light;

319 }

320

321 &:hover {

322 background: @brand-night;

323 }

324

325 &.ripple {

326

327 &.ripple-active {

328 background: lighten(@brand-night, -2%);

329 }

330 }

331 }

332

333 .info {

334

335 p {

336 color: @brand-light;

337 }

338

339 span {

340 color: @brand-grey-3;

341 }

342 }

343 }

344

345 ul.item-list {

346

347 .separator {

348 background: lighten(@brand-dark, 5%);

349 }

350

351 li.caption {

352

353 p {

354 color: @brand-grey-3;

355 }

356 }

357

358 li.item {

359

360 &.empty {

361

362 p {

363 color: @brand-light;

364 }

365 }

366

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

368

369 &:hover {

370 background: lighten(@brand-dark, -2%);

371 }

372

373 &.ripple {

374

375 &.ripple-active {

376 background: lighten(@brand-dark, -2%);

377 }

378 }

379 }

380

381 i.ico {

382 color: @brand-light;

383

384 svg {

385

386 path {

387 fill: @brand-light;

388 }

389 }

390 }

391

392 i.lang {

393 color: @brand-light;

394 }

395

396 .info {

397

398 p {

399 color: @brand-light;

400 }

401

402 span {

403 color: @brand-grey-3;

404 }

405 }

406

407 &.active {

408 background: @brand-night;

409

410 &.ripple {

411

412 &.ripple-active {

413 background: lighten(@brand-night, -2%);

414 }

415 }

416 }

417

418 &.inactive {

419

420 i.ico {

421 color: @brand-grey-3;

422 }

423

424 .info {

425

426 p {

427 color: @brand-grey-3;

428 }

429

430 span {

431 color: @brand-grey-3;

432 }

433 }

434 }

435 }

436 }

437 }

438}