-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.less
More file actions
52 lines (42 loc) · 863 Bytes
/
Copy pathapp.less
File metadata and controls
52 lines (42 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Import Randomized library
@import "randomized";
/*! BEGIN: app-only */
// The following rules will be removed from final export
@bg-color: #fff;
@link-color: #a212d1;
@code-color: #00cc80;
// Check the luma without gamma correction, this behaviors the same with jscolor.js
.check-bg (@v) when (luminance(@v) >= 50%) {
@return-bg: mix(#000, @v, 90%);
}
.check-bg (@v) when (luminance(@v) < 50%) {
@return-bg: mix(#fff, @v, 90%);
}
body {
.check-bg(@bg-color);
color: @return-bg;
background: @bg-color;
}
a {
color: @link-color;
}
h1 {
color: @code-color;
}
code {
color: @code-color;
}
input {
.check-bg(@bg-color);
color: @bg-color;
background: @return-bg;
}
.generated-styles {
color: @code-color;
transition-delay: 0s;
&:focus {
.check-bg(@bg-color);
background: fade(@return-bg, 4%);
}
}
/*! END: app-only */