Compare commits

..

2 commits

Author SHA1 Message Date
3d23ba55d4 feat: New io module
- Add module for io
- Move common io parts to new module
2025-06-22 15:48:01 +02:00
c7179c7a3d feat: Add and rename common
- New size_io_button placeholder
- Remove variants of basic typo placeholder
2025-06-22 15:47:18 +02:00
7 changed files with 115 additions and 90 deletions

View file

@ -26,6 +26,7 @@
// Additional Modules and variables
// in dependency to other basic styles
// -----------------------------------------------------------------------------
@import "modules/io/io_module";
@import "modules/navigation/nav_module";
@import "modules/editor/editor_module";
@import "modules/explanation/explanation_module";

View file

@ -154,7 +154,7 @@ button {
}
.button_io {
@extend %basic_button;
@extend %basic;
border: $width_border_io solid $color_border_button;
padding: $padding_basic;
color: $color_text_button;
@ -164,7 +164,7 @@ button {
// border-color: #0059F6;
border-color: transparent;
color: white;
background-color: $foxtrot_color;
background-color: $color_action_basic;
}
&[disabled="disabled"],
@ -179,7 +179,7 @@ button {
}
.button_clear {
@extend %basic_button;
@extend %basic;
padding: 0;
border: 0;
background-color: transparent;

View file

@ -144,6 +144,18 @@ aside {
button {
@extend .button_io;
}
.a_button {
display: flex;
}
ul.vertical li {
margin-bottom: $space_half;
.a_button > *:last-child {
margin-left: auto;
}
}
}
}
@ -203,7 +215,33 @@ h6 {
// Header
// -----------------------------------------------------------------------------
header {}
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:last-child {
margin-left: auto;
}
h1 {
margin: 0;
}
}
}
.header_page {
overflow: auto;
@ -218,84 +256,8 @@ header {}
}
}
header,
aside,
footer {
&.io {
.span_solo {
border: $width_border_io solid transparent;
padding: $padding_basic;
}
}
}
header // Footer
header.io,
aside.io {
padding: $space_basic;
input,
button,
textarea,
select {
margin-inline: $space_half;
}
input {
@extend .input_io;
}
textarea {
@extend .io_textarea;
}
select {
@extend .io_select;
}
button {
@extend .button_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 {
&.io {

View file

@ -276,7 +276,7 @@ span {
}
.span_solo {
@extend %solo;
@extend %basic;
}
// Linebreaks

View file

@ -20,6 +20,11 @@
}
}
%size_io_button {
border: $width_border_io solid transparent;
padding: $padding_basic;
}
.di_none {
display: none !important;
}

View file

@ -44,14 +44,6 @@
font-weight: 300;
}
%basic_button {
@extend %basic;
}
%solo {
@extend %basic;
}
%short {
overflow: hidden;
text-overflow: ellipsis;

View file

@ -0,0 +1,65 @@
header,
aside,
footer {
&.io {
nav li {
margin: 0;
}
nav > div:not(.spacer),
nav > span,
.a_button {
@extend %basic;
@extend %size_io_button;
}
.a_button {
color: $color_text_io;
background-color: $color_back_io;
&:active,
&:focus,
&:hover {
background-color: transparentize($color_highlight_basic, 0.8);
}
}
}
}
header,
aside {
&.io {
padding: $space_basic;
input,
button,
textarea,
select {
margin-inline: $space_half;
}
input {
@extend .input_io;
}
textarea {
@extend .io_textarea;
}
select {
@extend .io_select;
}
button {
@extend .button_io;
}
}
}
header,
footer {
&.io {
@extend %flex-inline;
align-items: stretch;
}
}