-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
238 lines (206 loc) · 4.85 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
:root {
--teal: #caebf2;
--blue: #6495ed;
--white: #faf0e6;
--olive: #357b70;
--orange: #e0b354;
--black: #2b2b2b;
--lightgray: #D3D3D3;
--bodyweight: 400; font-size: 16px; font-family: 'Lato', sans-serif; line-height: 1.6; display: block; text-align: justify;
}
* {
box-sizing: border-box;
}
.profile__portrait {
float: left;
}
body {
var(--bodyweight);
background-color: var(--teal);
}
main {
font-family: 'Lato', sans-serif;
background-color: var(--teal);
var(--bodyweight);
}
h1, h2, h3 {
font-family:'Lato', sans-serif, monospace;
}
h1 {
font-size: 22px;
font-weight: 700;
}
h2 {
font-size: 20px;
font-weight: 700;
}
h3 {
font-size: 18px;
font-weight: 700;
}
a:hover, a:focus {
/* No underlining when hovering over a link */
text-decoration: none;
}
button {
/* overwrites browser defaults and resets the border */
border: none;
/* takes the font from the outer container */
font-family: inherit;
/* styles the background color, font color, and text decoration (underline, etc.) of the button */
background-color: var(--olive);
color: var(--white);
text-decoration: none;
/*adds spacing to the button (this will be discussed more in-depth later) */
padding: 10px;
border-radius: 3px;
/* gives the button a bottom border with a width of 2px, a type of solid, and a color in RGBA format */
border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}
.button__secondary {
background-color: var(--orange);
color: var(--black);
}
button:hover, button:focus {
/* lets the mouse appear as a hand when hovering over the button */
cursor: pointer;
/* reduces the opacity of the button to 80% */
opacity: 0.8;
}
.button, button {
border: none;
display: inline-block;
font-family: inherit;
/* styles the button */
background-color: var(--olive);
color: var(--white);
text-decoration: none;
padding: 10px;
border-radius: 3px;
/* width of the border, type, color */
border-bottom: 2px solid rgba(0, 0, 0, 0.3);
transition-duration: 0.2s;
transition-property: opacity;
}
button:hover,
button:focus,
.button:hover,
.button:focus {
/*lets the mouse appear as a hand when hovering over the button */
cursor: pointer;
/*reducse the opacity of the button to 80% */
opacity: 0.8;
}
.page-header {
display: flex;
width: auto;
padding: 20px;
}
.page-footer {
clear: both;
display: flex;
flex-direction: column;
text-align: center;
}
.Home_Photo {
border-radius: 50%;
width:150px;
height:150px;
justify: left;
}
.links {
justify-self: left;
}
.links-list {
list-style: none;
padding: 0;
}
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 2em;
margin: 2em;
}
.grid__item {
background-color: var(--lightgray);
display: inline-block;
width: auto;
min-height: auto;
margin: 0;
}
nav ul {
list-style: inline-block;
width: 100%;
display: justify-flex;
float: right;
justify-content: justify;
margin: 5px 10px;
}
nav li {
display: inline-block;
margin: 1.4em 1em 1em 1em;
padding: 10px;
float: right;
}
@media all and (max-width: 500px) {
.grid {
grid-template-columns: 1fr 1fr;
grid-gap: 10px;
}
.grid__item:last-child {
grid-column: auto / auto;
grid-row: auto / auto;
}
h1 {
font-size: 22px;
}
}
@keyframes color-change {
0% {
fill: #edc655;
}
50% {
fill: #fcffad;
}
100% {
fill: #f76414;
}
}
.sun {
animation-duration: 4s;
animation-name: color-change;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: linear;
}
@keyframes cloud-move {
from {
transform: translate(0, 50px);
}
to {
transform: translate(200px, 50px);
}
}
.cloud-front {
animation-duration: 30s;
animation-name: cloud-move;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: linear;
}
@keyframes cloud-move-reverse {
from {
transform: translate(446px, 48px);
}
to {
transform: translate(100px, 48px);
}
}
.cloud-back {
animation-duration: 34s;
animation-name: cloud-move-reverse;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: linear;
}
>>>>>>> cec3282de06e7dd357e15cadd479436b28067086:CSS/styles.css