-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
199 lines (170 loc) · 3.54 KB
/
style.css
File metadata and controls
199 lines (170 loc) · 3.54 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
* {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
-webkit-user-drag: none;
-moz-user-select: none;
}
body {
background-color: hsl(0, 0%, 10%);
}
main {
display: flex;
flex-direction: column;
}
#pickerContainer {
margin: 50px auto;
width: fit-content;
display: grid;
grid-template-rows: repeat(2, auto);
grid-template-columns: repeat(2, auto);
gap: 10px;
padding: 30px;
border-radius: 2px;
}
.canvasSlider {
position: relative;
}
#huePicker {
grid-row: 2;
}
#alphaPicker {
margin: 0 5px;
}
.slider {
position: absolute;
top: 0;
left: 0;
translate: -50% -50%;
border: 3px solid white;
cursor: pointer;
}
#colorPicker .slider {
left: 100%;
border-radius: 50%;
width: 20px;
height: 20px;
}
#huePicker .slider {
top: 50%;
width: 10px;
height: 110%;
translate: -50% calc(-50% - 2px);
border-radius: 5px;
border: 2px solid hsl(0, 0%, 70%);
}
#alphaPicker .slider {
left: 50%;
height: 10px;
width: 125%;
translate: -50% calc(-50% - 1px);
border-radius: 5px;
border: 2px solid gray;
}
#resultContainer {
width: fit-content;
margin: auto;
display: grid;
grid-template-columns: 1fr 2fr;
gap: 5px;
}
#colorUnderlay {
position: relative;
width: 250px;
height: 250px;
border: 2px solid white;
background-repeat: repeat;
}
#result {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: red;
z-index: 10;
}
#resultValues {
height: 250px;
border: 2px solid white;
overflow-y: scroll;
}
.scrollable::-webkit-scrollbar {
width: 10px;
}
.scrollable::-webkit-scrollbar-button {
height: 0;
display: none;
}
.scrollable::-webkit-scrollbar-thumb {
background-color: hsl(0, 0%, 40%);
border-radius: 6px;
}
.scrollable::-webkit-scrollbar-track {
background-color: hsl(0, 0%, 20%);
}
.colorNotation {
color: white;
font-family: cursive;
margin: 20px;
padding: 10px 20px;
border: px solid white;
display: grid;
grid-template-columns: repeat(4, 1fr) repeat(2, 0.25fr);
row-gap: 10px;
}
.colorNotation .subHeading {
grid-column: span 6;
margin-bottom: 5px;
}
.colorNotation input[type="number"] {
width: 50px;
height: 30px;
margin: 0 3px;
background-color: transparent;
border: 2px solid whitesmoke;
color: white;
font-size: 17px;
text-align: center;
}
.colorNotation label:nth-child(5) > input[type="number"] {
width: 55px;
}
.colorNotation input[type=number]::-webkit-outer-spin-button,
.colorNotation input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.colorNotation [type=number] {
-moz-appearance: textfield;
}
.actionBtn {
width: 30px;
height: 30px;
margin: 0 10px;
background-color: transparent;
border: none;
cursor: pointer;
}
.actionBtn img {
width: 100%;
height: 100%;
filter: invert(1);
}
.actionBtn:active img {
filter: invert(1) drop-shadow(1px 1px 1px white);
}
#hex {
grid-template-columns: 4fr repeat(2, 0.25fr);
}
#hex input[type="text"] {
width: 125px;
height: 30px;
margin: 0 3px;
background-color: transparent;
border: 2px solid whitesmoke;
color: white;
font-size: 17px;
text-align: center;
}