-
Notifications
You must be signed in to change notification settings - Fork 3
/
style.css
190 lines (162 loc) · 2.83 KB
/
style.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
html {
font-size: 62.5%;
}
main {
font-family: 'Yusei Magic', sans-serif;
font-size: 2rem;
text-align: center;
color: #c45cb3;
}
/*********************
Filter / Checkboxes
*********************/
fieldset {
display: flex;
flex-flow: row wrap;
justify-content: center;
border: none;
font-size: 2rem;
}
fieldset div{ /*checkbox+label combos*/
margin: 1rem;
cursor: pointer;
display: flex;
flex-flow: row nowrap;
align-items: center;
}
input[type="checkbox"],label{
cursor: pointer;
accent-color: #c45cb3;
}
input[type="checkbox"]{
transform: scale(1.2);
margin-right: .7rem;
}
input[type="checkbox"]:focus + label,
input[type="checkbox"]:hover + label {
accent-color: #b345a0;
color: #b345a0;
}
input[type="checkbox"]:focus,
input[type="checkbox"]:hover {
outline: .15rem solid #964688;
accent-color: #b345a0;
color: #b345a0;
}
label {
margin-right: 1rem;
}
/**************
Submit Button
***************/
input[type="submit"] {
font-family: 'Yusei Magic', sans-serif;
color: white;
width: 10rem;
margin: 1em auto;
cursor: pointer;
font-size: 3rem;
border-radius: .5rem;
background-color: #c45cb3;
border: .1rem solid #c45cb3;
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
}
input[type="submit"]:focus,
input[type="submit"]:hover {
outline: .2rem solid #964688;
color: #ffeefc;
background-color: #b345a0;
}
input[type="submit"]:active {
outline: .15rem solid #964688;
transform: scale(.97);
}
/****************************
Section that displays cards
*****************************/
.cards div {
width: 50vw;
padding: 3rem;
border: .1rem solid #c45cb3;
border-radius: .5rem;
background-color: #fae6f7;
color: #c45cb3;
cursor: pointer;
margin: auto;
display: flex;
flex-flow: column wrap;
align-items: start;
}
.cards div p {
text-align: left;
}
.cards div h2 {
margin-top: 0;
}
.cards div:focus,
.cards div:hover {
outline: .15rem solid #c45cb3;
background-color: #ffe4fa;
}
.cards div img,
.cards div h2 {
align-self: center;
}
.cards .hide {
display: none;
}
.cards .reverse {
transform: scaleY(-1);
}
.cards img {
width: 12vw;
-moz-box-shadow: .1rem .2rem .3rem rgba(0,0,0,.5);
-webkit-box-shadow: .1rem .2rem .3rem rgba(0,0,0,.5);
box-shadow: .1rem .2rem .3rem rgba(0,0,0,.5);
border-radius: .3rem;
}
.error-message{
color: rgb(255, 0, 76);
}
/***********************
Mobile/Tablet Settings
***********************/
@media only all and (max-width: 800px) {
body{
margin: 0;
}
.description{
margin: 8px;
font-size: 1.2em;
}
img {
width: 30vw;
}
fieldset{
display: grid;
grid-template-columns: 1fr 1fr;
}
fieldset div{
margin-right: .2rem;
}
label{
margin-left: 0;
font-size: 1em;
}
.cards div{
margin: 8px;
width: auto;
}
.cards div > h2{
font-size: 2em;
}
.front img{
width: 60vw;
}
.back p{
font-size: 1.3em;
}
}