Files
Camilou.fr/HTML/Archives/Privet/test.css
T
Camilla Schoeser ec81bcd634 ajout tout
2026-05-29 21:10:04 +02:00

142 lines
2.5 KiB
CSS

/* Styles pour l'en-tête */
p { display: block;
margin-top: 0px;
margin-bottom:0px;
margin-right: 50px;
margin-left: 5%;
padding-top:0px;
padding-bottom:0px;
color:black;
}
h1 {
margin: 0;
}
h2 {
margin-top:0;
}
h3 { margin-bottom: 5px;margin-top:0 ;}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 20px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
/* Styles pour la section principale */
main {
display: flex;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
section {
flex: 2;
padding: 20px;
}
article {
background-color: #f4f4f4;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-bottom:20px;
}
article:first-child { margin-right:10px; } /* pour que chaque article ait une marge sur le coté sauf les articles des extrémités */
article:last-child { margin-left:10px; }
article h2 {
color: #333;
}
/* Styles pour la zone latérale */
aside {
flex: 1;
padding: 20px;
background-color: #eee;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* Styles pour le pied de page */
footer {
background-color: #333;
color: #fff;
padding: 20px;
margin-left:-20px;
margin-right:-20px;
text-align: center;
}
@media screen and (max-width: 600px) {
.column-container {
display: block;
margin:0px;
}
}
@media screen and (min-width: 600px) {
.column-container {
display: flex;
margin:0px;
}
}
.trefoil {
position: relative;
width: 200px;
height: 100px;
}
.leaf {
position: absolute;
margin-left:20px;
width: 75px;
height: 75px;
background-color: green;
border-radius: 100% 100% 100% 100% / 100% 100% 100% 100%;
border-radius: 100% 100% 100% 100% ;
}
.leaf p {
margin-top:15px;
}
.leaf.top-left {
top: 33px;
left: -20px;
transform: rotate(0deg);
background-color: rgba(93, 0, 255, 0.50);
z-index: 2;
}
.leaf.top-right {
top: 33px;
left: 20px;
transform: rotate(0deg);
background-color: rgba(255, 0, 208, 0.5);
z-index: 2;
}
.leaf.top {
top: 0px;
left: 0px;
transform: rotate(0deg);
background-color: rgba(0, 255, 38, 0.5);
z-index: 2;
}