-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
189 lines (165 loc) · 4.72 KB
/
index.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
* {
/* Resets margin for all elements and ensures box-sizing includes padding and borders in element dimensions */
margin: 0;
box-sizing: border-box;
}
div{
/* Sets a maximum width of 80% for all div elements and centers them horizontally */
max-width: 80%;
margin: auto;
}
header {
/* Styles the header with background color, text color, font family, padding, and alignment */
background: #F7DCB9;
color: black;
font-family: "Lucida Console", "Courier New", monospace;
padding-bottom: 5%;
padding-top: 5%;
padding-left: 2%;
text-align: left;
margin:0;
}
#column{
/* Displays #column as a flex container with a row layout and sets its maximum width */
display: flex;
flex-direction: row;
max-width: 100%;
}
nav{
/* Styles the navigation section with text alignment, font family, background, padding, and width */
text-align: center;
font-family: "Lucida Console", "Courier New", monospace;
background: #EADBC8;
color: black;
padding: 3%;
width: 25%;
}
nav li {
/* Sets list items in the navigation as block elements and applies margin to space them out */
display: block;
justify-content: space-evenly;
margin-top: 50%;
}
nav ul{
/* Styles the unordered list by removing left padding and adding top margin and spacing between elements */
padding-left: 0;
margin-top: 50%;
justify-content: space-evenly;
}
nav a{
/* Styles anchor links in the navigation with borders, background color, margin, and padding */
display: inline;
border: beige solid 2px;
text-decoration: none;
text-align: center;
background-color: beige;
margin: 2%;
padding:2%;
}
main{
/* Styles the main content area with padding, background color, text alignment, and width */
padding-top: 5%;
height: 100vh;
margin: 0 auto;
background: #DAC0A3;
font-family: "Lucida Console", "Courier New", monospace;
color: black;
text-align: left;
width: 75%;
}
img{
/* Sets maximum width and height for images, floats them to the left, and adds padding */
max-width: 40%;
height: 30%;
float: left;
padding: 2%;
}
table {
/* Styles the table with padding, margins to center it, and text alignment */
padding-top: 15%;
margin-left: auto;
margin-right: auto;
text-align: center;
}
footer{
/* Styles the footer with background color, text color, padding, and flexbox layout */
background: brown;
color: bisque;
padding: 1vh 1vw;
display: flex;
flex-direction: row;
justify-content: space-evenly;
text-align: center;
}
footer p{
/* Placeholder for paragraph styling inside the footer */
}
@media screen and (max-width: 750px) {
/* Applies responsive styling for screens with a width of 750px or less */
#column{
/* Adjusts #column layout for small screens, making it inline and full width */
display: inline;
width: 100%;
}
nav{
/* Adjusts navigation styling for small screens with more compact padding and width */
padding-top: 5%;
padding-bottom: 5%;
width: 100%;
margin: auto;
}
nav li{
/* Adjusts navigation list item styling for small screens */
font-family: "Lucida Console", "Courier New", monospace;
display: inline;
color: black;
}
nav a{
/* Adjusts anchor link styling for small screens with smaller borders and font size */
display: inline-flex;
border: beige solid 1px;
text-decoration: none;
background-color: beige;
font-size: calc( 2px + 1.5vw );
}
nav ul{
/* Adjusts unordered list layout for small screens */
margin-top: auto;
justify-content: center;
}
header{
/* Centers the text in the header for small screens */
text-align: center;
}
main{
/* Adjusts the main content layout for small screens with full width and centered text */
padding-top: 5%;
height: 100vh;
width: 100%;
margin: auto;
background: #DAC0A3;
font-family: "Lucida Console", "Courier New", monospace;
color: black;
text-align: center;
}
p{
/* Adjusts paragraph font size and text alignment for small screens */
font-size: calc( 2px + 1.7vw );
text-align: center;
}
img{
/* Adjusts image size and alignment for small screens */
max-width: 80%;
margin: auto;
height: 30%;
float: none;
}
h3{
/* Centers the h3 headings for small screens */
text-align: center;
}
table{
/* Adjusts table font size for small screens */
font-size: calc( 2px + 2.5vw );
}
}