-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.css
144 lines (140 loc) · 2.62 KB
/
main.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
text-transform: capitalize;
text-decoration: none;
}
body{
min-height: 100vh;
}
.navbar{
position: fixed;
top: 0;
left: 0;
right: 0;
position: fixed;
background-color: #2A7593;
opacity: 1;
padding: 10px 20px 10px 10px;
display: flex;
align-items: center;
justify-content: space-between;
z-index: 1000;
transition: top 0.3s ease-in-out, opacity 0.3s ease-in-out;
opacity: 1;
/* height: 80px; */
}
.navbar.hide {
top: -100px;
opacity: 0;
}
.navbar.top {
background: rgb(202, 225, 224);
background: linear-gradient(94deg, rgba(202, 225, 224, 1) 0%, rgba(5, 58, 117, 1) 34%);
color: black;
}
.navbar nav ul{
list-style-type: none;
}
.navbar nav ul li{
position: relative;
float: left;
padding: 15px;
}
.navbar nav ul li a{
padding: 5px;
display: block;
color: white;
}
.navbar nav ul li a:hover{
border-bottom: 1px solid black;
}
.navbar nav ul li ul{
position: absolute;
left: 0;
width: 200px;
background: #fff;
display: none;
}
.navbar nav ul li .others{
position: absolute;
left: -100px;
width: 200px;
background: #fff;
display: none;
}
.navbar nav ul li ul li{
width: 100%;
border-top:1px solid rgba(0, 0, 0, 0.1) ;
}
.navbar nav ul li ul li a:hover{
border-bottom: none;
}
.navbar nav ul li ul li a{
color: #333;
}
.navbar nav ul li ul li ul{
left:200px ;
top: 0;
}
.navbar nav ul li ul li .Comitee{
left:200px ;
top: 0;
width: 250px;
}
.navbar nav ul li ul li .departement{
left:-400px ;
top: 0;
width: 400px;
}
.navbar nav ul li:focus-within >ul,
.navbar nav ul li:hover >ul{
display: initial;
}
#menu-bar{
display: none;
}
.navbar label {
font-size: 30px;
cursor: pointer;
color: #333;
display: none;
}
@media (max-width: 1100px){
.navbar{
padding: 20px;
}
.navbar label {
display: initial;
}
.navbar nav {
position: fixed;
width: 100%;
height: 100vh;
background: #fff;
top: 80px;
left: -100%;
text-align: center;
transition: all 0.5s;
}
.navbar nav ul li{
width: 100%;
}
.navbar nav ul li ul{
position: relative;
width: 100%;
}
.navbar nav ul li ul li{
background: #eee;
}
.navbar nav ul li ul li ul{
left: 0;
width: 100%;
}
#menu-bar:checked ~ nav{
display: initial;
left: 0;
}
}