feat: Changes to io
Keyword "io" now has many more usage scenarios. - Default margin for io now 0 - New config value for inline element margin - Rename first classes - Io classes integrated to sections and groups
This commit is contained in:
parent
1a3c25d8b5
commit
2f63dbe2b6
3 changed files with 121 additions and 8 deletions
|
|
@ -57,7 +57,7 @@ label + input {
|
||||||
}
|
}
|
||||||
|
|
||||||
input, button, textarea, select {
|
input, button, textarea, select {
|
||||||
margin: $margin_io;
|
margin: $margin_inline;
|
||||||
|
|
||||||
&[disabled="disabled"],
|
&[disabled="disabled"],
|
||||||
&[disabled] {
|
&[disabled] {
|
||||||
|
|
@ -79,6 +79,10 @@ td > textarea {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.input_io, .button_io, .io_textarea, .io_select {
|
||||||
|
margin: $margin_io;
|
||||||
|
}
|
||||||
|
|
||||||
.input_io, .io_textarea, .io_select {
|
.input_io, .io_textarea, .io_select {
|
||||||
padding: $space_half;
|
padding: $space_half;
|
||||||
color: $color_text_io;
|
color: $color_text_io;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
@use "sass:map";
|
||||||
|
|
||||||
// Root
|
// Root
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
html {
|
html {
|
||||||
|
|
@ -81,7 +83,16 @@ section {}
|
||||||
|
|
||||||
// Navigation
|
// Navigation
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
nav {}
|
nav {
|
||||||
|
|
||||||
|
ul {
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
&.inline li {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Aside element
|
// Aside element
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
@ -107,6 +118,33 @@ aside {
|
||||||
*:first-child {
|
*:first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.io {
|
||||||
|
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
select,
|
||||||
|
button {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
@extend .input_io;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
@extend .io_textarea;
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
@extend .io_select;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
@extend .button_io;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Headings
|
// Headings
|
||||||
|
|
@ -180,12 +218,26 @@ header {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
header.io {
|
header,
|
||||||
z-index: map.get($z-indexes, "content-top");
|
aside,
|
||||||
|
footer {
|
||||||
|
&.io {
|
||||||
|
.span_solo {
|
||||||
|
border: $width_border_io solid transparent;
|
||||||
|
padding: $padding_basic;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
header.io,
|
||||||
|
aside.io {
|
||||||
padding: $space_basic;
|
padding: $space_basic;
|
||||||
|
|
||||||
h1 {
|
input,
|
||||||
margin: 0;
|
button,
|
||||||
|
textarea,
|
||||||
|
select {
|
||||||
|
margin-inline: $space_half;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
|
@ -205,6 +257,62 @@ header.io {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header,
|
||||||
|
footer {
|
||||||
|
&.io {
|
||||||
|
@extend %flex-inline;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
header.io {
|
||||||
|
z-index: map.get($z-indexes, "content-top");
|
||||||
|
|
||||||
|
&>*:last-child *:last-child {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&>*:first-child *:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav,
|
||||||
|
ul {
|
||||||
|
@extend %flex-inline;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav li {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav:last-child {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Footer
|
// Footer
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
footer {}
|
footer {
|
||||||
|
&.io {
|
||||||
|
input {
|
||||||
|
@extend .input_io;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
@extend .io_textarea;
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
@extend .io_select;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
@extend .button_io;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -142,7 +142,8 @@ $space_large: $space_basic * 16;
|
||||||
|
|
||||||
$margin_basic: $space_basic 0 !default;
|
$margin_basic: $space_basic 0 !default;
|
||||||
$margin_double: $space_double 0 !default;
|
$margin_double: $space_double 0 !default;
|
||||||
$margin_io: 0 $space_small 0 0 !default;
|
$margin_inline: 0 $space_double 0 0 !default;
|
||||||
|
$margin_io: 0 !default;
|
||||||
|
|
||||||
$padding_basic: calc(#{$space_basic} - 3px) $space_basic !default;
|
$padding_basic: calc(#{$space_basic} - 3px) $space_basic !default;
|
||||||
$padding_link: calc(#{$space_basic} - 1px) calc(#{$space_basic} * 2) !default;
|
$padding_link: calc(#{$space_basic} - 1px) calc(#{$space_basic} * 2) !default;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue