-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
205 lines (174 loc) · 4.06 KB
/
index.css
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
200
201
202
203
204
205
:root {
--backdrop: #1C1C1C;
--main-background-color: #1F2937;
--body-text: #D5D4D8;
--hightlight: #4ADF86;
--button-highlight: #10B981;
--text-highlight: #55F991;
--output: #273549;
--stroke: #2F3E53;
}
html {
background-color: var(--backdrop);
color: var(--body-text);
font-size: 1.3rem;
font-family: Arial, Helvetica, sans-serif;
}
body {
background-color: var(--main-background-color);
margin: 2em auto;
padding: 50px;
width: 450px;
max-width: 90%;
}
h1 {
color: white;
margin-bottom: 0;
}
h1 strong {
display: block;
color: var(--hightlight);
}
/* Generator button and output */
#main {
display: flex;
justify-content: space-between;
margin: 1.5rem 0;
padding-top: 1.5rem;
border-top: solid 2px var(--stroke);
}
/* Generator button */
button {
background-color: var(--button-highlight);
color: white;
padding: .6rem .8rem;
border: none;
border-radius: 6px;
font-size: .8rem;
}
button:active {
opacity: .9;
}
button[disabled], button[disabled]:active {
opacity: .8;
}
/* /Generator button */
/* Output */
#password-output {
background-color: var(--output);
display: block;
height: 2rem;
width: 50%;
border-radius: 6px;
color: var(--text-highlight);
font-size: .8rem;
text-align: center;
line-height: 2rem;
transition: all .2s;
overflow: hidden;
}
#password-output.disabled {
color: var(--body-text);
transition: all 0;
}
#password-output.copying {
background-color: #5d86b5;
color: var(--body-text);
box-shadow: 0 0 2px white;
transition: all .2s;
}
/* /Output */
#options {
display: flex;
justify-content: space-between;
font-size: 13px;
margin-bottom: 2em;
}
#options > div {
width: 50%;
}
/* /Generator button and output */
/* Configuration Inputs */
#options input, .options label {
color: #9CA3AF;
}
#checkboxes {
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: 5px;
grid-row-gap: 1em;
justify-items: stretch;
align-items: stretch;
}
#options input[type=checkbox]:checked {
accent-color: var(--button-highlight);
}
#slider {
display: flex;
padding-top: 5px;
}
#slider label {
min-width: 6em;
}
#slider label output {
font-weight: 600;
}
/* Range input cleanup */
input[type=range] {
margin-top: -30px;
-webkit-appearance: none; /* Hides the slider so that custom slider can be made */
width: 100%; /* Specific width is required for Firefox. */
background: transparent; /* Otherwise white in Chrome */
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
}
input[type=range]:focus {
outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}
/* /Range input cleanup */
/* Range input thumb styling */
/* Special styling for WebKit/Blink */
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
height: 10px;
width: 10px;
border-radius: 5px;
background: #ffffff;
cursor: pointer;
margin-top: -3px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}
/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
border: none;
height: 10px;
width: 10px;
border-radius: 5px;
background: #ffffff;
cursor: pointer;
}
/* /Range input thumb styling */
/* Range input track styling */
input[type=range]::-webkit-slider-runnable-track {
width: 100%;
height: 4px;
cursor: pointer;
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
background: #9CA3AF;
border-radius: 1px;
border: none;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: #9CA3AF;
}
input[type=range]::-moz-range-track {
width: 100%;
height: 2px;
cursor: pointer;
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
background: #9CA3AF;
border-radius: 1px;
border: none;
}
/* Range input track styling */