SAE_web/styles/main.css
Loris BALOCCHI 9adca94b82 Ajout de webhooks pour le login/register/newEvent.
Ajout des pages pour gestion globale des évènements.

Co-authored-by: Charpentier Juliette <juliette.charpentier@etu.u-pec.fr>
2024-06-14 17:31:37 +02:00

374 lines
6.6 KiB
CSS

@font-face {
font-family: "RobotoFlex";
src: url(/assets/fonts/RobotoFlex.ttf);
font-display: swap;
}
* {
outline: none;
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-image: url("/assets/images/background.jpg");
/* backdrop-filter: blur(5px); */
background-size: cover;
overflow-x: hidden;
font-family: "RobotoFlex";
margin: 0;
min-height: 100dvh;
display: flex;
flex-direction: column;
}
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
z-index: -1;
}
.login-container {
background: #26272b;
align-items: center;
opacity: 1;
padding: 3rem;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
width: 100%;
text-align: center;
max-width: fit-content;
margin-inline: auto;
margin-block: 5em;
}
.form {
display: flex;
flex-direction: column;
align-items: center;
}
.login-container img {
width: 146px;
margin-bottom: 1rem;
}
.login-container h2 {
font-weight: 700;
color: white;
}
.login-container p {
margin-bottom: 1.5rem;
color: #8e8c8c;
size: 10px;
}
h2.login-title {
font-family: "RobotoFlex";
}
p.login-subtitle {
font-family: "RobotoFlex";
padding-left: 0;
}
.form-group {
margin-bottom: 1rem;
text-align: left;
width: 100%;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #b1aeae;
}
.form-group input {
width: 100%;
padding: 0.5rem;
border: 1px solid #121216;
border-radius: 5px;
background-color: #34353a;
color: #fffe;
transition: all 0.3s ease;
}
.form-group input:focus,
.form-group input:not(:placeholder-shown) {
border-color: #007bff;
}
.no-account {
font-size: 0.8rem;
margin-top: 0.25rem;
}
.submit-button {
width: 100%;
padding: 0.75rem;
border: none;
background-color: #f4b400;
color: white;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
border-radius: 5px;
transition: all 0.3s ease;
margin-top: 25px;
}
button:hover {
background-color: #f4a400;
}
.sign-up {
margin-top: 1rem;
color: #666;
}
.sign-up a {
color: #007bff;
text-decoration: none;
}
.sign-up a:hover {
text-decoration: underline;
}
/* Styles généraux*/
h1 {
color: white;
font-size: 2rem;
margin-top: 1rem;
padding-left: 2rem;
text-transform: uppercase;
font-family: "RobotoFlex";
}
p.text {
color: white;
font-size: 1rem;
padding-left: 2rem;
padding-right: 2rem;
font-family: "RobotoFlex";
}
a.text {
color: white;
font-size: 1rem;
padding-left: 2rem;
padding-right: 2rem;
font-family: "RobotoFlex";
}
tr {
color: white;
font-size: 1rem;
padding-left: 2rem;
font-family: "RobotoFlex";
}
th {
color: white;
font-size: 1rem;
padding-left: 2rem;
font-family: "RobotoFlex";
}
td {
color: white;
font-size: 1rem;
padding-left: 2rem;
font-family: "RobotoFlex";
}
.avatar {
width: 48px;
height: 48px;
display: block;
}
.searchbar {
display: flex;
justify-content: center;
margin-top: 1rem;
padding-left: 2rem;
padding-right: 2rem;
}
.searchbar input {
width: 100%;
padding: 0.5rem;
border: 1px solid #121216;
border-radius: 5px;
background-color: #34353a;
color: #fffe;
transition: all 0.3s ease;
}
.searchbar input:focus,
.searchbar input:not(:placeholder-shown) {
border-color: #007bff;
}
.searchbar button {
padding: 0.5rem;
border: none;
background-color: #f4b400;
color: white;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
border-radius: 5px;
transition: all 0.3s ease;
width: 17rem;
margin-left: 0.25rem;
}
.searchbar button:hover {
background-color: #f4a400;
}
.adm-users-container {
background: #26272b;
align-items: center;
opacity: 1;
padding: 3rem;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
width: 100%;
text-align: center;
max-width: fit-content;
margin-inline: auto;
margin-block: 5em;
}
.event-container {
background: #26272b;
align-items: center;
opacity: 1;
padding: 3rem;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
width: 100%;
text-align: center;
max-width: fit-content;
margin-inline: auto;
margin-block: 5em;
}
.checkbox-container {
display: flex;
justify-content: flex-start;
margin-top: 1rem;
}
/* Masquer les cases à cocher d'origine */
input[type="checkbox"] {
opacity: 0;
position: absolute;
}
/* Styliser les labels */
input[type="checkbox"] + label {
position: relative;
padding-left: 25px;
cursor: pointer;
}
/* Ajouter un élément personnalisé avant le label */
input[type="checkbox"] + label::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 20px;
height: 20px;
border: 2px solid #555;
border-radius: 4px;
}
/* Changer l'apparence lorsque la case est cochée */
input[type="checkbox"]:checked + label::before {
background-color: #007bff;
border-color: #007bff;
}
/* Optionnel : Ajouter un indicateur visuel pour la case cochée */
input[type="checkbox"]:checked + label::after {
content: "✓";
position: absolute;
left: 3px;
top: -3px;
font-size: 17px;
color: white;
}
.form-group select {
width: 100%;
padding: 0.5rem;
border: 1px solid #121216;
border-radius: 5px;
background-color: #34353a;
color: #fffe;
transition: all 0.3s ease;
appearance: none; /* Pour supprimer le style par défaut */
-webkit-appearance: none; /* Pour Safari */
-moz-appearance: none; /* Pour Firefox */
background-image: url("https://cdn-icons-png.flaticon.com/16/8442/8442683.png"); /* Ajoutez votre icône personnalisée */
background-repeat: no-repeat;
background-position: right 0.5rem center; /* Ajustez selon la taille de votre padding */
background-size: 1.5rem; /* Ajustez selon la taille souhaitée pour l'icône */
}
/* Optionnel : Style pour les options */
.form-group select option {
background-color: #34353a; /* Pour que le fond des options corresponde au select */
color: #fffe; /* Couleur du texte des options */
}
.event-container img {
width: 146px;
margin-bottom: 1rem;
}
.event-container h2 {
font-weight: 700;
color: white;
}
.event-container p {
margin-bottom: 1.5rem;
color: #8e8c8c;
size: 10px;
}
h2.event-title {
font-family: "RobotoFlex";
}
p.event-subtitle {
font-family: "RobotoFlex";
padding-left: 0;
}
button.new-event {
width: 25%;
margin-bottom: 1rem;
margin-left: auto;
margin-right: auto;
padding: 10px 0;
border: none;
background-color: #f4b400;
color: white;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
border-radius: 5px;
transition: all 0.3s ease;
}
button.new-event:hover {
background-color: #f4a400;
}