app.css 4.3 KB

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