app.css 4.5 KB

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