ScoDoc/app/static/css/assiduites.css

839 lines
15 KiB
CSS
Raw Normal View History

:root {
--color-present: #6bdb83;
--color-absent: #e62a11;
2023-12-12 03:05:31 +01:00
--color-absent-clair: rgb(252, 151, 50);
--color-retard: #f0c865;
--color-justi: #29b990;
2023-12-12 03:05:31 +01:00
--color-justi-clair: #48f6ff;
--color-justi-attente: yellow;
--color-justi-attente-stripe: #29b990;
/* pink #fa25cb; */
/* #789dbb;*/
--color-justi-modifie: rgb(255, 230, 0);
--color-justi-invalide: #a84476;
--color-nonwork: #badfff;
2023-12-12 03:05:31 +01:00
--color-absent-justi: #ff86d7;
--color-retard-justi: #e8c6eb;
--color-error: #e62a11;
--color-warning: #eec660;
--color-information: #658ef0;
--color-def: #d61616;
--color-conflit: #ff00009c;
--color-bg-def: #c8c8c8;
--color-primary: #7059ff;
--color-secondary: #6f9fff;
--color-defaut: #fff;
--color-defaut-dark: #444;
--color-default-text: #1f1f1f;
--motif-justi: repeating-linear-gradient(135deg,
transparent,
transparent 4px,
var(--color-justi) 4px,
var(--color-justi) 8px);
--motif-justi-invalide: repeating-linear-gradient(-135deg,
transparent,
transparent 4px,
var(--color-justi-invalide) 4px,
var(--color-justi-invalide) 8px);
}
2023-04-17 15:44:55 +02:00
* {
box-sizing: border-box;
2023-04-17 15:44:55 +02:00
}
.selectors>* {
margin: 10px 0;
2023-04-17 15:44:55 +02:00
}
.selectors:disabled {
opacity: 0.5;
2023-04-17 15:44:55 +02:00
}
#validate_selectors {
margin: 15px 0;
}
2023-04-17 15:44:55 +02:00
.no-display {
display: none !important;
2023-04-17 15:44:55 +02:00
}
/* === Gestion de la timeline === */
#tl_date {
visibility: hidden;
width: 0px;
height: 0px;
position: absolute;
left: 15%;
2023-04-17 15:44:55 +02:00
}
.infos-button {
position: relative;
display: inline-block;
vertical-align: middle;
}
2023-04-17 15:44:55 +02:00
.infos {
position: relative;
display: flex;
justify-content: start;
align-content: center;
gap: 10px;
2023-04-17 15:44:55 +02:00
}
#datestr {
cursor: pointer;
background-color: white;
border: 1px #444 solid;
border-radius: 5px;
padding: 5px;
min-width: 250px;
display: inline-block;
min-height: 20px;
2023-04-17 15:44:55 +02:00
}
#tl_slider {
width: 90%;
cursor: grab;
2023-04-17 15:44:55 +02:00
/* visibility: hidden; */
2023-04-17 15:44:55 +02:00
}
#datestr,
#time {
width: fit-content;
2023-04-17 15:44:55 +02:00
}
.ui-slider-handle.tl_handle {
background: none;
width: 25px;
height: 25px;
visibility: visible;
background-position: top;
background-size: cover;
border: none;
top: -180%;
cursor: grab;
2023-04-17 15:44:55 +02:00
}
#l_handle {
background-image: url(../icons/l_handle.svg);
2023-04-17 15:44:55 +02:00
}
#r_handle {
background-image: url(../icons/r_handle.svg);
2023-04-17 15:44:55 +02:00
}
.ui-slider-range.ui-widget-header.ui-corner-all {
background-color: var(--color-warning);
background-image: none;
opacity: 0.5;
visibility: visible;
2023-04-17 15:44:55 +02:00
}
/* === Gestion des etuds row === */
.etud_row {
display: grid;
grid-template-columns: 2% 20% 55% auto;
gap: 16px;
background-color: white;
border-radius: 15px;
padding: 4px 16px;
margin: 0.5% 0;
box-shadow: -1px 12px 5px -8px rgba(68, 68, 68, 0.61);
-webkit-box-shadow: -1px 12px 5px -8px rgba(68, 68, 68, 0.61);
-moz-box-shadow: -1px 12px 5px -8px rgba(68, 68, 68, 0.61);
max-width: 800px;
2023-04-17 15:44:55 +02:00
}
.etud_row * {
display: flex;
justify-content: center;
align-items: center;
2023-04-17 15:44:55 +02:00
height: 50px;
2023-04-17 15:44:55 +02:00
}
.etud_row.def,
.etud_row.dem {
background-color: var(--color-bg-def);
}
2023-04-17 15:44:55 +02:00
/* --- Index --- */
.etud_row .index_field {
grid-column: 1;
2023-04-17 15:44:55 +02:00
}
/* --- Nom étud --- */
.etud_row .name_field {
grid-column: 2;
height: 100%;
justify-content: start;
2023-04-17 15:44:55 +02:00
}
.etud_row .name_field .name_set {
flex-direction: column;
align-items: flex-start;
margin: 0 5%;
2023-09-11 15:55:18 +02:00
cursor: pointer;
2023-04-17 15:44:55 +02:00
}
.etud_row.def .nom::after,
.tr.def .td.sticky span::after {
display: block;
content: " (Déf.)";
color: var(--color-def);
margin-left: 2px;
}
.etud_row.dem .nom::after,
.tr.dem .td.sticky span::after {
display: block;
content: " (Dém.)";
color: var(--color-def);
margin-left: 2px;
}
2023-04-17 15:44:55 +02:00
.etud_row .name_field .name_set * {
padding: 0;
margin: 0;
2023-04-17 15:44:55 +02:00
}
.etud_row .name_field .name_set h4 {
font-size: small;
font-weight: 600;
2023-04-17 15:44:55 +02:00
}
.etud_row .name_field .name_set h5 {
font-size: x-small;
2023-04-17 15:44:55 +02:00
}
.etud_row .pdp {
border-radius: 15px;
}
2023-04-17 15:44:55 +02:00
/* --- Barre assiduités --- */
.etud_row .assiduites_bar {
display: grid;
grid-template-columns: 7px 1fr;
gap: 13px;
grid-column: 3;
position: relative;
2023-04-17 15:44:55 +02:00
}
.etud_row .assiduites_bar .filler {
height: 5px;
width: 90%;
2023-04-17 15:44:55 +02:00
background-color: white;
border: 1px solid #444;
2023-04-17 15:44:55 +02:00
}
.etud_row .assiduites_bar #prevDateAssi {
height: 7px;
width: 7px;
2023-04-17 15:44:55 +02:00
background-color: white;
border: 1px solid #444;
margin: 0px 8px;
2023-04-17 15:44:55 +02:00
}
.etud_row .assiduites_bar #prevDateAssi.single {
height: 9px;
width: 9px;
2023-04-17 15:44:55 +02:00
}
.etud_row.conflit {
background-color: var(--color-conflit);
2023-04-17 15:44:55 +02:00
}
.etud_row .assiduites_bar>.absent,
.demo.absent {
background-color: var(--color-absent) !important;
2023-04-17 15:44:55 +02:00
}
.etud_row .assiduites_bar>.present,
.demo.present {
background-color: var(--color-present) !important;
2023-04-17 15:44:55 +02:00
}
.etud_row .assiduites_bar>.retard,
.demo.retard {
background-color: var(--color-retard) !important;
}
.demo.nonwork {
background-color: var(--color-nonwork) !important;
2023-04-17 15:44:55 +02:00
}
.etud_row .assiduites_bar>.justified,
.demo.justified {
background-image: var(--motif-justi);
}
.etud_row .assiduites_bar>.invalid_justified,
.demo.invalid_justified {
background-image: var(--motif-justi-invalide);
}
2023-04-17 15:44:55 +02:00
/* --- Boutons assiduités --- */
.etud_row .btns_field {
grid-column: 4;
2023-04-17 15:44:55 +02:00
}
.btns_field:disabled {
opacity: 0.7;
2023-04-17 15:44:55 +02:00
}
.etud_row .btns_field * {
margin: 0 5%;
cursor: pointer;
width: 35px;
height: 35px;
2023-04-17 15:44:55 +02:00
}
.rbtn {
-webkit-appearance: none;
appearance: none;
cursor: pointer;
2023-04-17 15:44:55 +02:00
}
.rbtn::before {
content: "";
display: inline-block;
width: 35px;
height: 35px;
background-position: center;
background-size: cover;
border-radius: 5px;
border: 1px solid var(--color-defaut-dark);
2023-04-17 15:44:55 +02:00
}
.rbtn.present::before {
background-image: url(../icons/present.svg);
background-color: var(--color-present);
2023-04-17 15:44:55 +02:00
}
.rbtn.absent::before {
background-color: var(--color-absent);
background-image: url(../icons/absent.svg);
2023-04-17 15:44:55 +02:00
}
.rbtn.aucun {
background-image: url("../icons/delete.svg");
background-size: calc(100% - 8px) calc(100% - 8px);
/* Adjust size to create "margin" */
background-position: center;
background-repeat: no-repeat;
}
2023-04-17 15:44:55 +02:00
.rbtn.retard::before {
background-color: var(--color-retard);
background-image: url(../icons/retard.svg);
2023-04-17 15:44:55 +02:00
}
.rbtn.conflit::before {
background-color: var(--color-absent);
background-image: url(../icons/solveur_conflits.svg);
}
2023-04-17 15:44:55 +02:00
.rbtn:checked:before {
outline: 5px solid var(--color-primary);
border-radius: 50%;
2023-04-17 15:44:55 +02:00
}
.rbtn:focus {
outline: none !important;
2023-04-17 15:44:55 +02:00
}
/*<== Modal conflit ==>*/
.modal {
display: block;
position: fixed;
z-index: 500;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.4);
2023-04-17 15:44:55 +02:00
}
.modal-content {
background-color: #fefefe;
margin: 5% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
height: 320px;
position: relative;
border-radius: 10px;
2023-04-17 15:44:55 +02:00
}
.close {
color: #111;
position: absolute;
right: 5px;
top: 0px;
font-size: 28px;
font-weight: bold;
cursor: pointer;
2023-04-17 15:44:55 +02:00
}
/* Ajout de styles pour la frise chronologique */
.modal-timeline {
display: flex;
flex-direction: column;
align-items: stretch;
margin-bottom: 20px;
2023-04-17 15:44:55 +02:00
}
.time-labels,
.assiduites-container {
display: flex;
justify-content: space-between;
position: relative;
2023-04-17 15:44:55 +02:00
}
.time-label {
font-size: 14px;
margin-bottom: 4px;
2023-04-17 15:44:55 +02:00
}
.assiduite {
position: absolute;
top: 20px;
border-radius: 4px;
z-index: 10;
height: 100px;
padding: 4px;
border: 1px solid #444;
2023-04-17 15:44:55 +02:00
}
.assiduites-container {
min-height: 20px;
height: calc(50% - 60px);
/* Augmentation de la hauteur du conteneur des assiduités */
position: relative;
margin-bottom: 10px;
2023-04-17 15:44:55 +02:00
}
.modal-buttons {
position: absolute;
text-align: center;
display: flex;
justify-content: space-evenly;
align-items: center;
height: 60px;
width: 100%;
bottom: 5%;
2023-04-17 15:44:55 +02:00
}
.assiduite-special {
height: 120px;
position: absolute;
z-index: 5;
border: 5px solid var(--color-primary);
border-radius: 5px;
2023-04-17 15:44:55 +02:00
}
.assiduite .assiduite-bubble {
top: 5px;
left: 50%;
transform: translateX(-50%);
2023-04-17 15:44:55 +02:00
}
.assiduite-actions {
2024-03-15 15:56:33 +01:00
position: absolute;
right: 0;
margin: 5px;
top: 0;
font-size: 16px;
cursor: pointer;
}
.action-buttons {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 2px;
height: 100%;
2023-04-17 15:44:55 +02:00
}
/*<=== Mass Action ==>*/
.mass-selection {
display: flex;
justify-content: flex-start;
align-items: center;
width: 100%;
gap: 4px;
2023-04-17 15:44:55 +02:00
}
2023-04-17 15:44:55 +02:00
.mass-selection .rbtn {
background-color: transparent;
cursor: pointer;
2023-04-17 15:44:55 +02:00
}
.mass-selection em {
margin-left: 16px;
}
2023-04-17 15:44:55 +02:00
.fieldsplit {
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: column;
2023-04-17 15:44:55 +02:00
}
.fieldsplit legend {
margin: 0;
2023-04-17 15:44:55 +02:00
}
#page-assiduite-content {
display: flex;
flex-wrap: wrap;
gap: 5%;
flex-direction: column;
2023-04-17 15:44:55 +02:00
}
#page-assiduite-content>* {
margin: 1.5% 0;
}
.rouge {
color: var(--color-error);
}
.legende {
border: 1px dashed #333;
max-width: var(--sco-content-max-width);
padding: 20px;
}
.order {
background-image: url(../icons/sort.svg);
}
.filter {
background-image: url(../icons/filter.svg);
}
2023-09-15 09:13:25 +02:00
.download {
background-image: url(../icons/download.svg);
2023-09-15 09:13:25 +02:00
}
.iconline {
display: flex;
justify-content: flex-start;
gap: min(2%, 15px);
align-items: center;
2023-09-15 09:13:25 +02:00
}
[name="destroyFile"] {
-webkit-appearance: none;
appearance: none;
cursor: pointer;
background-image: url(../icons/trash.svg);
2023-06-23 16:12:36 +02:00
}
[name="destroyFile"]:checked {
background-image: url(../icons/remove_circle.svg);
2023-06-23 16:12:36 +02:00
}
.icon {
display: block;
width: 24px;
height: 24px;
outline: none !important;
border: none !important;
cursor: pointer;
margin: 0 2px !important;
}
.icon:focus {
outline: none;
border: none;
}
#forcemodule {
border-radius: 8px;
background: var(--color-error);
max-width: fit-content;
padding: 5px;
color: white;
}
.demo {
width: 23px;
height: 13px;
display: inline-block;
border: solid 1px #333;
}
#options-tableau label {
font-weight: normal;
margin-right: 12px;
}
2023-12-05 21:04:38 +01:00
section.assi-form {
margin-bottom: 12px;
}
2023-12-05 21:04:38 +01:00
table.liste_assi td.date {
width: 140px;
}
2023-12-12 03:05:31 +01:00
table.liste_assi.dataTable tbody td.date-debut {
padding-left: 12px;
}
2023-12-05 21:04:38 +01:00
table.liste_assi td.actions {
white-space: nowrap;
/* boutons horizontalement */
2023-12-05 21:04:38 +01:00
}
2023-12-12 03:05:31 +01:00
table.liste_assi td.actions a:last-child {
padding-right: 12px;
}
tr.row-assiduite td {
border-bottom: 1px solid grey;
}
2023-12-12 03:05:31 +01:00
table.liste_assi tbody tr td.assi-type {
padding-left: 8px;
padding-right: 4px;
}
tr.row-assiduite.absent td.assi-type {
background-color: var(--color-absent-clair);
}
2023-12-12 03:05:31 +01:00
tr.row-assiduite.absent.justifiee td.assi-type {
background-color: var(--color-absent-justi);
}
tr.row-assiduite.retard td.assi-type {
background-color: var(--color-retard);
}
tr.row-assiduite.present td.assi-type {
background-color: var(--color-present);
}
2023-12-12 03:05:31 +01:00
tr.row-justificatif.valide td.assi-type {
background-color: var(--color-justi);
}
tr.row-justificatif.attente td.assi-type {
background-color: var(--color-justi-attente);
}
tr.row-justificatif.modifie td.assi-type {
background-color: var(--color-justi-modifie);
}
tr.row-justificatif.non_valide td.assi-type {
background-color: var(--color-justi-invalide);
}
/*
<== Loader ==>
*/
/* HTML: <div class="loader"></div> */
.loader {
width: 80px;
height: 70px;
border: 5px solid #000;
padding: 0 8px;
box-sizing: border-box;
background:
linear-gradient(#fff 0 0) 0 0/8px 20px,
linear-gradient(#fff 0 0) 100% 0/8px 20px,
radial-gradient(farthest-side, #fff 90%, #0000) 0 5px/8px 8px content-box,
#000;
background-repeat: no-repeat;
animation: l3 2s infinite linear;
}
@keyframes l3 {
25% {
background-position: 0 0, 100% 100%, 100% calc(100% - 5px)
}
50% {
background-position: 0 100%, 100% 100%, 0 calc(100% - 5px)
}
75% {
background-position: 0 100%, 100% 0, 100% 5px
}
}
#loader {
width: 100%;
height: 100%;
position: fixed;
top: 50%;
left: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transform: translate(-50%, -50%);
z-index: 1000;
background-color: rgba(255, 255, 255, 0.8);
}
/**
* <== Couleurs ==>
*/
.color.present {
background-color: var(--color-present) !important;
}
.color.absent {
background-color: var(--color-absent) !important;
}
.color.absent.est_just {
background-color: var(--color-absent-justi) !important;
}
.color.retard {
background-color: var(--color-retard) !important;
}
.color.retard.est_just {
background-color: var(--color-retard-justi) !important;
}
.color.nonwork {
background-color: var(--color-nonwork) !important;
}
.color {
background-color: var(--color-defaut) !important;
}
.color.invalide {
background-color: var(--color-justi-invalide) !important;
}
.color.attente {
background: repeating-linear-gradient(to bottom,
var(--color-justi-attente-stripe) 0px,
var(--color-justi-attente-stripe) 4px,
var(--color-justi-attente) 4px,
var(--color-justi-attente) 7px) !important;
}
.color.est_just {
background-color: var(--color-justi) !important;
}
#gtrcontent .pdp {
display: none;
}
#gtrcontent[data-pdp="true"] .pdp {
display: block;
}
.sco-drop {
border: 1px solid #e1e1e1;
/* Couleur de bordure plus douce */
border-radius: 8px;
/* Coins plus arrondis */
background-color: #fafafa;
/* Couleur de fond légère */
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
/* Ombre douce pour de la profondeur */
width: 100%;
/* Adaptation à la largeur de son conteneur */
max-width: 600px;
/* Largeur maximale pour une meilleure apparence sur grands écrans */
margin: 10px auto;
/* Centrage avec une marge */
position: relative;
z-index: 1;
}
.sco-drop[open] {
z-index: 2;
/* Empilement au-dessus des autres détails */
}
.sco-drop summary {
font-weight: 600;
/* Texte plus épais */
color: #333;
/* Couleur de texte plus foncée pour le contraste */
padding: 7px 10px;
/* Plus de padding pour une meilleure ergonomie */
cursor: pointer;
list-style: none;
/* Enlève les puces */
outline: none;
/* Supprime la bordure de focus par défaut pour un look plus net */
user-select: none;
/* Empêche la sélection du texte */
text-align: center;
}
.sco-drop summary::-webkit-details-marker {
display: none;
/* Cache le triangle par défaut sur Chrome/Safari */
}
.sco-drop summary:focus {
outline: none;
/* Plus propre sans contour lors du focus */
}
.sco-drop ul {
list-style: none;
/* Enlève les puces */
margin: 5px 0;
padding: 0;
background-color: #fff;
/* Arrière-plan blanc pour le contenu */
position: absolute;
border-radius: 8px;
z-index: 1000;
border: 1px solid #e1e1e1;
/* Bordure plus douce */
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
/* Ombre douce pour de la profondeur */
overflow-y: scroll;
max-height: 150px;
/* Hauteur maximale pour une meilleure apparence sur grands écrans */
}
.sco-drop li {
padding: 10px 20px;
/* Espacement intérieur pour les éléments de liste */
border-top: 1px solid #e1e1e1;
/* Séparateur subtil entre les éléments */
}
.sco-drop li:first-child {
border-top: none;
/* Pas de bordure en haut du premier élément */
}