app.css 4.1 KB

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