-
Notifications
You must be signed in to change notification settings - Fork 0
/
aside.css
96 lines (84 loc) · 2.05 KB
/
aside.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
h2 {
font-size: 30px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
text-shadow: 5px 5px 5px rgb(131, 173, 180);
display: flex;
align-self: center;
background-color: #9bc3df;
border-radius: 20px;
padding: 5%;
box-shadow: 5px 5px 5px rgb(88, 91, 95);
}
.accordion {
display: flex;
flex-direction: column;
gap: 1rem;
width: 13%;
border-radius: 20px;
float: right;
margin-top: 15%;
margin-bottom: 15%;
position: absolute;
top: 30%;
bottom: 30%;
right: 7%;
margin-right: -125px;
height: 50%;
transform: translateY(-50%);
position: fixed;
}
.accordion-item {
border-radius: 20px;
text-align: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 30px;
}
.accordion-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background-color: #9bc3df;
cursor: pointer;
border-radius: 20px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
box-shadow: 5px 5px 5px rgb(88, 91, 95);
/* justify-content: center; */
}
.accordion-header:hover {
background-color: white;
color: lightblue;
font-weight:bold ;
}
/* .accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
padding: 1rem;
} */
.accordion-content {
max-height: 0;
overflow: hidden;
box-shadow: 5px 5px 5px rgb(88, 91, 95);
border-radius: 20px;
background-color:#9bc3dfe1;
border: none;
font-size: 30px;
}
.accordion-content p {
justify-content: center;
padding-left: 5%;
padding-right: 5%;
}
.accordion-item.active .accordion-content {
max-height: 1000px; /* la hauteur maximale doit être suffisamment grande pour que tous les contenus puissent être affichés */
}
.accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease;
}
.accordion-header:hover + .accordion-content {
max-height: 1000px;
transition: max-height 0.5s ease;
}