app.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. /* Styles pour les plannings */
  34. /* Style par défaut pour les cellules
  35. .planning-cell {
  36. display: flex;
  37. align-items: center;
  38. justify-content: center;
  39. height: 3rem;
  40. text-align: center;
  41. padding: 0.5rem;
  42. box-sizing: border-box;
  43. overflow: hidden;
  44. white-space: nowrap;
  45. text-overflow: ellipsis;
  46. }
  47. /* Style pour les cellules d'entête
  48. .planning-cell-heading {
  49. background: black;
  50. color: white;
  51. font-weight: bold;
  52. border-bottom: 1px solid white;
  53. }
  54. /* Style pour les cellules pleine largeur (ex. en-tête de périodes)
  55. .planning-cell-wide {
  56. background: lightgray;
  57. border-bottom: 1px solid white;
  58. }
  59. /* Style pour les cellules disponibles
  60. .planning-cell-free {
  61. border-bottom: 1px solid lightgray;
  62. }
  63. /* Style pour les cellules vérouillées
  64. .planning-cell-locked {
  65. background-color: gray;
  66. color: white;
  67. border-bottom: 1px solid lightgray;
  68. }
  69. /* Style pour les cellules masquées
  70. .planning-cell-hidden {
  71. background-color: none;
  72. border-bottom: 1px solid lightgray;
  73. }
  74. /* Base styles for all planning cells */
  75. :root {
  76. --height-multiplier: 1;
  77. }
  78. .planning-cell {
  79. height: calc(4rem * var(--height-multiplier)); }
  80. .planning-cell {
  81. display: flex;
  82. align-items: center;
  83. /*justify-content: center;*/
  84. padding: 0.5rem;
  85. box-sizing: border-box;
  86. overflow: hidden;
  87. white-space: nowrap;
  88. text-overflow: ellipsis;
  89. font-size: 0.95rem;
  90. transition: background-color 0.2s ease;
  91. z-index: 0;
  92. }
  93. /* Header cells (e.g., "Espaces") */
  94. .planning-cell-heading {
  95. font-weight: 600;
  96. border-bottom: 1px solid #00b89c;
  97. z-index: 0;
  98. }
  99. /* Wide header cells (e.g., time columns) */
  100. .planning-cell-wide {
  101. font-weight: 500;
  102. border-bottom: 1px solid #ccc;
  103. z-index: 0;
  104. }
  105. /* Free (available) slot */
  106. .planning-cell-free {
  107. border-bottom: 1px solid #ccc;
  108. z-index: 0;
  109. justify-content: center;
  110. }
  111. /* Locked slot */
  112. .planning-cell-locked {
  113. border-bottom: 1px solid #ccc;
  114. z-index: 0;
  115. justify-content: center;
  116. }
  117. /* Hidden slot */
  118. .planning-cell-hidden {
  119. background-color: transparent;
  120. color: transparent;
  121. border-bottom: 1px solid #ccc;
  122. z-index: 0;
  123. }
  124. .planning-cell-game-parent {
  125. position: relative;
  126. overflow: visible;
  127. border: none !important;
  128. z-index: 0 !important;
  129. pointer-events: none;
  130. }
  131. .planning-cell-game {
  132. border: solid 0.2rem transparent;
  133. background-color: transparent;
  134. width: 100%;
  135. color: black;
  136. position: absolute;
  137. top: 0rem;
  138. left: 0rem;
  139. z-index: 99 !important;
  140. white-space: normal;
  141. text-overflow: clip;
  142. overflow: hidden;
  143. pointer-events: all;
  144. cursor: zoom-in;
  145. }
  146. .planning-cell-game-isfull {
  147. filter: grayscale(1) opacity(0.3);
  148. }
  149. /* Optional: highlight on hover globally */
  150. .planning-cell:hover:not(.planning-cell-hidden):not(.planning-cell-heading):not(.planning-cell-wide):not(.planning-cell-game):not(.planning-cell-game-parent) {
  151. filter: brightness(0.98);
  152. }
  153. .planning-cell-game .card {
  154. /*border-left: solid 0.2rem blue;
  155. border-top: solid 0.2rem blue;*/
  156. background-color: hsl(204, 70%, 96%);
  157. padding: 0.2rem;
  158. overflow: hidden;
  159. }
  160. .planning-cell-game .card-header {
  161. border: none;
  162. box-shadow: none;
  163. }
  164. .planning-cell-game img {
  165. border: 1px solid white;
  166. }