Created
January 24, 2026 14:45
-
-
Save Klerith/2e01fc5b5a20a3656b133fc313bc6708 to your computer and use it in GitHub Desktop.
Formulario para el manejo 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
| :host { | |
| display: block; | |
| padding: 24px 0; | |
| } | |
| .party-config, | |
| .party-config *, | |
| .party-config *::before, | |
| .party-config *::after { | |
| box-sizing: border-box; | |
| } | |
| .party-config { | |
| padding: 22px 22px 18px; | |
| border-radius: 14px; | |
| background: linear-gradient(180deg, rgba(25, 25, 25, 0.62), rgba(22, 22, 22, 0.62)); | |
| box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05); | |
| backdrop-filter: blur(10px); | |
| } | |
| .party-config__header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 16px; | |
| } | |
| .party-config__title { | |
| margin: 0; | |
| font-size: 28px; | |
| font-weight: 800; | |
| letter-spacing: 0.2px; | |
| color: rgba(255, 255, 255, 0.92); | |
| } | |
| .party-config__add-button { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 10px 14px; | |
| border-radius: 12px; | |
| border: 2px solid rgba(62, 182, 90, 0.6); | |
| background: rgba(26, 65, 35, 0.35); | |
| color: rgba(114, 255, 155, 0.95); | |
| font-weight: 700; | |
| cursor: pointer; | |
| transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, | |
| transform 160ms ease; | |
| } | |
| .party-config__add-button:hover { | |
| border-color: rgba(62, 182, 90, 0.85); | |
| background: rgba(26, 65, 35, 0.5); | |
| } | |
| .party-config__add-button:active { | |
| transform: translateY(1px); | |
| } | |
| .party-config__add-button:focus-visible { | |
| outline: 3px solid rgba(114, 255, 155, 0.3); | |
| outline-offset: 2px; | |
| } | |
| .party-config__add-button-icon { | |
| display: grid; | |
| place-items: center; | |
| width: 20px; | |
| height: 20px; | |
| border-radius: 6px; | |
| border: 1px solid rgba(114, 255, 155, 0.5); | |
| line-height: 1; | |
| } | |
| .party-config__divider { | |
| margin: 16px 0 18px; | |
| height: 1px; | |
| border: 0; | |
| background: rgba(255, 255, 255, 0.08); | |
| } | |
| .party-config__list { | |
| display: grid; | |
| gap: 14px; | |
| margin: 0; | |
| padding: 0; | |
| list-style: none; | |
| } | |
| /*! chart-form-row */ | |
| .party-row { | |
| display: grid; | |
| grid-template-columns: 34px minmax(0, 1fr) auto; | |
| align-items: center; | |
| gap: 14px; | |
| padding: 14px; | |
| border-radius: 14px; | |
| background: rgba(255, 255, 255, 0.05); | |
| box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04); | |
| } | |
| .party-row__color { | |
| appearance: none; | |
| width: 22px; | |
| height: 22px; | |
| border-radius: 4px; | |
| border: 3px solid rgba(255, 255, 255, 0.25); | |
| background: transparent; | |
| cursor: pointer; | |
| } | |
| .party-row__color:focus-visible { | |
| outline: 3px solid rgba(255, 255, 255, 0.22); | |
| outline-offset: 3px; | |
| } | |
| .party-row__color--red { | |
| border-color: rgba(255, 93, 93, 0.85); | |
| } | |
| .party-row__color--blue { | |
| border-color: rgba(57, 140, 255, 0.9); | |
| } | |
| .party-row__color--green { | |
| border-color: rgba(80, 210, 120, 0.9); | |
| } | |
| .party-row__color--yellow { | |
| border-color: rgba(255, 207, 82, 0.9); | |
| } | |
| .party-row__color--orange { | |
| border-color: rgba(255, 157, 61, 0.9); | |
| } | |
| .party-row__name { | |
| min-width: 0; | |
| padding: 12px 14px; | |
| border-radius: 10px; | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| background: rgba(255, 255, 255, 0.06); | |
| color: rgba(255, 255, 255, 0.92); | |
| font-size: 18px; | |
| font-weight: 700; | |
| } | |
| .party-row__name::placeholder { | |
| color: rgba(255, 255, 255, 0.45); | |
| } | |
| .party-row__name:focus-visible { | |
| outline: 3px solid rgba(255, 255, 255, 0.18); | |
| outline-offset: 2px; | |
| } | |
| .party-row__controls { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .party-row__control-button, | |
| .party-row__delete-button { | |
| width: 44px; | |
| height: 44px; | |
| border-radius: 10px; | |
| border: 1px solid rgba(255, 255, 255, 0.12); | |
| background: rgba(255, 255, 255, 0.06); | |
| color: rgba(255, 255, 255, 0.9); | |
| font-size: 22px; | |
| font-weight: 800; | |
| line-height: 1; | |
| cursor: pointer; | |
| transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; | |
| } | |
| .party-row__control-button:hover { | |
| border-color: rgba(255, 255, 255, 0.2); | |
| background: rgba(255, 255, 255, 0.09); | |
| } | |
| .party-row__control-button:active { | |
| transform: translateY(1px); | |
| } | |
| .party-row__control-button:focus-visible, | |
| .party-row__delete-button:focus-visible { | |
| outline: 3px solid rgba(255, 255, 255, 0.18); | |
| outline-offset: 2px; | |
| } | |
| .party-row__value { | |
| min-width: 44px; | |
| text-align: center; | |
| font-size: 28px; | |
| font-weight: 800; | |
| color: rgba(255, 255, 255, 0.9); | |
| } | |
| .party-row__delete-button { | |
| border-color: rgba(255, 82, 82, 0.35); | |
| background: rgba(255, 82, 82, 0.08); | |
| color: rgba(255, 120, 120, 0.95); | |
| } | |
| .party-row__delete-button:hover { | |
| border-color: rgba(255, 82, 82, 0.55); | |
| background: rgba(255, 82, 82, 0.12); | |
| } | |
| @media (max-width: 720px) { | |
| .party-row { | |
| grid-template-columns: 34px 1fr; | |
| grid-template-rows: auto auto; | |
| align-items: start; | |
| } | |
| .party-row__controls { | |
| grid-column: 1 / -1; | |
| justify-content: flex-end; | |
| } | |
| } | |
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
| <section class="party-config" aria-label="Party configuration"> | |
| <header class="party-config__header"> | |
| <h2 class="party-config__title">Configuración de Partidos</h2> | |
| <button class="party-config__add-button" type="button"> | |
| <span class="party-config__add-button-icon" aria-hidden="true">+</span> | |
| Agregar Partido | |
| </button> | |
| </header> | |
| <hr class="party-config__divider" /> | |
| <ul class="party-config__list" aria-label="Parties"> | |
| <li class="party-row"> | |
| <input | |
| class="party-row__color party-row__color--red" | |
| type="checkbox" | |
| aria-label="Select Partido Rojo" | |
| /> | |
| <input class="party-row__name" type="text" value="Partido Rojo" aria-label="Party name" /> | |
| <div class="party-row__controls" aria-label="Party value controls"> | |
| <button class="party-row__control-button" type="button" aria-label="Decrease value"> | |
| <span aria-hidden="true">−</span> | |
| </button> | |
| <span class="party-row__value" aria-label="Current value">35</span> | |
| <button class="party-row__control-button" type="button" aria-label="Increase value"> | |
| <span aria-hidden="true">+</span> | |
| </button> | |
| <button class="party-row__delete-button" type="button" aria-label="Delete party"> | |
| <span aria-hidden="true">×</span> | |
| </button> | |
| </div> | |
| </li> | |
| <li class="party-row"> | |
| <input | |
| class="party-row__color party-row__color--blue" | |
| type="checkbox" | |
| aria-label="Select Partido Azul" | |
| /> | |
| <input class="party-row__name" type="text" value="Partido Azul" aria-label="Party name" /> | |
| <div class="party-row__controls" aria-label="Party value controls"> | |
| <button class="party-row__control-button" type="button" aria-label="Decrease value"> | |
| <span aria-hidden="true">−</span> | |
| </button> | |
| <span class="party-row__value" aria-label="Current value">42</span> | |
| <button class="party-row__control-button" type="button" aria-label="Increase value"> | |
| <span aria-hidden="true">+</span> | |
| </button> | |
| <button class="party-row__delete-button" type="button" aria-label="Delete party"> | |
| <span aria-hidden="true">×</span> | |
| </button> | |
| </div> | |
| </li> | |
| <li class="party-row"> | |
| <input | |
| class="party-row__color party-row__color--green" | |
| type="checkbox" | |
| aria-label="Select Partido Verde" | |
| /> | |
| <input class="party-row__name" type="text" value="Partido Verde" aria-label="Party name" /> | |
| <div class="party-row__controls" aria-label="Party value controls"> | |
| <button class="party-row__control-button" type="button" aria-label="Decrease value"> | |
| <span aria-hidden="true">−</span> | |
| </button> | |
| <span class="party-row__value" aria-label="Current value">28</span> | |
| <button class="party-row__control-button" type="button" aria-label="Increase value"> | |
| <span aria-hidden="true">+</span> | |
| </button> | |
| <button class="party-row__delete-button" type="button" aria-label="Delete party"> | |
| <span aria-hidden="true">×</span> | |
| </button> | |
| </div> | |
| </li> | |
| <li class="party-row"> | |
| <input | |
| class="party-row__color party-row__color--yellow" | |
| type="checkbox" | |
| aria-label="Select Partido Amarillo" | |
| /> | |
| <input class="party-row__name" type="text" value="Partido Amarillo" aria-label="Party name" /> | |
| <div class="party-row__controls" aria-label="Party value controls"> | |
| <button class="party-row__control-button" type="button" aria-label="Decrease value"> | |
| <span aria-hidden="true">−</span> | |
| </button> | |
| <span class="party-row__value" aria-label="Current value">23</span> | |
| <button class="party-row__control-button" type="button" aria-label="Increase value"> | |
| <span aria-hidden="true">+</span> | |
| </button> | |
| <button class="party-row__delete-button" type="button" aria-label="Delete party"> | |
| <span aria-hidden="true">×</span> | |
| </button> | |
| </div> | |
| </li> | |
| <li class="party-row"> | |
| <input | |
| class="party-row__color party-row__color--orange" | |
| type="checkbox" | |
| aria-label="Select Partido Naranja" | |
| /> | |
| <input class="party-row__name" type="text" value="Partido Naranja" aria-label="Party name" /> | |
| <div class="party-row__controls" aria-label="Party value controls"> | |
| <button class="party-row__control-button" type="button" aria-label="Decrease value"> | |
| <span aria-hidden="true">−</span> | |
| </button> | |
| <span class="party-row__value" aria-label="Current value">15</span> | |
| <button class="party-row__control-button" type="button" aria-label="Increase value"> | |
| <span aria-hidden="true">+</span> | |
| </button> | |
| <button class="party-row__delete-button" type="button" aria-label="Delete party"> | |
| <span aria-hidden="true">×</span> | |
| </button> | |
| </div> | |
| </li> | |
| </ul> | |
| </section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment