styles.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. /* Styles pour Map Generator */
  2. /* Layout principal avec flexbox pour footer en bas */
  3. body {
  4. display: flex;
  5. flex-direction: column;
  6. min-height: 100vh;
  7. margin: 0;
  8. padding: 0;
  9. }
  10. #global-header {
  11. position: fixed;
  12. top: 0;
  13. left: 0;
  14. right: 0;
  15. z-index: 1030;
  16. }
  17. .sidebar {
  18. position: fixed;
  19. top: 56px; /* Hauteur de la navbar */
  20. left: 0;
  21. width: 250px;
  22. height: calc(100vh - 56px);
  23. background-color: #343a40;
  24. color: white;
  25. overflow-y: auto;
  26. z-index: 1000;
  27. }
  28. .main-content {
  29. margin-left: 250px;
  30. margin-top: 15px; /* Espace pour le header fixe + padding */
  31. padding-top: 20px;
  32. }
  33. /* Styles de la sidebar */
  34. .sidebar .nav-link {
  35. color: rgba(255, 255, 255, 0.75);
  36. padding: 10px 20px;
  37. }
  38. .sidebar .nav-link:hover {
  39. color: white;
  40. background-color: rgba(255, 255, 255, 0.1);
  41. }
  42. .sidebar .nav-link.active {
  43. color: white;
  44. background-color: #0d6efd;
  45. }
  46. .tool-group {
  47. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  48. margin-bottom: 10px;
  49. padding-bottom: 10px;
  50. }
  51. .tool-group h6 {
  52. color: rgba(255, 255, 255, 0.6);
  53. text-transform: uppercase;
  54. font-size: 0.8rem;
  55. margin: 15px 20px 5px 20px;
  56. }
  57. .canvas-container {
  58. position: relative;
  59. border-radius: 8px;
  60. overflow: hidden;
  61. }
  62. .tool-active {
  63. background-color: #0d6efd !important;
  64. color: white !important;
  65. }
  66. .color-swatch.selected {
  67. border: 2px solid white !important;
  68. }
  69. .layer-item {
  70. background-color: rgba(255, 255, 255, 0.05);
  71. border-radius: 4px;
  72. margin-bottom: 2px;
  73. }
  74. .layer-item:hover {
  75. background-color: rgba(255, 255, 255, 0.1);
  76. }
  77. /* Styles du footer */
  78. #global-footer .text-center {
  79. color: #343a40;
  80. font-size: small;
  81. }
  82. #global-footer {
  83. margin-left: 250px; /* Même marge que main-content */
  84. background-color: transparent;
  85. padding: 30px 0 20px 0;
  86. }
  87. /* Styles pour l'éditeur de carte */
  88. .map-editor-container {
  89. position: relative;
  90. }
  91. .map-toolbar {
  92. background-color: #f8f9fa;
  93. border: 1px solid #dee2e6;
  94. border-radius: 0.375rem;
  95. padding: 0.75rem;
  96. }
  97. .map-canvas-container {
  98. position: relative;
  99. border-radius: 0.375rem;
  100. }
  101. #mapCanvas {
  102. transform-origin: 0 0;
  103. transition: transform 0.1s ease-out;
  104. }
  105. .hexagon {
  106. transition: all 0.2s ease;
  107. user-select: none;
  108. }
  109. .hexagon:hover {
  110. transform: scale(1.05);
  111. }
  112. .hexagon.selected {
  113. box-shadow: 0 0 0 2px #2196f3;
  114. }
  115. /* Styles pour les informations de tuile */
  116. #tileInfo {
  117. border: 1px solid #dee2e6;
  118. }
  119. /* Animation de chargement */
  120. .spinner-border {
  121. width: 3rem;
  122. height: 3rem;
  123. }
  124. /* Styles pour les boutons de zoom */
  125. .btn-group .btn {
  126. border-radius: 0.25rem !important;
  127. }
  128. .btn-group .btn:not(:last-child) {
  129. border-top-right-radius: 0 !important;
  130. border-bottom-right-radius: 0 !important;
  131. }
  132. .btn-group .btn:not(:first-child) {
  133. border-top-left-radius: 0 !important;
  134. border-bottom-left-radius: 0 !important;
  135. }
  136. /* Responsive pour l'éditeur de carte */
  137. @media (max-width: 768px) {
  138. .sidebar {
  139. width: 100%;
  140. height: auto;
  141. position: relative;
  142. top: 0;
  143. }
  144. .main-content {
  145. margin-left: 0;
  146. margin-top: 15px;
  147. }
  148. #global-footer {
  149. margin-left: 0;
  150. }
  151. .map-toolbar {
  152. flex-direction: column;
  153. gap: 0.5rem;
  154. }
  155. .map-toolbar .d-flex {
  156. justify-content: center;
  157. }
  158. }