-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
198 lines (170 loc) · 3.18 KB
/
styles.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
html {
font-size: 16px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
color: lightgray;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
background-color: black;
}
.header {
margin: 2rem 3rem 1rem 3rem;
padding: .5rem;
}
h1 {
font-weight: 200;
font-size: 3rem;
}
.controls {
display: flex;
margin-top: 2rem;
}
form {
font-size: 0;
display: flex;
}
label {
font-size: .75rem;
margin: .3rem .5rem 0 0;
}
input {
color: lightgray;
width: 11.5rem;
padding: .25rem;
font-size: 1rem;
border-top-style: hidden;
border-right-style: hidden;
border-left-style: hidden;
border-bottom: 1px solid grey;
background-color: transparent;
margin-right: 1.75rem;
}
input::placeholder {
color: rgb(75, 75, 75);
}
input:focus {
border: none;
border-bottom: 1px solid royalblue;
cursor: text;
outline: none;
}
button {
outline: none;
border: none;
background-color: transparent;
}
.segmentedButton {
height: 1.5rem;
border: 2px solid grey;
padding: 0 .75rem 0 .75rem;
color: rgb(75, 75, 75);
}
.segmentedButton:first-of-type {
border-radius: .5rem 0 0 .5rem;
border-right: 1px solid royalblue;
}
.segmentedButton:nth-of-type(2) {
border-radius: 0 .5rem .5rem 0;
border-left: 1px solid royalblue;
}
.segmentedButton.selected {
border-color: royalblue;
color: lightgray;
}
.segmentedButton:hover {
transition: color .2s;
color: lightgray;
}
#sortReverse {
position: absolute;
margin-left: .25rem;
}
#sortReverse > i {
transition: color .2s;
font-size: 1.5rem;
}
#sortReverse:hover {
color: royalblue;
}
.container {
display: flex;
flex-wrap: wrap;
margin: 0 3rem 3rem 3rem;
}
.colorSwatch {
flex-basis: calc(25% - 1rem);
height: 2rem;
margin: .5rem;
padding: 0 1rem 0 1rem;
border-radius: 1rem;
overflow: hidden;
text-align: left;
font-weight: 600;
}
.material-icons {
font-size: .75rem;
color: inherit;
}
.toasterIcon {
color: limegreen;
font-size: 1rem;
}
.toaster {
position: fixed;
background-color: white;
color: black;
width: 80%;
margin-left: 10%;
top: -3rem;
height: 3rem;
border-radius: .5rem;
padding: .8rem 1rem 1rem 1rem;
opacity: 0;
box-shadow: 0 0 .5rem rgba(0, 0, 0, 0.5);
}
@keyframes toaster {
0% {
opacity: 0;
top: -3rem;
}
5% {
opacity: 1;
top: 1rem;
}
90% {
opacity: 0;
top: 1rem;
}
}
@media only screen and (max-width: 800px) {
form {
margin-bottom: 1rem;
display: flex;
flex-direction: column;
}
input {
width: 14rem;
margin-top: .25rem;
}
.segmentedButton, button > i {
margin-top: .5rem;
}
.colorSwatch {
flex-basis: calc((100%/3) - 1rem);
}
}
@media only screen and (max-width: 600px) {
.controls {
display: block;
}
form {
margin-bottom: 1rem;
}
.colorSwatch {
flex-basis: calc(100% - 1rem);
}
}