| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- /* Styles pour Map Generator */
- /* Layout principal avec flexbox pour footer en bas */
- body {
- display: flex;
- flex-direction: column;
- min-height: 100vh;
- margin: 0;
- padding: 0;
- }
- #global-header {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- z-index: 1030;
- }
- .sidebar {
- position: fixed;
- top: 56px; /* Hauteur de la navbar */
- left: 0;
- width: 250px;
- height: calc(100vh - 56px);
- background-color: #343a40;
- color: white;
- overflow-y: auto;
- z-index: 1000;
- }
- .main-content {
- margin-left: 250px;
- margin-top: 15px; /* Espace pour le header fixe + padding */
- padding-top: 20px;
- }
- /* Styles de la sidebar */
- .sidebar .nav-link {
- color: rgba(255, 255, 255, 0.75);
- padding: 10px 20px;
- }
- .sidebar .nav-link:hover {
- color: white;
- background-color: rgba(255, 255, 255, 0.1);
- }
- .sidebar .nav-link.active {
- color: white;
- background-color: #0d6efd;
- }
- .tool-group {
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
- margin-bottom: 10px;
- padding-bottom: 10px;
- }
- .tool-group h6 {
- color: rgba(255, 255, 255, 0.6);
- text-transform: uppercase;
- font-size: 0.8rem;
- margin: 15px 20px 5px 20px;
- }
- .canvas-container {
- position: relative;
- border-radius: 8px;
- overflow: hidden;
- }
- .tool-active {
- background-color: #0d6efd !important;
- color: white !important;
- }
- .color-swatch.selected {
- border: 2px solid white !important;
- }
- .layer-item {
- background-color: rgba(255, 255, 255, 0.05);
- border-radius: 4px;
- margin-bottom: 2px;
- }
- .layer-item:hover {
- background-color: rgba(255, 255, 255, 0.1);
- }
- /* Styles du footer */
- #global-footer .text-center {
- color: #343a40;
- font-size: small;
- }
- #global-footer {
- margin-left: 250px; /* Même marge que main-content */
- background-color: transparent;
- padding: 30px 0 20px 0;
- }
- /* Styles pour l'éditeur de carte */
- .map-editor-container {
- position: relative;
- }
- .map-toolbar {
- background-color: #f8f9fa;
- border: 1px solid #dee2e6;
- border-radius: 0.375rem;
- padding: 0.75rem;
- }
- .map-canvas-container {
- position: relative;
- border-radius: 0.375rem;
- }
- #mapCanvas {
- transform-origin: 0 0;
- transition: transform 0.1s ease-out;
- }
- .hexagon {
- transition: all 0.2s ease;
- user-select: none;
- }
- .hexagon:hover {
- transform: scale(1.05);
- }
- .hexagon.selected {
- box-shadow: 0 0 0 2px #2196f3;
- }
- /* Styles pour les informations de tuile */
- #tileInfo {
- border: 1px solid #dee2e6;
- }
- /* Animation de chargement */
- .spinner-border {
- width: 3rem;
- height: 3rem;
- }
- /* Styles pour les boutons de zoom */
- .btn-group .btn {
- border-radius: 0.25rem !important;
- }
- .btn-group .btn:not(:last-child) {
- border-top-right-radius: 0 !important;
- border-bottom-right-radius: 0 !important;
- }
- .btn-group .btn:not(:first-child) {
- border-top-left-radius: 0 !important;
- border-bottom-left-radius: 0 !important;
- }
- /* Responsive pour l'éditeur de carte */
- @media (max-width: 768px) {
- .sidebar {
- width: 100%;
- height: auto;
- position: relative;
- top: 0;
- }
-
- .main-content {
- margin-left: 0;
- margin-top: 15px;
- }
-
- #global-footer {
- margin-left: 0;
- }
-
- .map-toolbar {
- flex-direction: column;
- gap: 0.5rem;
- }
-
- .map-toolbar .d-flex {
- justify-content: center;
- }
- }
|