app.css 3.8 KB

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