app.css 3.6 KB

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