app.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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. /* Header cells (e.g., "Espaces") */
  96. .planning-cell-heading {
  97. font-weight: 600;
  98. border-bottom: 1px solid #00b89c;
  99. z-index: 0;
  100. }
  101. /* Wide header cells (e.g., time columns) */
  102. .planning-cell-period {
  103. font-weight: 600;
  104. border-bottom: 1px solid #ccc;
  105. z-index: 0;
  106. }
  107. .planning-cell-force-large {
  108. width: 100%;
  109. }
  110. /* Free (available) slot */
  111. .planning-cell-free {
  112. border-bottom: 1px solid #ccc;
  113. z-index: 0;
  114. justify-content: center;
  115. }
  116. /* Locked slot */
  117. .planning-cell-locked {
  118. border-bottom: 1px solid #ccc;
  119. z-index: 0;
  120. justify-content: center;
  121. 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>');
  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. }