Skip to content

Commit 279994b

Browse files
committed
add general, keyframes, fontface, root, header, section, and footer formatting
1 parent 4ce65cc commit 279994b

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

css/style.css

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/************General Formatting************/
2+
* {
3+
padding: 0;
4+
margin: 0;
5+
box-sizing: border-box;
6+
}
7+
/************End of general formatting************/
8+
9+
/************Animation Formatting************/
10+
@keyframes fadedown {
11+
from {
12+
opacity: 0;
13+
}
14+
to {
15+
opacity: 1;
16+
}
17+
}
18+
/************End of Animation Formatting************/
19+
20+
/************Font face Formatting************/
21+
@font-face {
22+
font-family: 'VarelaRound-Regular';
23+
src: url(../fonts/VarelaRound-Regular.ttf);
24+
}
25+
26+
@font-face {
27+
font-family: 'Quicksand-VariableFont_wght';
28+
src: url(../fonts/Quicksand-VariableFont_wght.ttf);
29+
}
30+
/************End of Font face Formatting************/
31+
32+
/************Root Formatting************/
33+
:root {
34+
--primary-round-font: 'VarelaRound-Regular';/*Font font family for h1 tags*/
35+
--primary-font-size: 6.5em;/*Primary font size*/
36+
--secondary-round-font: 'Quicksand-VariableFont_wght';/*Font family for h2 tags*/
37+
--second-font-size: 4em;/*Second font size for h2 tags*/
38+
--footer-font-family: monospace;;
39+
--footer-font-size: 3em;/*Font size for footer*/
40+
}
41+
/************End of Root Formatting************/
42+
43+
/************Header Formatting************/
44+
header {
45+
padding: 20px;
46+
display: flex;
47+
align-items: center;
48+
justify-content: space-between;
49+
animation: fadedown 1s ease-in-out;
50+
}
51+
52+
/*Format hamburger menu*/
53+
.bx-menu {
54+
padding: 10px;
55+
font-size: 7em;
56+
border: 5px solid black;
57+
border-radius: 8px;
58+
}
59+
60+
/*Format site logo*/
61+
.siteLogo {
62+
max-width: 250px;
63+
}
64+
/************End of Header Formatting************/
65+
66+
/************Section Formatting************/
67+
section {
68+
padding: 20px;
69+
justify-content: center;
70+
align-items: center;
71+
text-align: center;
72+
}
73+
74+
/*Format section h2 tags*/
75+
section h2 {
76+
font-family: var(--secondary-round-font);
77+
font-size: var(--second-font-size);
78+
}
79+
/************End of Section Formatting************/
80+
81+
/************Footer Formatting************/
82+
footer {
83+
padding: 20px;
84+
text-align: center;
85+
font-size: var(--footer-font-size);
86+
font-family: var(--footer-font-family);
87+
font-weight: bolder;
88+
}
89+
/************End of Footer Formatting************/

0 commit comments

Comments
 (0)