app.css 3.9 KB

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