-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheducation.css
182 lines (158 loc) · 4.34 KB
/
education.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
*{
/* Resets margin for all elements and includes padding and borders in element dimensions */
margin: 0;
box-sizing: border-box;
}
div{
/* Limits div width to 80% and centers it horizontally */
max-width: 80%;
margin: auto;
}
header{
/* Styles the header with font size, alignment, and padding */
font-size: calc(2px + 0.75vw);
text-align: left;
padding-left: 2%;
}
footer{
/* Styles the footer with padding, flexbox layout, background, and text colors */
padding: 1vh 1vw;
display: flex;
flex-direction: row;
background: #850F8D;
color: #F8F9D7;
font-family: "Lucida Console", "Courier New", monospace;
}
header {
/* Styles the header with background color, padding, and text color */
background: #850F8D;
color: #F8F9D7;
font-family: "Lucida Console", "Courier New", monospace;
padding-bottom: 5%;
padding-top: 5%;
}
#column{
/* Sets #column as a flex container in row layout with full width */
display: flex;
flex-direction: row;
max-width: 100%;
}
nav{
/* Styles the navigation section with background color, width, and text alignment */
background: #C738BD;
color: #F8F9D7;
width: 25%;
text-align: center;
}
nav li{
/* Styles navigation list items with font and spacing */
margin-top: 50%;
font-family: "Lucida Console", "Courier New", monospace;
display: block;
padding-left: 0;
}
nav a{
/* Styles anchor links with border, background color, and text alignment */
display: inline;
border: #EADBC8 solid 10px;
text-decoration: none;
background-color: #EADBC8;
margin: 2%;
padding-left: 0;
text-align: center;
}
nav ul{
/* Removes padding, list style, and adjusts layout for unordered list in navigation */
padding-left: 0;
list-style: none;
justify-content: space-evenly;
}
main{
/* Styles the main content area with height, background color, font size, and padding */
height: 100vh;
background: #E49BFF;
color: #F8F9D7;
padding-bottom: 10%;
padding-top: 10%;
font-family: "Lucida Console", "Courier New", monospace;
width: 85%;
font-size: calc(2px + 1.35vw);
}
main h3{
/* Adds padding to the bottom of h3 headings */
padding-bottom: 5%;
}
main h3{
/* Centers h3 headings and adds top and bottom padding */
text-align: center;
padding-bottom: 1%;
padding-top: 1%;
}
h4{
/* Adds padding to the left and top of h4 headings */
padding-left: 15%;
padding-top: 7%;
}
main ul{
/* Adds padding to unordered list in main content */
padding-left: 35%;
}
@media screen and (max-width: 750px) {
/* Responsive styles for screens with a width of 750px or less */
#column{
/* Changes #column layout to block and sets its width to 100% for small screens */
display: block;
max-width: 100%;
}
header{
/* Adjusts font size for the header on small screens */
font-size: calc(2px + 2.25vw);
}
nav{
/* Adjusts navigation padding and width for small screens */
padding-top: 0;
padding-bottom: 5%;
width: 100%;
}
nav li{
/* Styles navigation list items with inline display, font size, and removes list bullets */
font-family: "Lucida Console", "Courier New", monospace;
display: inline;
font-size: calc(2px + 2vw);
list-style-type: none;
margin: 0;
}
nav ul{
/* Sets width, padding, and margin for the navigation unordered list */
width: 100%;
padding-top: 5%;
padding-right: 5%;
margin-left: 2%;
justify-content: space-evenly;
}
nav a{
/* Styles navigation links with a border, margin, and removes text decoration */
border: #EADBC8 solid 2px;
text-decoration: none;
margin: 0;
}
h4{
/* Adds left padding to h4 headings for small screens */
padding-left: 10%;
}
main ul{
/* Adjusts padding for unordered lists in the main content */
padding-left: 25%;
}
main{
/* Sets the main content width, height, and font size for small screens */
width: 100%;
margin: auto;
height: 100vh;
font-size: calc(2px + 3vw);
}
header{
/* Centers the header content for small screens */
text-align: center;
}
}