generated from Templates_CodeFirst/templateHtmlCss
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.
420 lines
7.7 KiB
420 lines
7.7 KiB
/********************************************************************************/
|
|
/*General css*/
|
|
|
|
a {
|
|
color: #0e6ab9;
|
|
text-decoration: none;
|
|
}
|
|
|
|
|
|
section {
|
|
width: 80%;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
aside {
|
|
float: right;
|
|
width: 20%;
|
|
height: 400px;
|
|
border: 2px black solid;
|
|
|
|
}
|
|
|
|
|
|
table, td, th {
|
|
border: solid;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #323438;
|
|
margin: 0;
|
|
padding: 0;
|
|
color: #f1f1f1;
|
|
}
|
|
|
|
h1, h2:not(.exclude), h3:not(.exclude) {
|
|
color: #ffffff;
|
|
}
|
|
|
|
p {
|
|
font-size: 1.1em;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
|
|
figure {
|
|
text-align: center;
|
|
margin: 50px auto;
|
|
}
|
|
|
|
figure img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border: 3px solid #333;
|
|
}
|
|
|
|
figcaption {
|
|
font-size: 1.2em;
|
|
margin-top: 10px;
|
|
}
|
|
/********************************************************************************/
|
|
/*Navbar css*/
|
|
/* Style général de la navbar */
|
|
.navbar {
|
|
background-color: #0e6ab9;
|
|
padding: 15px;
|
|
display: flex;
|
|
justify-content: center;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.navbar-list {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.navbar-list li {
|
|
position: relative; /* Permet à l'élément dropdown de se positionner par rapport au parent */
|
|
}
|
|
|
|
.navbar-list a {
|
|
color: white;
|
|
text-decoration: none;
|
|
font-size: 1.2em;
|
|
padding: 10px 15px;
|
|
border-radius: 5px;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.navbar-list a:hover {
|
|
background-color: #fff;
|
|
color: #0e6ab9;
|
|
}
|
|
|
|
/* Style pour le menu déroulant */
|
|
/* Espacement entre les éléments du menu déroulant */
|
|
.dropdown-content li {
|
|
display: block;
|
|
margin: 10px 0; /* Ajoute de l'espace vertical entre les éléments */
|
|
}
|
|
|
|
/* Ajuster la largeur du menu déroulant à celle de "Gallerie" */
|
|
.dropdown-content {
|
|
display: none;
|
|
position: absolute;
|
|
background-color: #fff;
|
|
min-width: 100%; /* S'assure que la largeur correspond à celle du parent */
|
|
border-radius: 8px;
|
|
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
|
|
padding: 12px 0;
|
|
z-index: 10;
|
|
top: 130%; /* Pour le placer juste en dessous de l'élément parent */
|
|
left: 0; /* Aligne le menu déroulant avec le parent */
|
|
}
|
|
|
|
|
|
.dropdown-content a {
|
|
padding: 10px 20px;
|
|
color: #0e6ab9;
|
|
text-decoration: none;
|
|
font-size: 1em;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.dropdown-content a:hover {
|
|
background-color: #0e6ab9;
|
|
color: #fff;
|
|
}
|
|
|
|
/* Montre le menu dropdown au survol */
|
|
.dropdown:hover .dropdown-content {
|
|
display: block;
|
|
opacity: 0;
|
|
animation: dropdownFade 0.7s forwards ease-in-out;
|
|
}
|
|
|
|
/* Ajout d'une animation douce */
|
|
@keyframes dropdownFade {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
/********************************************************************************/
|
|
/* Css for the gallery (general) */
|
|
|
|
.title_gallery {
|
|
font-size: 2rem;
|
|
color: #f0f0f0;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
|
|
|
|
.title_gallery::after {
|
|
content: '';
|
|
display: block;
|
|
width: 80px;
|
|
height: 4px;
|
|
background-color: #f0f0f0;
|
|
margin: 10px auto 0;
|
|
}
|
|
|
|
|
|
.title_gallery {
|
|
background: rgba(0, 0, 0, 0.3);
|
|
padding: 10px 20px;
|
|
border-radius: 5px;
|
|
}
|
|
.gallery {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 15px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.gallery_video {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
flex-wrap: wrap;
|
|
position: relative;
|
|
}
|
|
|
|
.gallery a {
|
|
display: inline-block;
|
|
border: 2px solid #ccc;
|
|
padding: 5px;
|
|
transition: transform 0.3s ease, border-color 0.3s ease;
|
|
}
|
|
|
|
.gallery a:hover {
|
|
transform: scale(1.1);
|
|
border-color: #333;
|
|
}
|
|
|
|
.gallery img {
|
|
display: block;
|
|
width: 150px;
|
|
height: 100px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.video-item {
|
|
width: 400px;
|
|
height: 240px;
|
|
margin: 10px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.video-item video {
|
|
width: 100%;
|
|
height: 100%;
|
|
transition: transform 0.3s ease, z-index 0.3s ease;
|
|
cursor: pointer;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
|
|
.video-item:hover video {
|
|
width: 1200px;
|
|
height: 700px;
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 10;
|
|
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
|
|
.video-item:not(:hover) {
|
|
z-index: 0;
|
|
}
|
|
|
|
|
|
.gallery_video figcaption {
|
|
text-align: left;
|
|
color: white;
|
|
}
|
|
|
|
|
|
|
|
#video_categorie {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
|
|
/********************************************************************************/
|
|
/* Css for the timeline (general) */
|
|
|
|
#titre_cursus {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Set a background color */
|
|
body {
|
|
background-color: #474e5d;
|
|
font-family: Helvetica, sans-serif;
|
|
}
|
|
|
|
/* The actual timeline (the vertical ruler) */
|
|
.timeline {
|
|
position: relative;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* The actual timeline (the vertical ruler) */
|
|
.timeline::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 6px;
|
|
background-color: white;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 50%;
|
|
margin-left: -3px;
|
|
}
|
|
|
|
/* Container around content */
|
|
.container {
|
|
padding: 10px 40px;
|
|
position: relative;
|
|
background-color: inherit;
|
|
width: 50%;
|
|
}
|
|
|
|
/* The circles on the timeline */
|
|
.container::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 25px;
|
|
height: 25px;
|
|
right: -17px;
|
|
background-color: white;
|
|
border: 4px solid #FF9F55;
|
|
top: 15px;
|
|
border-radius: 50%;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Place the container to the left */
|
|
.left {
|
|
left: 0;
|
|
}
|
|
|
|
/* Place the container to the right */
|
|
.right {
|
|
left: 50%;
|
|
}
|
|
|
|
/* Add arrows to the left container (pointing right) */
|
|
.left::before {
|
|
content: " ";
|
|
height: 0;
|
|
position: absolute;
|
|
top: 22px;
|
|
width: 0;
|
|
z-index: 1;
|
|
right: 30px;
|
|
border: medium solid white;
|
|
border-width: 10px 0 10px 10px;
|
|
border-color: transparent transparent transparent white;
|
|
}
|
|
|
|
/* Add arrows to the right container (pointing left) */
|
|
.right::before {
|
|
content: " ";
|
|
height: 0;
|
|
position: absolute;
|
|
top: 22px;
|
|
width: 0;
|
|
z-index: 1;
|
|
left: 30px;
|
|
border: medium solid white;
|
|
border-width: 10px 10px 10px 0;
|
|
border-color: transparent white transparent transparent;
|
|
}
|
|
|
|
/* Fix the circle for containers on the right side */
|
|
.right::after {
|
|
left: -16px;
|
|
}
|
|
|
|
/* The actual content */
|
|
.content {
|
|
padding: 20px 30px;
|
|
background-color: white;
|
|
position: relative;
|
|
border-radius: 6px;
|
|
color: #333;
|
|
}
|
|
|
|
/* Media queries - Responsive timeline on screens less than 600px wide */
|
|
@media screen and (max-width: 600px) {
|
|
/* Place the timelime to the left */
|
|
.timeline::after {
|
|
left: 31px;
|
|
}
|
|
|
|
/* Full-width containers */
|
|
.container {
|
|
width: 100%;
|
|
padding-left: 70px;
|
|
padding-right: 25px;
|
|
}
|
|
|
|
/* Make sure that all arrows are pointing leftwards */
|
|
.container::before {
|
|
left: 60px;
|
|
border: medium solid white;
|
|
border-width: 10px 10px 10px 0;
|
|
border-color: transparent white transparent transparent;
|
|
}
|
|
|
|
/* Make sure all circles are at the same spot */
|
|
.left::after, .right::after {
|
|
left: 15px;
|
|
}
|
|
|
|
/* Make all right containers behave like the left ones */
|
|
.right {
|
|
left: 0%;
|
|
}
|
|
} |