Created
December 22, 2025 19:30
-
-
Save Klerith/ed01dbcdc3f6f237ec374bf2009e940e to your computer and use it in GitHub Desktop.
Estilos para la aplicación de partidos políticos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; | |
| line-height: 1.5; | |
| font-weight: 400; | |
| color-scheme: dark; | |
| color: rgba(255, 255, 255, 0.87); | |
| background-color: #242424; | |
| font-synthesis: none; | |
| text-rendering: optimizeLegibility; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| } | |
| body { | |
| margin: 0 2rem; | |
| min-height: 100vh; | |
| padding: 0; | |
| } | |
| .chart-container { | |
| max-width: 800px; | |
| margin: 2rem auto; | |
| } | |
| .chart-container h1 { | |
| text-align: center; | |
| margin-bottom: 2rem; | |
| } | |
| .chart-wrapper { | |
| background-color: #1a1a1a; | |
| padding: 1.5rem; | |
| border-radius: 12px; | |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); | |
| } | |
| /* Controls Section */ | |
| .controls-section { | |
| margin-top: 2rem; | |
| background-color: #1a1a1a; | |
| padding: 1.5rem; | |
| border-radius: 12px; | |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); | |
| } | |
| .controls-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 1.5rem; | |
| padding-bottom: 1rem; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .controls-header h2 { | |
| margin: 0; | |
| font-size: 1.2rem; | |
| color: rgba(255, 255, 255, 0.9); | |
| } | |
| /* Party List */ | |
| .party-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .party-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| padding: 0.75rem; | |
| background-color: rgba(255, 255, 255, 0.05); | |
| border-radius: 8px; | |
| transition: background-color 0.2s; | |
| } | |
| .party-item:hover { | |
| background-color: rgba(255, 255, 255, 0.08); | |
| } | |
| .party-color { | |
| width: 16px; | |
| height: 16px; | |
| border-radius: 4px; | |
| flex-shrink: 0; | |
| } | |
| .party-name-input { | |
| flex: 1; | |
| padding: 0.5rem 0.75rem; | |
| background-color: rgba(255, 255, 255, 0.1); | |
| border: 1px solid rgba(255, 255, 255, 0.2); | |
| border-radius: 6px; | |
| color: white; | |
| font-size: 0.95rem; | |
| transition: border-color 0.2s, background-color 0.2s; | |
| } | |
| .party-name-input:focus { | |
| outline: none; | |
| border-color: rgba(0, 123, 255, 0.6); | |
| background-color: rgba(255, 255, 255, 0.15); | |
| } | |
| /* Vote Controls */ | |
| .vote-controls { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .vote-count { | |
| min-width: 3rem; | |
| text-align: center; | |
| font-weight: 600; | |
| font-size: 1.1rem; | |
| color: rgba(255, 255, 255, 0.9); | |
| } | |
| .btn-vote { | |
| width: 32px; | |
| height: 32px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background-color: rgba(255, 255, 255, 0.1); | |
| border: 1px solid rgba(255, 255, 255, 0.2); | |
| border-radius: 6px; | |
| color: white; | |
| font-size: 1.2rem; | |
| cursor: pointer; | |
| transition: background-color 0.2s, transform 0.1s; | |
| } | |
| .btn-vote:hover { | |
| background-color: rgba(255, 255, 255, 0.2); | |
| } | |
| .btn-vote:active { | |
| transform: scale(0.95); | |
| } | |
| /* Buttons */ | |
| .btn-add { | |
| padding: 0.6rem 1rem; | |
| background-color: rgba(40, 167, 69, 0.2); | |
| border: 1px solid rgb(40, 167, 69); | |
| border-radius: 8px; | |
| color: rgb(40, 167, 69); | |
| font-size: 0.9rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: background-color 0.2s; | |
| } | |
| .btn-add:hover { | |
| background-color: rgba(40, 167, 69, 0.3); | |
| } | |
| .btn-remove { | |
| width: 32px; | |
| height: 32px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background-color: rgba(220, 53, 69, 0.1); | |
| border: 1px solid rgba(220, 53, 69, 0.5); | |
| border-radius: 6px; | |
| color: rgb(220, 53, 69); | |
| font-size: 0.9rem; | |
| cursor: pointer; | |
| transition: background-color 0.2s, opacity 0.2s; | |
| } | |
| .btn-remove:hover:not(:disabled) { | |
| background-color: rgba(220, 53, 69, 0.2); | |
| } | |
| .btn-remove:disabled { | |
| opacity: 0.3; | |
| cursor: not-allowed; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment