Skip to content

Commit 9298e7d

Browse files
committed
add text container, img, and menu icon formatting
1 parent 4fbb16c commit 9298e7d

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

weatherApp/css/style.css

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
/*Import Nunito San*/
66
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
7+
8+
/*Import Barlow*/
9+
@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');
710
/********************End of Font Formatting********************/
811

912
/********************General Formatting********************/
@@ -26,6 +29,8 @@ body {
2629
:root {
2730
--section-header-font-family: 'Nunito Sans';
2831
--section-header-font-size: 5em;
32+
--about-text-font-family: 'Barlow';
33+
--about-text-font-size: 3.2em;
2934
}
3035
/********************End of Root Formatting********************/
3136

@@ -48,7 +53,13 @@ a i {
4853
}
4954

5055
/*Format hamburger menu*/
56+
.navbar-toggler {
57+
margin-right: 25px;
58+
}
5159

60+
.navbar-toggler-icon {
61+
font-size: 3em;
62+
}
5263

5364
/********************End of Header Formatting********************/
5465

@@ -89,6 +100,41 @@ a i {
89100
font-size: var(--section-header-font-size);
90101
font-weight: bolder;
91102
}
103+
104+
/*Format text container*/
105+
.textContainer {
106+
display: flex;
107+
justify-content: center;
108+
align-items: center;
109+
flex-direction: column;
110+
padding: 50px;
111+
}
112+
113+
/*Format text container img*/
114+
.textContainer img {
115+
max-width: 50%;
116+
}
117+
118+
/*Format text container text*/
119+
.textContainer p {
120+
font-size: var(--about-text-font-size);
121+
font-family: var(--about-text-font-family);
122+
line-height: 2;
123+
letter-spacing: 2px;
124+
background-color: #2b4570;
125+
border-radius: 15px;
126+
color: white;
127+
padding: 30px;
128+
margin-top: 25px;
129+
}
130+
131+
/*Capitalize first letter of p tag*/
132+
.textContainer p::first-letter {
133+
text-transform: uppercase;
134+
font-weight: bolder;
135+
font-size: 2em;
136+
margin-right: 15px;
137+
}
92138
/********************End of Section Formatting********************/
93139

94140
/********************Footer Formatting********************/
@@ -98,6 +144,6 @@ footer {
98144
font-size: 2em;
99145
background-color: #0d6ffc;
100146
color: white;
101-
padding: 20px;
147+
padding: 30px;
102148
}
103149
/********************End of sFooter Formatting********************/

0 commit comments

Comments
 (0)