-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathstyle.css
180 lines (165 loc) · 3.48 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
:root {
--modal-orange: rgb(248, 162, 3);
--link-blue: rgba(3, 38, 83, 0.8);
--light-gray: rgb(211, 211, 211);
}
.wrapper {
display: grid;
grid-template-areas: "header header header"
"aside content content"
"aside content content"
"footer footer footer";
grid-gap: 20px;
min-height: 100%;
}
/* */
/* Header */
/* */
.title {
text-align: center;
grid-area: header;
border-bottom: 3px solid var(--modal-orange);
background-color: var(--light-gray);
color: var(--link-blue);
}
/* */
/* Selection */
/* */
.catSelection {
display: grid;
grid-area: aside;
grid-row: 2 / span 2;
justify-content: center;
/* The .catSelection itself is the `aside` in the .wrapper grid above. If the
* value below is `center`, this will shift up and down as the `content` grid
* section adjusts in height, e.g. the photo for Bethany is taller, ergo this
* section will shift down.
align-content: center;
*
* a value of `start` will keep this flush top.
*/
align-content: start;
}
.catSelection h1, ul {
padding: 20px;
list-style: none;
}
.catSelection li {
text-align: center;
padding: 5px;
border: 1px solid transparent;
}
.catItem:hover {
background-color: var(--link-blue);
border: 1px solid var(--modal-orange);
cursor: pointer;
color: var(--light-gray);
}
.catSelection_modal, .instructions {
border-top: 5px solid var(--modal-orange);
background-color: rgb(243, 243, 243);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
/* */
/* Display */
/* */
.catDisplay {
display: grid;
grid-area: content;
grid-column: 2 / span 2;
grid-row: 2 / span 2;
justify-content: center;
width: 100%;
height: 100%;
}
.catDisplay img {
width: 650px;
}
/* */
/* Clicks */
/* */
.clicks {
border-top: 5px solid var(--modal-orange);
background-color: var(--light-gray);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
text-align: center;
height: 60px;
}
/* */
/* Footer */
/* */
.footer {
display: flex;
align-items: center;
justify-content: space-between;
grid-row-start: 4;
grid-column: span 3;
border-top: 3px solid var(--modal-orange);
margin-top: 5.2%;
background-color: var(--light-gray);
width: 100%;
}
#social {
align-self: center;
justify-content: flex-end;
font-size: 2.5em;
padding-right: 2%;
}
#social :hover {
transform: scale(1.1);
}
a {
color: var(--link-blue);
text-decoration: none;
}
.trademark {
font-size: 1.1em;
justify-content: center;
padding-left: 2%;
}
.trademark a:hover {
color: rgb(10, 155, 223);
text-shadow: 1px 1px 1px black;
}
/* media queries for mobile devices
(portait view on most phones and
landscape view on smaller phones.
Larger phones will still get the desktop version on landscape) */
@media only screen and (max-width: 768px) {
.wrapper, .catSelection {
display: block;
}
.title {
padding: 1rem;
}
section {
width: 100%;
}
.title h1, .catSelection_modal h1, ul, .instructions h1, ol, #catName h2, .footer {
margin: 0;
}
.instructions h1, .catSelection_modal h1 {
text-align: center;
}
ol {
padding: 1rem 1rem 1rem 3rem;
}
.catSelection ol li {
text-align: left;
}
.catDisplay {
background-color: var(--light-gray);
}
#catName {
text-align: center;
}
.catDisplay img {
width: 100%;
}
.clicks {
font-size: 1.4rem;
}
.trademark h2, #social {
font-size: 1rem;
}
}