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
body {background-color: #f4fff0;}
/* adaptation de https://www.w3schools.com/css/css_dropdowns.asp */
/** TODO put it in common.css **/
/* Style The Dropdown Button */
.dropbtn {
background-color: #0275D8;
color: white;
border: none;
cursor: pointer;
width: 100%;
text-align: center;
font-weight: 500;
height: 35px;
margin-bottom: 0;
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
list-style-type: none;
width: 100%;
padding-left: 0 !important;
}
/* Links inside the dropdown */
.dropdown-content li span{
color: black;
width: 100%;
padding: 12px 5px;
text-decoration: none;
display: block;
cursor: pointer;
}
/* Change color of dropdown links on hover */
.dropdown-content li span:hover {background-color: #f1f1f1}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
display: block;
}
/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
background-color: #3e8e41;
}
.main.nav.dropdown {max-width: 250px}