-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-style.css
134 lines (105 loc) · 1.87 KB
/
template-style.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
/* general styling for page
========================*/
body{
display:grid;
grid-template-rows: auto 1fr auto;
min-height: 100vh; margin: 0;
font-family: sans-serif;
}
h1{
font-size: 3rem;
font-weight: 1000;
color: #154663;
}
.container{
width: 90%;
max-width: 900px;
margin: 0 auto;
}
/* Any anchor inside a div will be spread across entire div so it is clickable */
div a{
width: 100%;
height: 100%;
display: block;
cursor: pointer;
}
/* center any text with the centered class tag */
.centered{
text-align: center;
}
/* ========================*/
/* style for header
========================*/
header{
background-color: #2274A5;
}
.header-container{
display: flex;
justify-content: space-between;
}
nav{
margin: auto 0;
}
nav ul{
list-style-type: none;
margin: 0; padding: 0;
margin: auto 0;
}
nav li{
float: left;
display: block;
font-size: 1.3rem;
color:lightgray;
border-radius: 10px;
padding: 10px 10px;
margin: 10px 10px;
}
nav a{
all: unset;
}
nav li:hover{
background-color: #154663;
cursor: pointer;
}
/* add styling for current page */
.current-page{
border-radius: unset;
color: #154663;
}
.current-page:hover{
background-color: unset;
}
@media (max-width: 650px){
.header-container{
flex-direction: column;
}
#title, nav{
margin: 0 auto;
}
}
@media (max-width: 425px){
nav ul{
display: flex;
flex-direction: column;
}
nav ul li{
flex-basis: 100%;
margin: 0;
}
}
/* style for footer
========================*/
#footer{
background-color: #2274A5;
margin-top: 5em;
min-height: 5em;
display: grid;
}
.footer-container{
justify-self: center;
align-self: center;
}
#footer-text{
text-align: center;
}
/* ========================*/