599 lines
10 KiB
CSS
599 lines
10 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
|
|
|
|
html {
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: 16px;
|
|
font-family: "Montserrat";
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
/*position: fixed;*/
|
|
/*width: 100vw;*/
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
top: 0;
|
|
padding: 0 10px;
|
|
height: 80px;
|
|
border-bottom: 2px solid #000;
|
|
}
|
|
|
|
.navbar {
|
|
display: flex;
|
|
width: 70%;
|
|
justify-content: flex-start;
|
|
margin-right: 30px;
|
|
}
|
|
|
|
.navbar ul, .navbar li {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.navbar ul {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 100%;
|
|
}
|
|
|
|
.navbar li {
|
|
position: relative;
|
|
margin: auto 10px;
|
|
}
|
|
|
|
.navend {
|
|
margin-right: 20px;
|
|
display: flex;
|
|
width: 100%;
|
|
align-items: end;
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.navend a {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.navbar ul ul {
|
|
display: none;
|
|
position: absolute;
|
|
width: auto;
|
|
left: 0;
|
|
top: 100%;
|
|
flex-direction: column;
|
|
transform: translateX(-25%);
|
|
}
|
|
|
|
.navbar li:hover ul,
|
|
.navbar li ul:hover {
|
|
display: flex; /* Changed to flex to support horizontal layout */
|
|
}
|
|
|
|
.navbar ul ul li {
|
|
width: auto; /* Adjust width for inline layout */
|
|
margin: auto 10px;
|
|
padding: 10px;
|
|
border-left: 1px solid;
|
|
}
|
|
|
|
.navbar ul ul li:first-child {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.navbar ul ul a {
|
|
display: block;
|
|
padding: 0 0 10px 0;
|
|
text-decoration: none;
|
|
white-space: nowrap; /* Prevents text from wrapping */
|
|
}
|
|
|
|
/* Styles pour la navigation du profil utilisateur */
|
|
.profile-nav {
|
|
display: flex;
|
|
border-bottom: 1px solid #ddd; /* Bordure légère */
|
|
margin: 20px auto; /* Centrer la navigation */
|
|
}
|
|
|
|
.profile-nav ul {
|
|
list-style: none; /* Supprimer les puces */
|
|
display: flex;
|
|
flex-direction: row;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.profile-nav li {
|
|
margin-bottom: 10px; /* Espacement entre les éléments */
|
|
}
|
|
|
|
.profile-nav a {
|
|
text-decoration: none; /* Supprimer la décoration de texte */
|
|
color: #007bff; /* Couleur du texte */
|
|
font-weight: bold; /* Texte en gras */
|
|
display: block; /* Afficher les liens comme des blocs */
|
|
padding: 10px; /* Espacement interne */
|
|
border-radius: 5px; /* Bordure arrondie */
|
|
transition: background-color 0.3s ease; /* Transition pour le survol */
|
|
}
|
|
|
|
.profile-nav a:hover {
|
|
background-color: #31363b; /* Couleur de fond au survol */
|
|
}
|
|
|
|
.brand {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.2cm;
|
|
font-variant: small-caps;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 1rem;
|
|
letter-spacing: 0.05cm;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
transition: all 1s;
|
|
scroll-margin-top: 80px;
|
|
}
|
|
|
|
.button {
|
|
padding: 5px;
|
|
max-width: 300px;
|
|
cursor: pointer;
|
|
font-size: 1.5rem;
|
|
border: 1px solid;
|
|
border-radius: 2px;
|
|
margin: 20px;
|
|
}
|
|
|
|
.button-grp {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
}
|
|
|
|
section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px;
|
|
width: 60%;
|
|
margin: 20px auto;
|
|
}
|
|
|
|
.courseNav {
|
|
display: block;
|
|
float: left;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 150px;
|
|
max-width: 15%;
|
|
border: 1px solid;
|
|
}
|
|
|
|
.edito {
|
|
border: 1px solid;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.comment {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.test {
|
|
border: 1px solid;
|
|
padding: 10px;
|
|
}
|
|
|
|
.ul-arrow li {
|
|
list-style: none;
|
|
}
|
|
|
|
.ul-arrow li:before {
|
|
content: "→ ";
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem;
|
|
border-left: 5px solid;
|
|
border-bottom: 1px solid;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.card-header img.thumbnails {
|
|
transition: transform 1s ease
|
|
}
|
|
|
|
.card:hover img.thumbnails {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.container-inline {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-width: 250px;
|
|
border-left: 1px solid;
|
|
border-top: 1px solid;
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
margin: 20px;
|
|
}
|
|
|
|
.card-header h2 {
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
width: 100%;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.card-body a {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.card-body a:hover {
|
|
text-decoration: underline
|
|
}
|
|
|
|
.card-body {
|
|
border-top: 1px solid;
|
|
padding: 5px;
|
|
line-height: 90%;
|
|
overflow: hidden;
|
|
z-index: 3;
|
|
}
|
|
|
|
.def-author {
|
|
font-size: 0.8rem;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* CODE */
|
|
.inline {
|
|
display: inline-block;
|
|
}
|
|
|
|
pre {
|
|
border-radius: 5px;
|
|
}
|
|
|
|
code {
|
|
font-family: "Courier New", Courier, monospace;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.alert {
|
|
border: 1px solid;
|
|
border-radius: 2px;
|
|
padding: 20px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.question {
|
|
background-image: url('../img/question.png') right no-repeat;
|
|
}
|
|
|
|
#hide {
|
|
display: none;
|
|
}
|
|
|
|
table {
|
|
width: 80%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.table-40 {
|
|
width: 40%;
|
|
}
|
|
|
|
.table-50 {
|
|
width: 50%;
|
|
}
|
|
|
|
.table-60 {
|
|
width: 60%;
|
|
}
|
|
|
|
.table-70 {
|
|
width: 70%;
|
|
}
|
|
|
|
th {
|
|
border-bottom: 2px solid;
|
|
text-align: left;
|
|
font-size: 1.1rem;
|
|
padding: 5px;
|
|
}
|
|
|
|
td {
|
|
padding: 10px;
|
|
}
|
|
|
|
form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 50%;
|
|
margin: 20px auto;
|
|
}
|
|
|
|
/* Styles pour la section du formulaire */
|
|
.form-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 20px;
|
|
background-color: rgba(0, 0, 0, 0.4); /* Fond blanc pour plus de clarté */
|
|
border: 1px solid #dddddd; /* Bordure légère */
|
|
border-radius: 10px; /* Bordure arrondie */
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre légère */
|
|
margin: 20px auto;
|
|
width: 50%;
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
align-items: center;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-group label {
|
|
margin-bottom: 5px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.login-form input[type="text"],
|
|
.login-form input[type="email"],
|
|
.login-form input[type="password"],
|
|
.login-form textarea {
|
|
padding: 10px;
|
|
border: 1px solid #cccccc; /* Gris clair */
|
|
border-radius: 5px; /* Bordure légèrement arrondie */
|
|
background-color: rgba(0, 0, 0, 0.7); /* Fond gris très clair */
|
|
color: #a8a8a8;
|
|
margin-bottom: 10px;
|
|
font-size: 1rem; /* Taille de police harmonisée */
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Ombre intérieure subtile */
|
|
}
|
|
|
|
.login-form .btn-submit {
|
|
padding: 10px;
|
|
border: 1px solid #007bff;
|
|
border-radius: 5px; /* Bordure légèrement arrondie */
|
|
background-color: #007bff;
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
font-size: 1rem; /* Taille de police harmonisée */
|
|
}
|
|
|
|
.login-form .btn-submit:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
input[type="text"], input[type="email"], input[type="password"], textarea {
|
|
padding: 10px;
|
|
border: 1px solid #888888; /* Gris foncé */
|
|
border-radius: 2px;
|
|
background-color: #e0e0e0; /* Gris clair harmonisé */
|
|
color: #333333;
|
|
}
|
|
|
|
input[type="submit"], button {
|
|
padding: 10px;
|
|
border: 1px solid #007bff;
|
|
border-radius: 2px;
|
|
background-color: #007bff;
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
input[type="submit"]:hover, button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
button {
|
|
padding: 10px;
|
|
border: 1px solid;
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* PROFILE */
|
|
|
|
.profile-section {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.profile-header {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.profile-header h2 {
|
|
font-size: 2em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.profile-picture {
|
|
width: 150px;
|
|
height: 150px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.profile-details p {
|
|
font-size: 1.1em;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.profile-actions {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.profile-actions .btn {
|
|
margin: 0 10px;
|
|
padding: 10px 20px;
|
|
font-size: 1em;
|
|
border-radius: 5px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.profile-actions .btn-primary {
|
|
background-color: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
.profile-actions .btn-secondary {
|
|
background-color: #6c757d;
|
|
color: white;
|
|
}
|
|
|
|
footer {
|
|
flex-direction: column;
|
|
background-color: #252525;
|
|
color: #8d8d8d;
|
|
padding: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.about {
|
|
width: 30%;
|
|
}
|
|
|
|
.footer-link {
|
|
width: 30%;
|
|
}
|
|
|
|
@media (max-width: 1000px) {
|
|
.courseNav {
|
|
display: block;
|
|
position: relative;
|
|
top: 0;
|
|
border: 0;
|
|
max-width: 100%;
|
|
box-shadow: 0 0 transparent;
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 678px) {
|
|
nav {
|
|
position: absolute;
|
|
height: auto;
|
|
align-items
|
|
: flex-start;
|
|
justify-content: flex-start;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
.navbar {
|
|
width: 100%;
|
|
}
|
|
|
|
.navbar ul {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
.navbar ul li {
|
|
width: 100%;
|
|
}
|
|
|
|
.navbar ul ul {
|
|
position: static;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.navbar ul ul li {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
.navbar ul ul a {
|
|
padding: 10px 20px;
|
|
}
|
|
|
|
/* Initialement, les sous-menus sont cachés */
|
|
.navbar ul ul {
|
|
display: none;
|
|
}
|
|
|
|
/* Afficher les sous-menus lorsque l'élément parent est focalisé */
|
|
.navbar li:focus-within > ul {
|
|
display: flex;
|
|
}
|
|
|
|
/* Styles pour les liens parents pour permettre le focus */
|
|
.navbar a {
|
|
display: block;
|
|
padding: 10px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.navbar li > a:focus + ul {
|
|
display: flex;
|
|
}
|
|
|
|
section {
|
|
margin: 300px auto;
|
|
width: 85%;
|
|
}
|
|
|
|
.submenu {
|
|
display: none;
|
|
}
|
|
}
|