app.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. background-image: url('data:image/svg+xml;utf8,\
  123. <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" fill="none" stroke="%23ccc" stroke-width="1" stroke-opacity="0.66">\
  124. <path d="M0 8 L8 0"/>\
  125. </svg>');
  126. );
  127. }
  128. /* Hidden slot */
  129. .planning-cell-hidden {
  130. background-color: transparent;
  131. color: transparent;
  132. border-bottom: 1px solid #ccc;
  133. z-index: 0;
  134. }
  135. .planning-cell-game-parent {
  136. position: relative;
  137. overflow: visible;
  138. border: none !important;
  139. z-index: 0 !important;
  140. pointer-events: none;
  141. }
  142. .planning-cell-game {
  143. border: solid 0.2rem transparent;
  144. background-color: transparent;
  145. width: 100%;
  146. position: absolute;
  147. top: 0rem;
  148. left: 0rem;
  149. /*z-index: 99 !important;*/
  150. white-space: normal;
  151. text-overflow: clip;
  152. overflow: hidden;
  153. pointer-events: all;
  154. cursor: zoom-in;
  155. }
  156. .planning-cell-game-isfull {
  157. filter: grayscale(1) opacity(0.3);
  158. }
  159. /* Optional: highlight on hover globally */
  160. .planning-cell:hover:not(.planning-cell-hidden):not(.planning-cell-heading):not(.planning-cell-wide):not(.planning-cell-game):not(.planning-cell-game-parent) {
  161. filter: brightness(0.98);
  162. }
  163. .planning-cell-game .card {
  164. padding: 0.2rem;
  165. overflow: hidden;
  166. background-size: cover; /* remplit toute la div */
  167. background-position: center; /* centre l’image */
  168. background-repeat: no-repeat; /* pas de répétition */
  169. background-color: hsl(
  170. var(--bulma-primary-h),
  171. var(--bulma-primary-s),
  172. var(--bulma-primary-45-l)
  173. );
  174. background-blend-mode: multiply;
  175. }
  176. .planning-cell-game .card::after {
  177. content: "";
  178. position: absolute;
  179. inset: 0; /* couvre toute la carte */
  180. background: rgba(255, 255, 255, 0.8); /* calque sombre semi‑transparent */
  181. pointer-events: none; /* clics passent à travers */
  182. z-index: 10;
  183. }
  184. .planning-cell-game .card > * {
  185. position: relative;
  186. z-index: 20; /* texte au-dessus */
  187. }
  188. .planning-cell-game .card-header {
  189. border: none;
  190. box-shadow: none;
  191. }
  192. .planning-cell-game img {
  193. border: 1px solid white;
  194. }