ACM/css/StyleTableau.css.php
2025-03-26 10:57:42 +01:00

37 lines
1.7 KiB
PHP

<?php
use Module\ACM\Classe\GestionBD\gestionVariableCouleur;
$couleur = gestionVariableCouleur::getACMCouleurs();
$fondTheadCouleur = $couleur["ACMTitreTableau"];
$fondTbodyCouleur = $couleur["ACMCorpsTableau"];
$fontTheadCouleur = $couleur["ACMFontTitreTableau"];
$fontTbodyCouleur = $couleur["ACMFontCorpsTableau"];
$couleurBordure = $couleur["ACMBordure"];
$couleurCongee = $couleur["ACMConge"];
$couleurMalade = $couleur["ACMMalade"];
$couleurRecupe = $couleur["ACMRecupe"];
?>
<style>
#rhTable *{ padding: 0; margin: 0; border: 0;}
#rhTable {width: 100%; border-collapse: collapse}
#rhTable thead {background: <?= $fondTheadCouleur ?>; color:<?=$fontTheadCouleur?>}
#rhTable tbody {background: <?= $fondTbodyCouleur ?>; color:<?=$fontTbodyCouleur?>}
#rhTable thead * {border: <?=$couleurBordure?> 2px solid}
#rhTable td {align-items: center; align-content: center; text-align: center;}
#rhTable tbody .ligne_semaine {border-bottom: <?=$couleurBordure?> 2px solid}
#rhTable tbody tr {border-right: <?=$couleurBordure?> 2px solid}
#rhTable tbody th {width: 12.5%; border: <?=$couleurBordure?> 2px solid}
#rhTable tbody td {width: 6.25%; border-left: <?=$couleurBordure?> 1px solid;}
/*** *** *** *** GESTION DES COULEUR POUR LES LIGNES *** *** *** ***/
.couleurCongee {color: <?= $couleurCongee ?>;}
.couleurCongee div { background-color: <?= $couleurCongee ?>;}
.couleurMalade {color: <?= $couleurMalade ?>;}
.couleurMalade div { background-color: <?= $couleurMalade ?>;}
.couleurRecupe {color: <?= $couleurRecupe ?>;}
.couleurRecupe div {background-color: <?= $couleurRecupe?>;}
.tailleDiv div {width: 100%; border-radius: 10px; height: 90%; display: inline-block}
.puce:hover{text-decoration: none; color: <?= $fondTheadCouleur ?>}
</style>