app.css 4.3 KB

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