app.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. /* Styles spécifiques à l'application */
  2. .main-content {
  3. margin-top: 3.25rem;
  4. padding: 0.5rem;
  5. }
  6. .icon-inner {
  7. padding: 0.5rem;
  8. }
  9. .icon svg {
  10. height: 100%;
  11. width: 100%;
  12. fill: currentColor;
  13. }
  14. .small-icon-in-text {
  15. height: 1rem;
  16. }
  17. .text-limit-height {
  18. height: 5rem;
  19. overflow: hidden;
  20. text-overflow: ellipsis;
  21. }
  22. .dropdown-menu {
  23. /* display: none; */
  24. opacity: 0;
  25. transform: translateY(-10px);
  26. transition: opacity 0.2s ease, transform 0.2s ease;
  27. }
  28. .dropdown-menu.is-active {
  29. /* display: block; */
  30. opacity: 1;
  31. transform: translateY(0);
  32. }
  33. .jump-page {
  34. margin-bottom: 100vh;
  35. }
  36. .is-div-disabled {
  37. filter: grayscale(1) opacity(0.3);
  38. }
  39. /* Styles pour les plannings */
  40. /* Style par défaut pour les cellules
  41. .planning-cell {
  42. display: flex;
  43. align-items: center;
  44. justify-content: center;
  45. height: 3rem;
  46. text-align: center;
  47. padding: 0.5rem;
  48. box-sizing: border-box;
  49. overflow: hidden;
  50. white-space: nowrap;
  51. text-overflow: ellipsis;
  52. }
  53. /* Style pour les cellules d'entête
  54. .planning-cell-heading {
  55. background: black;
  56. color: white;
  57. font-weight: bold;
  58. border-bottom: 1px solid white;
  59. }
  60. /* Style pour les cellules pleine largeur (ex. en-tête de périodes)
  61. .planning-cell-wide {
  62. background: lightgray;
  63. border-bottom: 1px solid white;
  64. }
  65. /* Style pour les cellules disponibles
  66. .planning-cell-free {
  67. border-bottom: 1px solid lightgray;
  68. }
  69. /* Style pour les cellules vérouillées
  70. .planning-cell-locked {
  71. background-color: gray;
  72. color: white;
  73. border-bottom: 1px solid lightgray;
  74. }
  75. /* Style pour les cellules masquées
  76. .planning-cell-hidden {
  77. background-color: none;
  78. border-bottom: 1px solid lightgray;
  79. }
  80. /* Base styles for all planning cells */
  81. :root {
  82. --height-multiplier: 1;
  83. }
  84. .planning-cell {
  85. height: calc(4rem * var(--height-multiplier)); }
  86. .planning-cell {
  87. display: flex;
  88. align-items: center;
  89. /*justify-content: center;*/
  90. padding: 0.5rem;
  91. box-sizing: border-box;
  92. overflow: hidden;
  93. white-space: nowrap;
  94. text-overflow: ellipsis;
  95. font-size: 0.95rem;
  96. transition: background-color 0.2s ease;
  97. z-index: 0;
  98. }
  99. /* Header cells (e.g., "Espaces") */
  100. .planning-cell-heading {
  101. font-weight: 600;
  102. border-bottom: 1px solid #00b89c;
  103. z-index: 0;
  104. }
  105. /* Wide header cells (e.g., time columns) */
  106. .planning-cell-wide {
  107. font-weight: 500;
  108. border-bottom: 1px solid #ccc;
  109. z-index: 0;
  110. }
  111. /* Free (available) slot */
  112. .planning-cell-free {
  113. border-bottom: 1px solid #ccc;
  114. z-index: 0;
  115. justify-content: center;
  116. }
  117. /* Locked slot */
  118. .planning-cell-locked {
  119. border-bottom: 1px solid #ccc;
  120. z-index: 0;
  121. justify-content: center;
  122. }
  123. /* Hidden slot */
  124. .planning-cell-hidden {
  125. background-color: transparent;
  126. color: transparent;
  127. border-bottom: 1px solid #ccc;
  128. z-index: 0;
  129. }
  130. .planning-cell-game-parent {
  131. position: relative;
  132. overflow: visible;
  133. border: none !important;
  134. z-index: 0 !important;
  135. pointer-events: none;
  136. }
  137. .planning-cell-game {
  138. border: solid 0.2rem transparent;
  139. background-color: transparent;
  140. width: 100%;
  141. position: absolute;
  142. top: 0rem;
  143. left: 0rem;
  144. /*z-index: 99 !important;*/
  145. white-space: normal;
  146. text-overflow: clip;
  147. overflow: hidden;
  148. pointer-events: all;
  149. cursor: zoom-in;
  150. }
  151. .planning-cell-game-isfull {
  152. filter: grayscale(1) opacity(0.3);
  153. }
  154. /* Optional: highlight on hover globally */
  155. .planning-cell:hover:not(.planning-cell-hidden):not(.planning-cell-heading):not(.planning-cell-wide):not(.planning-cell-game):not(.planning-cell-game-parent) {
  156. filter: brightness(0.98);
  157. }
  158. .planning-cell-game .card {
  159. padding: 0.2rem;
  160. overflow: hidden;
  161. background-size: cover; /* remplit toute la div */
  162. background-position: center; /* centre l’image */
  163. background-repeat: no-repeat; /* pas de répétition */
  164. background-color: hsl(
  165. var(--bulma-primary-h),
  166. var(--bulma-primary-s),
  167. var(--bulma-primary-45-l)
  168. );
  169. background-blend-mode: multiply;
  170. }
  171. .planning-cell-game .card::after {
  172. content: "";
  173. position: absolute;
  174. inset: 0; /* couvre toute la carte */
  175. background: rgba(255, 255, 255, 0.8); /* calque sombre semi‑transparent */
  176. pointer-events: none; /* clics passent à travers */
  177. z-index: 10;
  178. }
  179. .planning-cell-game .card > * {
  180. position: relative;
  181. z-index: 20; /* texte au-dessus */
  182. }
  183. .planning-cell-game .card-header {
  184. border: none;
  185. box-shadow: none;
  186. }
  187. .planning-cell-game img {
  188. border: 1px solid white;
  189. }