-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfile0.css
More file actions
139 lines (126 loc) · 2.37 KB
/
file0.css
File metadata and controls
139 lines (126 loc) · 2.37 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
/* --- Barre de navigation --- */
nav {
background-color: #eb984e;
}
nav img{
border-radius: 100px;
margin-top: 5px;
margin-left: 40px;
}
.menu {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center;
}
.menu li {
position: relative;
margin: 0 15px;
margin-top: -75px;
}
.menu a {
text-decoration: none;
color: white;
font-size: 18px;
padding: 10px;
display: block;
transition: 0.3s;
}
.menu a:hover {
background-color: #b4743d;
border-radius: 25px;
}
/* --- Sous-menu (mode bureau) --- */
.submenu {
position: absolute;
top: 100%;
left: 0;
background-color: #bbb9b9;
list-style: none;
padding: 0;
margin: 0;
display: none;
width: 150px;
}
.submenu li {
margin: 0;
}
.submenu a {
padding: 10px;
font-size: 16px;
}
/* Affichage du sous-menu au survol en mode bureau */
.menu li:hover .submenu {
display: block;
}
/* --- Menu mobile --- */
.menu-toggle {
display: none;
background-color: #eb984e;
color: white;
border: none;
font-size: 20px;
padding: 10px;
cursor: pointer;
width: 100%;
text-align: left;
}
@media (max-width:1290px){
.menu a{
font-size: 14px;
padding: 0px;
margin-top: 30px;
}
nav img{
height: 70px;
width: 70px;
margin-left: 10px;
}
}
@media (max-width: 875px) {
/* On cache le menu par défaut */
.menu {
display: none;
flex-direction: column;
background-color: #eb984e;
width: 100%;
}
.menu li {
margin: 0;
border-top: 1px solid #444;
}
/* Pour le sous-menu, on retire le positionnement absolu
et on le cache par défaut */
.submenu {
position: relative;
width: 100%;
display: none;
border-top: 1px solid #555;
}
.submenu li {
margin: 0;
}
/* Classe qui affiche le sous-menu en mode mobile */
.submenu.show {
display: block;
}
.menu-toggle {
display: block;
}
nav img{
float: right;
margin-right: 20px;
height: 75px;
width: 75px;
margin-top: -40px;
}
nav{
height: 45px;
}
}