-
Notifications
You must be signed in to change notification settings - Fork 3
/
style.css
142 lines (142 loc) · 2.39 KB
/
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
135
136
137
138
139
140
141
142
* {
margin: 0;
padding: 0;
font-family: Sans;
box-sizing: border-box;
}
html {
min-height: 100vh;
}
body {
width: 100%;
height: 100vh;
}
main {
min-height: calc(100% - 210px);
padding-left: 2%;
padding-right: 2%;
}
header,footer {
background-color: #ececec;
height: 80px;
width: 100%;
position: relative;
z-index:102;
left: 0px;
}
header {
margin-bottom: 25px;
border-bottom: 6px solid #33AAFF;
top: 0px;
display: flex;
flex-flow: row;
justify-content: space-between;
}
footer {
padding: 10px;
margin-top: 25px;
border-top: 6px solid #33AAFF;
bottom: 0px;
text-align: right;
}
header h1 {
padding-top: 10px;
padding-left: 10px;
}
header nav {
padding-right: 10px;
display:flex;
justify-content: flex-end;
align-self: flex-end;
flex: 1 0 auto;
}
header ul * {
display: none;
}
header ul:focus, header ul:focus-within {
outline: none;
border: none;
display: flex;
width: 100%;
}
header ul:focus *, header ul:focus-within *{
display: inline;
}
header ul::after {
content: "≡";
width: 1em;
font-size: 2.5em;
}
header ul:focus::after, header ul:focus-within::after {
content: "";
width: 0;
}
header nav:focus-within {
width: 100vw;
background-color: #ececec;
border-bottom: 6px solid #33AAFF;
}
header nav:focus-within::after {
content: "×";
width: 1em;
font-size: 2.5em;
position: relative;
text-align: center;
top: -20px;
}
header:focus-within {
flex-flow: column;
}
header ul {
display: inline;
align-items: center;
justify-content: flex-end;
list-style-type: none;
align-self: flex-end;
flex-flow: column;
}
header ul li {
word-break: keep-all;
text-transform: uppercase;
padding-right: 2%;
padding-left: 2%;
padding-top: 10px;
padding-bottom: 10px;
color: #4a4a4a;
font-weight: 400;
line-height: 24px;
width: 80%;
border-bottom: 1px solid #bfbfbf;
}
header nav {
font-size: 15px;
}
header ul li:last-child {
border: none;
}
@media only screen and (min-width: 900px) {
header:focus-within {
flex-flow: row;
}
header ul {
flex-flow: row;
}
header nav:focus-within {
width: auto;
background-color: none;
border-bottom: 0;
}
header ul li {
width: auto;
border-right: 1px solid #bfbfbf;
border-bottom: 0;
padding-top: 2px;
padding-bottom: 2px;
}
header nav:focus-within::after {
position: static;
}
}
a, a:visited {
color: black;
}