app.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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. width: 1em;
  11. height: 1em;
  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. body.is-dark-mode .planning-cell {
  76. background-color: #1e1e1e;
  77. color: #f5f5f5;
  78. }
  79. .planning-cell {
  80. display: flex;
  81. align-items: center;
  82. /*justify-content: center;*/
  83. height: 4rem;
  84. padding: 0.5rem;
  85. box-sizing: border-box;
  86. overflow: hidden;
  87. white-space: nowrap;
  88. text-overflow: ellipsis;
  89. /*background-color: #ffffff;*/
  90. font-size: 0.95rem;
  91. transition: background-color 0.2s ease;
  92. z-index: 0;
  93. }
  94. /* Header cells (e.g., "Espaces") */
  95. .planning-cell-heading {
  96. /* background-color: #00d1b2; /* Bulma primary */
  97. /* color: #ffffff;*/
  98. font-weight: 600;
  99. border-bottom: 1px solid #00b89c;
  100. z-index: 0;
  101. }
  102. /* Wide header cells (e.g., time columns) */
  103. .planning-cell-wide {
  104. background-color: #f5f5f5; /* Bulma grey-light */
  105. color: #363636;
  106. font-weight: 500;
  107. border-bottom: 1px solid #ccc;
  108. z-index: 0;
  109. }
  110. /* Free (available) slot */
  111. .planning-cell-free {
  112. background-color: #effaf5; /* Bulma success-light */
  113. color: #0f8763;
  114. border-bottom: 1px solid #ccc;
  115. z-index: 0;
  116. }
  117. .planning-cell-free:hover {
  118. background-color: #d0f0e6;
  119. }
  120. /* Locked slot */
  121. .planning-cell-locked {
  122. background-color: #dbdbdb; /* Bulma gray */
  123. color: #7a7a7a;
  124. border-bottom: 1px solid #ccc;
  125. z-index: 0;
  126. }
  127. /* Hidden slot */
  128. .planning-cell-hidden {
  129. background-color: transparent;
  130. color: transparent;
  131. border-bottom: 1px solid #ccc;
  132. z-index: 0;
  133. }
  134. .planning-cell-game-parent {
  135. position: relative;
  136. overflow: visible;
  137. border: none !important;
  138. z-index: 0 !important;
  139. }
  140. .planning-cell-game {
  141. border: solid 0.2rem transparent;
  142. background-color: transparent;
  143. width: 100%;
  144. color: black;
  145. position: absolute;
  146. top: 0rem;
  147. left: 0rem;
  148. z-index: 99 !important;
  149. white-space: normal;
  150. text-overflow: clip;
  151. overflow: hidden;
  152. }
  153. /* Optional: highlight on hover globally */
  154. .planning-cell:hover:not(.planning-cell-hidden):not(.planning-cell-heading):not(.planning-cell-wide):not(.planning-cell-game):not(.planning-cell-game-parent) {
  155. filter: brightness(0.98);
  156. }
  157. .planning-cell-game .card {
  158. /*border-left: solid 0.2rem blue;
  159. border-top: solid 0.2rem blue;*/
  160. background-color: hsl(204, 70%, 96%);
  161. padding: 0.2rem;
  162. overflow: hidden;
  163. }
  164. .planning-cell-game .card-header {
  165. border: none;
  166. box-shadow: none;
  167. }
  168. .planning-cell-game img {
  169. border: 1px solid white;
  170. }