-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcredits.css
142 lines (125 loc) · 3.55 KB
/
credits.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
*{
/* Resets margin for all elements and includes padding and borders in element dimensions */
margin: 0;
box-sizing: border-box;
}
div{
/* Centers div elements horizontally and sets their width to 90% */
margin: auto;
width: 90%;
}
main h2{
/* Adds top padding to h2 elements inside the main content */
padding-top: 10%;
}
header, footer{
/* Styles the header and footer with background color, text color, font family, and padding */
background: #003285;
color: #FF7F3E;
font-family: "Lucida Console", "Courier New", monospace;
padding: 4% 2%;
max-width: 90%;
margin: auto;
}
header{
/* Aligns text to the left in the header */
text-align: left;
}
footer{
/* Styles the footer with background color, padding, and justification of content */
background: brown;
color: bisque;
padding: 1vh 1vw;
justify-content: space-evenly;
}
#column{
/* Sets #column as a flex container in row layout with a width of 90% */
display: flex;
flex-direction: row;
width: 90%;
}
nav{
/* Styles the navigation section with list style, background color, text color, and width */
list-style: none;
background: #2A629A;
color: #FFDA78;
text-align: center;
width: 25%;
}
nav li{
/* Styles navigation list items with margin, font, and block display */
margin-top: 60%;
font-family: "Lucida Console", "Courier New", monospace;
margin-right: 10%;
display: block;
padding-left: 0;
}
nav a{
/* Styles anchor links with a border, background color, and center alignment */
display: inline;
border: #EADBC8 solid 10px;
text-decoration: none;
text-align: center;
background-color: #EADBC8;
margin: 2%;
}
main{
/* Styles the main content area with height, background color, text color, and padding */
height: 100vh;
background: #FFDA78;
color: #003285;
text-align: center;
padding-top: 20%;
font-family: "Lucida Console", "Courier New", monospace;
padding-bottom: 60%;
font-size: calc(2px + 2vw);
font-weight: bold;
width: 75%;
}
@media screen and (max-width: 750px) {
/* Responsive styling for screens with a width of 750px or less */
#column{
/* Changes #column layout to inline and sets its width to 100% for small screens */
display: inline;
width: 100%;
}
nav{
/* Styles the navigation with background color, text color, padding, and width for small screens */
background: #2A629A;
color: #FFDA78;
text-align: center;
padding-top: 5%;
padding-bottom: 5%;
width: 90%;
margin: auto;
}
nav li{
/* Styles navigation list items with font size and inline display for small screens */
font-family: "Lucida Console", "Courier New", monospace;
display: inline;
font-size: calc(2px + 1.8vw);
margin-right: 0;
}
nav a{
/* Styles anchor links with border, background color, and inline display for small screens */
display: inline;
border: #EADBC8 solid 1px;
text-decoration: none;
text-align: center;
background-color: #EADBC8;
}
nav ul{
/* Removes right padding from the unordered list in navigation */
padding-right: 0;
}
main{
/* Adjusts main content width and font size for small screens */
width: 90%;
margin: auto;
font-size: calc(2px + 3vw);
}
header{
/* Centers the header content for small screens */
text-align: center;
}
}