You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
2.0 KiB
150 lines
2.0 KiB
@media (max-width: 778px) {
|
|
#modal{
|
|
width: 50%;
|
|
|
|
}
|
|
}
|
|
|
|
@media (max-width: 386px) {
|
|
#modal{
|
|
width: 60%;
|
|
|
|
}
|
|
}
|
|
|
|
body{
|
|
margin: 0;
|
|
background-color: #fcfafc;
|
|
color: #330033;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
h1, h4{
|
|
background-color: #663366;
|
|
color: #fcfafc;
|
|
text-align: center;
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
ul{
|
|
list-style: none;
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
|
|
li{
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
|
|
a{
|
|
color: #660066;
|
|
|
|
&:hover{
|
|
color: #aaeed7;
|
|
text-decoration: underline;
|
|
}
|
|
// le hover ne marche pas en css mais pas en scss //
|
|
}
|
|
|
|
p{
|
|
text-align: center;
|
|
width: 70%;
|
|
margin: auto;
|
|
}
|
|
|
|
// mise en forme de la modal //
|
|
|
|
form>div{
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#modal{
|
|
width: 50%;
|
|
height: 30%;
|
|
border-radius: 20px;
|
|
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
|
|
display: flex;
|
|
justify-content: center;
|
|
position: absolute;
|
|
top:50%;
|
|
left:50%;
|
|
transform: translate(-50%,-50%);
|
|
|
|
}
|
|
|
|
input{
|
|
background-color: white;
|
|
}
|
|
.sport_abo{
|
|
display: none;
|
|
}
|
|
|
|
.culture_abo{
|
|
display: none;
|
|
}
|
|
|
|
#sport:checked ~ .sport_abo{
|
|
display: block;
|
|
}
|
|
|
|
#culture:checked ~ .culture_abo{
|
|
display: block;
|
|
}
|
|
|
|
// fermeture et ouverture de la modal//
|
|
|
|
#close:checked ~#modal{
|
|
display: none;
|
|
}
|
|
|
|
#close:checked + #open{
|
|
display: none;
|
|
}
|
|
|
|
#open:checked + #modal{
|
|
width: 50%;
|
|
height: 30%;
|
|
border-radius: 20px;
|
|
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
|
|
display: flex;
|
|
justify-content: center;
|
|
position: absolute;
|
|
top:50%;
|
|
left:50%;
|
|
transform: translate(-50%,-50%);
|
|
}
|
|
|
|
#abonnement{
|
|
display: flex;
|
|
justify-content: center;
|
|
position: absolute;
|
|
left:50%;
|
|
transform: translate(-50%);
|
|
padding: 10px;
|
|
background-color: #663366;
|
|
color: #fcfafc;
|
|
margin-top: 20px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
span{
|
|
margin-left: 30px;
|
|
}
|
|
|
|
footer{
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
footer>a{
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
}
|
|
|