✨ (button): Añade Button::anchor() para navegación
- Renderiza un `<a href>` real con el aspecto de un botón, distinto del estilo puramente visual `button::Style::Link`. - Renombra `ButtonKind`/`ButtonStyle` a `Kind`/`Style`. - Añade `button::Size` (`button-sm`/`button-lg`).
This commit is contained in:
parent
434d31c5eb
commit
da959183f6
6 changed files with 229 additions and 67 deletions
|
|
@ -101,6 +101,7 @@ body {
|
|||
background-color: var(--val-color--primary);
|
||||
border: 1px solid var(--val-color--primary);
|
||||
border-radius: 0.375rem;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
|
||||
}
|
||||
|
|
@ -116,6 +117,15 @@ body {
|
|||
border: 0;
|
||||
}
|
||||
|
||||
.button-sm {
|
||||
padding: 0.25rem 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
.button-lg {
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.button-primary,
|
||||
.button-neutral,
|
||||
.button-success,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue