app.css 3.4 KB

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