|
| 1 | +/* canvas-container.css */ |
| 2 | + |
| 3 | +/* Styles for the main canvas container */ |
| 4 | +.canvas-container { |
| 5 | + flex: 1; /* Fills the remaining space in the layout */ |
| 6 | + display: flex; /* Uses flexbox to organize content */ |
| 7 | + position: relative; /* Positions elements relative to the container */ |
| 8 | + background-color: #a09f9f; /* Light gray background for the canvas area */ |
| 9 | +} |
| 10 | + |
| 11 | +/* Estilo del selector compacto y minimalista */ |
| 12 | +#layer-select { |
| 13 | + position: absolute; /* Permite colocarlo sobre el canvas */ |
| 14 | + top: 10px; /* Separación desde el borde superior */ |
| 15 | + right: 10px; /* Separación desde el borde derecho */ |
| 16 | + width: 160px; /* Reduce el ancho para un diseño más compacto */ |
| 17 | + height: 30px; /* Altura más proporcional */ |
| 18 | + padding: 0 15px; /* Espaciado horizontal más preciso */ |
| 19 | + font-size: 14px; /* Tamaño del texto ajustado */ |
| 20 | + font-family: "Arial", sans-serif; /* Fuente limpia y moderna */ |
| 21 | + color: #ffffff; /* Texto blanco */ |
| 22 | + background-color: #333333; /* Fondo oscuro elegante */ |
| 23 | + border: 1px solid #666666; /* Borde gris */ |
| 24 | + border-radius: 6px; /* Bordes ligeramente redondeados */ |
| 25 | + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Sombra suave */ |
| 26 | + cursor: pointer; /* Cursor interactivo */ |
| 27 | + transition: all 0.3s ease; /* Transiciones suaves */ |
| 28 | + appearance: none; /* Oculta el estilo nativo */ |
| 29 | + background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iNSIgdmlld0JveD0iMCAwIDEwIDUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEgMUw1IDRMMTAgMUgxWiIgZmlsbD0iI0NDQ0NDQyIvPjwvc3ZnPg=="); /* Flecha personalizada en gris */ |
| 30 | + background-repeat: no-repeat; /* Evita repetir la flecha */ |
| 31 | + background-position: right 10px center; /* Coloca la flecha a la derecha */ |
| 32 | + background-size: 10px; /* Tamaño proporcional de la flecha */ |
| 33 | +} |
| 34 | + |
| 35 | +/* Hover en el selector */ |
| 36 | +#layer-select:hover { |
| 37 | + background-color: #444444; /* Fondo ligeramente más claro */ |
| 38 | + border-color: #888888; /* Gris más claro */ |
| 39 | + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); /* Sombra más pronunciada */ |
| 40 | +} |
| 41 | + |
| 42 | +/* Focus en el selector */ |
| 43 | +#layer-select:focus { |
| 44 | + outline: none; /* Elimina el contorno predeterminado */ |
| 45 | + box-shadow: 0 0 8px 2px rgba(136, 136, 136, 0.5); /* Resplandor gris */ |
| 46 | +} |
| 47 | + |
| 48 | +/* Opciones del desplegable */ |
| 49 | +#layer-select option { |
| 50 | + font-size: 13px; /* Texto más compacto */ |
| 51 | + color: #ffffff; /* Texto blanco */ |
| 52 | + background-color: #292b2c; /* Fondo oscuro para las opciones */ |
| 53 | + border: none; /* Sin bordes */ |
| 54 | + padding: 5px; /* Espaciado interno ajustado */ |
| 55 | + cursor: pointer; /* Interactividad */ |
| 56 | +} |
| 57 | + |
| 58 | +/* Hover en las opciones del desplegable */ |
| 59 | +#layer-select option:hover { |
| 60 | + background-color: #444444; /* Fondo más claro en hover */ |
| 61 | + color: #ffffff; /* Mantiene el texto blanco */ |
| 62 | +} |
| 63 | + |
| 64 | +/* Pause button styles */ |
| 65 | +.pause-button { |
| 66 | + background-color: #228b22; /* Forest green background */ |
| 67 | + color: #ffffff; /* White text */ |
| 68 | + border: 2px solid #000000; /* Borde verde oscuro */ |
| 69 | + padding: 0; /* No internal padding */ |
| 70 | + cursor: pointer; /* Changes cursor to pointer on hover */ |
| 71 | + width: 45px; /* Fixed width for the circular button */ |
| 72 | + height: 45px; /* Fixed height for the circular button */ |
| 73 | + border-radius: 50%; /* Makes the button circular */ |
| 74 | + display: flex; /* Uses flexbox for centering */ |
| 75 | + align-items: center; /* Vertically centers content */ |
| 76 | + justify-content: center; /* Horizontally centers content */ |
| 77 | + transition: background-color 0.3s ease; /* Smooth color transition */ |
| 78 | + position: absolute; /* Permite colocarlo sobre el canvas */ |
| 79 | + top: 10px; /* Separación desde el borde superior */ |
| 80 | + left: 15px; /* Separación desde el borde derecho */ |
| 81 | +} |
| 82 | + |
| 83 | +/* Hover effect for pause button */ |
| 84 | +.pause-button:hover { |
| 85 | + background-color: #006400; /* Darker forest green on hover */ |
| 86 | +} |
| 87 | + |
| 88 | +/* Icon inside the pause button */ |
| 89 | +.pause-button img { |
| 90 | + width: 60%; /* Scales the icon to fit the button */ |
| 91 | + height: 60%; /* Scales the icon to fit the button */ |
| 92 | +} |
0 commit comments