💄 Renueva los estilos de Basic y Bootsier
- Bootsier: paleta propia a partir del logotipo, campos rellenos con sombra al enfocar, fieldsets y mensajes con sombra en vez de borde, desplegables sin borde, migas con fondo y paginador adaptable. - Bootsier: quita la rejilla de Bootstrap (la maquetación es de Flex y Grid) y el container-fluid interior de la barra de navegación. - Basic: margen inferior en campos y bloques, padding lateral en el envoltorio de la página y paginador que se reparte en varias líneas. - Nuevo ejemplo theme-showcase con todos los componentes en los dos temas.
This commit is contained in:
parent
8761c50fbb
commit
d83f8b0f7f
14 changed files with 930 additions and 79 deletions
|
|
@ -17,6 +17,7 @@
|
|||
// Components, in alphabetical order. `buttons` must go before `dropdown` and `nav`, see the notes
|
||||
// in `basic/_buttons.scss`.
|
||||
@use "basic/badge";
|
||||
@use "basic/block";
|
||||
@use "basic/brand";
|
||||
@use "basic/breadcrumb";
|
||||
@use "basic/buttons";
|
||||
|
|
|
|||
|
|
@ -16,8 +16,10 @@ body {
|
|||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
// Header, Aside, Content and Footer are stacked in that order, using the full available width.
|
||||
// Header, Aside, Content and Footer are stacked in that order, using the full available width, with
|
||||
// side padding (the same as containers) so the content never touches the edges of the screen.
|
||||
.wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-inline: 1rem;
|
||||
}
|
||||
|
|
|
|||
4
assets/scss/basic/_block.scss
Normal file
4
assets/scss/basic/_block.scss
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// Space below each block, so consecutive blocks (and what follows them) do not sit right together.
|
||||
.block {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
|
@ -3,9 +3,17 @@
|
|||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
// Fields are spaced below, as in Bootsier, so the first one of a form or a fieldset starts right
|
||||
// at its top; the last one leaves no gap.
|
||||
.form-field {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.form-field:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
display: block;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.form-text {
|
||||
|
|
@ -25,7 +33,7 @@
|
|||
}
|
||||
|
||||
fieldset {
|
||||
margin: 2rem 0 1rem;
|
||||
margin: 0 0 1rem;
|
||||
background: var(--val-color--bg);
|
||||
}
|
||||
fieldset > legend {
|
||||
|
|
@ -42,10 +50,6 @@ fieldset > legend {
|
|||
min-height: 1.5rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
// A single checkbox has no label above it to give it room, as the other fields do.
|
||||
.form-field.form-check:not(.form-check-inline) {
|
||||
margin-top: 1em;
|
||||
}
|
||||
.form-check-inline {
|
||||
display: inline-grid;
|
||||
margin-right: 1rem;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
@use "breakpoints" as bp;
|
||||
|
||||
// No side padding, so the bar lines up with the rest of the page (fixed bars below get it back).
|
||||
.navbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.5rem 1rem;
|
||||
padding-block: 0.5rem;
|
||||
}
|
||||
|
||||
.navbar-toggle {
|
||||
|
|
@ -53,12 +54,14 @@
|
|||
.navbar.sticky-bottom {
|
||||
background-color: var(--val-color--bg);
|
||||
}
|
||||
// Fixed bars span the whole viewport, so they keep some side padding off its edges.
|
||||
.navbar.fixed-top,
|
||||
.navbar.fixed-bottom {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 1030;
|
||||
padding-inline: 1rem;
|
||||
}
|
||||
.navbar.fixed-top {
|
||||
top: 0;
|
||||
|
|
|
|||
|
|
@ -33,8 +33,10 @@
|
|||
margin-inline-end: 0;
|
||||
}
|
||||
|
||||
// Cells wrap onto more lines when they don't fit, so a long pager never gets wider than the screen.
|
||||
.pagination {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
list-style: none;
|
||||
|
|
@ -94,6 +96,11 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
// The page number is a form field: without the bottom margin fields take elsewhere, so it lines up
|
||||
// with the button.
|
||||
.pager-jump-input {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.pager-jump:focus-within {
|
||||
border-radius: 0.375rem;
|
||||
box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--val-color--primary) 25%, transparent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue