Skip to content

Commit c34bd3f

Browse files
committed
delete and reformat footer and header
1 parent 5aba63b commit c34bd3f

File tree

1 file changed

+54
-161
lines changed

1 file changed

+54
-161
lines changed

weatherApp/css/style.css

Lines changed: 54 additions & 161 deletions
Original file line numberDiff line numberDiff line change
@@ -9,203 +9,96 @@
99
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
1010
/********************End of Font Formatting********************/
1111

12+
/********************Root Formatting********************/
13+
:root {
14+
--primary-title-font: 'M Plus Rounded 1c', sans-serif;
15+
--primary-title-font-size: 1.6em;
16+
--navigation-link-font: monospace;
17+
--navigation-font-size: 1.4em;
18+
--footer-font: 'Nunito Sans', sans-serif;
19+
--footer-sub-font: 'Barlow', sans-serif;
20+
}
21+
/********************End of Root Formatting********************/
22+
1223
/********************General Formatting********************/
1324
* {
1425
padding: 0;
1526
margin: 0;
1627
box-sizing: border-box;
1728
}
18-
19-
/*Body formatting*/
20-
body {
21-
background-image: url(../images/lightClouds.jpeg);
22-
background-size: cover;
23-
background-position: center;
24-
background-attachment: fixed;
25-
}
26-
27-
/*Format h3 h4 tags*/
2829
/********************End of General Formatting********************/
2930

30-
/********************Root Formatting********************/
31-
:root {
32-
--section-header-font-family: 'Nunito Sans';
33-
--section-header-font-size: 5em;
34-
--about-text-font-family: 'Barlow';
35-
--about-text-font-size: 3.2em;
36-
}
37-
/********************End of Root Formatting********************/
38-
3931
/********************Header Formatting********************/
40-
/*Format nav bar*/
41-
.navbar {
42-
font-family: 'M PLUS Rounded 1c', sans-serif;
43-
}
4432

45-
/*Format nav link logo*/
46-
.navbar a {
47-
padding: 10px;
48-
font-size: 4em;
49-
align-items: center;
33+
/**Navbar formatting**/
34+
35+
/*Format nav bar brand color*/
36+
.navbar-brand {
5037
color: orange;
51-
font-weight: bolder;
38+
font-family: var(--primary-title-font);
39+
font-size: var(--primary-title-font-size);
40+
font-weight: bold;
5241
}
5342

54-
/*Format nav links in collapse div*/
55-
.navbar-collapse a {
43+
/*Format nav links*/
44+
.nav-link {
45+
font-family: var(--navigation-link-font);
46+
font-size: var(--navigation-font-size);
5647
color: white;
57-
font-weight: normal;
58-
font-family: monospace;
59-
}
60-
61-
62-
/*Format icon in nav bar*/
63-
a i {
64-
color: orange;
65-
font-size: 1em;
6648
}
6749

68-
/*Format hamburger menu*/
50+
/*Format box menu icon*/
6951
.navbar-toggler {
70-
margin-right: 25px;
52+
border: 2px solid white;
7153
}
7254

7355
.navbar-toggler-icon {
74-
font-size: 3em;
7556
}
76-
7757
/********************End of Header Formatting********************/
7858

79-
/********************Section Formatting********************/
80-
/*Format weather container*/
81-
.weatherContainer {
82-
background-color: #0d6ffc;
83-
display: flex;
84-
flex-direction: column;
85-
align-items: center;
86-
justify-content: center;
87-
padding: 50px;
88-
margin: 100px 20px 20px 20px;
89-
border-radius: 50px;
90-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
91-
}
92-
93-
/*Format weather container h2 tag*/
94-
.weatherContainer h2 {
95-
font-family: var(--section-header-font-family);
96-
font-weight: bolder;
97-
font-size: var(--section-header-font-size);
98-
}
99-
100-
/*Format search container*/
101-
.searchBar {
102-
display: flex;
103-
align-items: center;
104-
justify-content: center;
105-
width: 100%;
106-
font-size: 3em;
107-
}
108-
109-
/*Format search input field*/
110-
.searchBar input {
111-
border: none;
112-
outline: none;
113-
padding: 15px;
114-
border-radius: 50px;
115-
margin-top: 25px;
116-
margin-right: 25px;
117-
padding: 25px;
118-
}
119-
120-
/*Format search button*/
121-
.searchBar button {
122-
background: white;
123-
border: none;
124-
border-radius: 50%;
125-
outline: none;
126-
cursor: pointer;
127-
margin-top: 25px;
128-
margin-right: 25px;
129-
padding: 25px;
59+
/********************Footer Formatting********************/
60+
Footer {
13061
text-align: center;
131-
font-size: 65px;
132-
width: 150px;
62+
background-color: #0d6efd;
63+
padding: 5%;
64+
color: white;
65+
font-family: var(--footer-font);
66+
font-size: 0.8em;
13367
}
13468

135-
/*Format weather result container*/
136-
.weatherResult {
137-
display: flex;
138-
flex-direction: column;
139-
align-items: center;
140-
justify-content: center;
141-
padding: 50px;
142-
margin: 50px 20px 20px 20px;
69+
/*Format footer p tag*/
70+
footer p {
71+
margin-top: 25px;
14372
}
14473

145-
/*Format weather icon*/
146-
.weatherIcon {
147-
width: 100%;
148-
}
149-
/*Format about section*/
150-
.aboutContainer {
151-
display: flex;
152-
flex-direction: column;
153-
align-items: center;
154-
justify-content: center;
155-
padding: 50px;
156-
margin: 80px 20px 20px 20px;
74+
/*Format quick links container*/
75+
.quickLinks {
76+
text-align: left;
15777
}
15878

159-
/*Format about section h2*/
160-
.aboutContainer h2 {
161-
font-family: var(--section-header-font-family);
162-
font-size: var(--section-header-font-size);
79+
/*Format quick links heading*/
80+
.quickLinks h3 {
81+
color: orange;
82+
font-family: var(--footer-sub-font);
16383
font-weight: bolder;
16484
}
16585

166-
/*Format text container*/
167-
.textContainer {
168-
display: flex;
169-
justify-content: center;
170-
align-items: center;
171-
flex-direction: column;
172-
padding: 50px;
173-
}
174-
175-
/*Format text container img*/
176-
.textContainer img {
177-
max-width: 50%;
178-
}
179-
180-
/*Format text container text*/
181-
.textContainer p {
182-
font-size: var(--about-text-font-size);
183-
font-family: var(--about-text-font-family);
184-
line-height: 2;
185-
letter-spacing: 2px;
186-
background-color: #2b4570;
187-
border-radius: 15px;
86+
/*Format quick link a tags*/
87+
.quickLinks p a {
18888
color: white;
189-
padding: 30px;
190-
margin-top: 25px;
89+
font-family: var(--navigation-link-font);
90+
text-decoration: none;
91+
letter-spacing: 1.2px;
19192
}
19293

193-
/*Capitalize first letter of p tag*/
194-
.textContainer p::first-letter {
195-
text-transform: uppercase;
196-
font-weight: bolder;
197-
font-size: 2em;
198-
margin-right: 15px;
94+
/*Format social media container*/
95+
.socialMedia {
96+
text-align: left;
19997
}
200-
/********************End of Section Formatting********************/
20198

202-
/********************Footer Formatting********************/
203-
footer {
204-
text-align: center;
205-
font-family: monospace;
206-
font-size: 2em;
207-
background-color: #0d6ffc;
208-
color: white;
209-
padding: 30px;
99+
/*Format social media header*/
100+
.socialMedia h3 {
101+
color: orange;
102+
font-family: var(--footer-sub-font);
103+
font-weight: bold;
210104
}
211-
/********************End of sFooter Formatting********************/

0 commit comments

Comments
 (0)