-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsytle.css
More file actions
125 lines (112 loc) · 1.91 KB
/
Copy pathsytle.css
File metadata and controls
125 lines (112 loc) · 1.91 KB
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
* {
box-sizing: border-box;
}
body {
margin: 0;
height: 100%;
background-color: rgb(194, 202, 200);
}
h2 {
text-align: center;
}
.logo{
text-shadow: 2px 2px 4px #000000;
color:white;
}
.nav {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
background-image: linear-gradient(to right, #9E768F , #9FA4C4);
color: #3b0961;
height: 65px;
padding: 1em;
font-weight:bolder;
font-size:25px;
}
.menu li:hover{
color:white;
cursor:pointer;
}
.menu {
display: flex;
flex-direction: row;
list-style-type: none;
margin: 0;
padding: 0;
}
.menu > li {
margin: 0 1rem;
overflow: hidden;
}
/*Container for menu button */
.menu-button-container {
display: none;
height: 100%;
width: 30px;
cursor: pointer;
flex-direction: column;
justify-content: center;
align-items: center;
}
#menu-toggle {
display: none;
}
/* Creating the menu button */
.menu-button,
.menu-button::before,
.menu-button::after {
display: block;
background-color: #fff;
position: absolute;
height: 6px;
width: 32px;
border-radius: 3px;
}
.menu-button::before {
content: '';
margin-top: -8px;
}
.menu-button::after {
content: '';
margin-top: 8px;
}
@media (max-width: 700px) {
.menu-button-container {
display: flex;
}
.menu {
position: absolute;
top: 0;
margin-top: 50px;
left: 0;
flex-direction: column;
width: 100%;
justify-content: center;
align-items: center;
}
#menu-toggle ~ .menu li {
height: 0;
margin: 0;
padding: 0;
border: 0;
}
#menu-toggle:checked ~ .menu li {
border: 1px solid #9f9a9a;
height: 2.5em;
padding: 0.5em;
}
.menu > li {
display: flex;
justify-content: center;
margin: 0;
padding: 0.5em 0;
width: 100%;
color: black;
background-color: #E8E8E8;
}
.menu > li:not(:last-child) {
border-bottom: 1px solid #444;
}
}