/
classic.scss
81 lines (68 loc) 路 1.95 KB
/
classic.scss
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@import '../lib/variables';
@import '../lib/mixins';
@import '../base';
.pcr-app[data-theme='classic'] {
width: 28.5em;
max-width: 95vw;
padding: 0.8em;
.pcr-selection {
display: flex;
justify-content: space-between;
flex-grow: 1;
.pcr-color-preview {
@include transparency-background;
position: relative;
z-index: 1;
width: 2em;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-right: 0.75em;
.pcr-last-color {
cursor: pointer;
transition: background-color 0.3s, box-shadow 0.3s;
border-radius: 0.15em 0.15em 0 0;
z-index: 2;
}
.pcr-current-color {
border-radius: 0 0 0.15em 0.15em;
}
.pcr-last-color,
.pcr-current-color {
background: currentColor;
width: 100%;
height: 50%;
}
}
.pcr-color-palette {
width: 100%;
height: 8em;
z-index: 1;
.pcr-palette {
flex-grow: 1;
border-radius: $border-radius-mid;
@include transparency-background;
}
}
.pcr-color-chooser,
.pcr-color-opacity {
margin-left: 0.75em;
.pcr-picker {
left: 50%;
transform: translateX(-50%);
}
.pcr-slider {
width: 8px;
flex-grow: 1;
border-radius: 50em;
}
}
.pcr-color-chooser .pcr-slider {
background: colorRainbow();
}
.pcr-color-opacity .pcr-slider {
background: linear-gradient(to bottom, transparent, black), $icon-transparency;
background-size: 100%, 50%;
}
}
}