/* --------------------------- Style en dur a passer dans styles plus tard flag edt ------------------------------ */ /* --------------------------- Bouton vous etes sur le site de tes / btnAdmin ------------------------------ */ blink {animation: blinker 0.6s linear infinite; color: #1c87c9; } @keyframes blinker {50% {opacity: 0; } } .blink-one {animation: blinker-one 20s linear infinite; } @keyframes blinker-one { 0% {opacity: 0; } } .blink-two {animation: blinker-two 1.4s linear infinite; } @keyframes blinker-two {100% {opacity: 0; } } /* --------------------------- debug ------------------------------ */ form {display:contents;} /* --------------------------- debug ------------------------------ */ .debugStyle { line-height: 24px; padding: 2px; font-size: 1.1rem; max-width:100%; white-space:break-spaces; word-break:break-all; overflow-wrap:break-word; min-height:40px; background-color: #e7ffd8; color: darkgreen; } /* --------------------------- Infobulle personnalisée ----------------------------- */ [data-tooltip] { position: relative; } [data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 999; opacity: 0; visibility: hidden; margin-bottom: 8px; padding: 8px 12px; white-space: wrap; word-break: break-word; max-width: 700px; min-width: 200px; top:-90px; left: 20%; transition: opacity 0.2s ease-in-out; pointer-events: none; transform: translateX(-50%); transform: translateY(100%); text-align: left; font-size: 1rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); background: #fcfee5; color: #333; border-radius: 5px; border: 1px solid lightgrey; } /* Affichage au survol */ [data-tooltip]:hover::after { opacity: 1; visibility: visible; z-index: 999; /*position: relative;*/ display:block; } /* Position par défaut (tooltip en bas) */ .tooltip-bottom[data-tooltip]::after { top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; } /* Position alternative (tooltip en haut) */ .tooltip-top[data-tooltip]::after { bottom: 100%; left: 20%; transform: translateX(20%); margin-bottom: 8px; } /* Position alternative (tooltip en left) */ .tooltip-left[data-tooltip]::after { right: 50%; transform: translateX(-50%); margin-bottom: 8px; } /*------------------------------------------------------*/ /* infobulle par defaut title /*------------------------------------------------------*/ [title] { position: relative; cursor: pointer; } /* Masquer par défaut */ [title]::after, [title]::before, { opacity: 0; visibility: hidden; } /* Création de la tooltip avec l'attribut title */ [title]:hover::after { content: attr(title); /* Récupère le texte du title */ position: absolute; background: #FFFCE6; color: #444444; padding: 8px 12px; border-radius: 6px; font-size: 1rem; text-align:left; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); white-space: normal; top: 110%; left: 50%; min-width:150px; max-width:100%; overflow: auto; transform: translateX(-50%); opacity: 1; visibility: visible; transition: opacity 0.2s ease-in-out; z-index: 1000; border: 1px solid lightgrey; } /* pour le back office element de menu contextuel séléctionné */ .element-selected { border: 4px solid orange !important; padding:5px !important; }