10 years later #1

Merged
sthag merged 374 commits from development into main 2026-03-07 00:18:59 +01:00
5 changed files with 54 additions and 33 deletions
Showing only changes of commit 615e5df2d9 - Show all commits

View file

@ -6,7 +6,7 @@ form {
} }
fieldset { fieldset {
margin: $basic_space 0; margin: $high_margin;
padding: $basic_space; padding: $basic_space;
border: $basic_border; border: $basic_border;
} }
@ -26,18 +26,35 @@ label {
& + input { & + input {
margin-left: $basic_space; margin-left: $basic_space;
} }
input + & { input + & {
margin-left: $basic_space; margin-left: $basic_space;
} }
input {
margin-left: $basic_space;
}
} }
.input_default label { input {
}
.label__table {
display: table; display: table;
margin: $half_space 0;
input { input {
display: table-cell; display: table-cell;
margin-left: $basic_space; }
}
.input_default {
label {
@extend .label__table;
margin: $half_space 0;
input {
padding: $half_space ($half_space + 1); padding: $half_space ($half_space + 1);
border-style: solid; border-style: solid;
border-color: transparent; border-color: transparent;
@ -50,9 +67,6 @@ label {
} }
} }
} }
input {
} }

View file

@ -2,8 +2,7 @@
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
table { table {
margin-top: $space_2; margin: $high_margin;
margin-bottom: $space_2;
border: $basic_border; border: $basic_border;
border-collapse: collapse; border-collapse: collapse;
} }

View file

@ -506,8 +506,7 @@ img {
vertical-align: top; } vertical-align: top; }
table { table {
margin-top: 16px; margin: calc(8px * 2) 0;
margin-bottom: 16px;
border: 1px solid black; border: 1px solid black;
border-collapse: collapse; } border-collapse: collapse; }
@ -557,7 +556,7 @@ caption {
text-align: center; } text-align: center; }
fieldset { fieldset {
margin: 8px 0; margin: calc(8px * 2) 0;
padding: 8px; padding: 8px;
border: 1px solid black; } border: 1px solid black; }
@ -568,13 +567,17 @@ label + input {
margin-left: 8px; } margin-left: 8px; }
input + label { input + label {
margin-left: 8px; } margin-left: 8px; }
label input {
margin-left: 8px; }
.label__table, .input_default label {
display: table; }
.label__table input, .input_default label input {
display: table-cell; }
.input_default label { .input_default label {
display: table;
margin: 4px 0; } margin: 4px 0; }
.input_default label input { .input_default label input {
display: table-cell;
margin-left: 8px;
padding: 4px 5px; padding: 4px 5px;
border-style: solid; border-style: solid;
border-color: transparent; border-color: transparent;

View file

@ -353,17 +353,19 @@
<fieldset> <fieldset>
<label for="demo__output">Beschriftung:</label><input type="text" readonly id="demo__output"> <label for="demo__output">Beschriftung:</label><input type="text" readonly id="demo__output">
</fieldset> </fieldset>
<fieldset class="input_default"> <p>Sie können mittels <code>&lt;legend&gt;</code> auch eine eigene Beschriftung erhalten.</p>
<fieldset>
<legend>Einfache Eingabefelder</legend> <legend>Einfache Eingabefelder</legend>
<label for="simple_txt">Einfache Texteingabe<input type="text" id="simple_txt" value="Text"/></label> <label>Texteingabe<input type="text" placeholder="Text"/></label>
<label for="simple_button">Einfacher Knopf<input type="button" id="simple_button" value="Knopf"/></label> <label>Schaltfläche<input type="button" value="Senden"/></label>
</fieldset> </fieldset>
<fieldset class="input_default"> <fieldset>
<legend>Weitere Zeicheneingabefelder</legend> <legend>Weitere Zeicheneingabefelder</legend>
<p>Diese Eingabefelder sind zusätzlich aneinander ausgerichtet und gruppiert.</p> <p>Innerhalb einer Gruppe können nicht nur Ein- und Ausgabefelder platziert werden. Andere Elemente ergänzen Information oder lockern das Erscheinungsbild auf. Hier nun eine Liste aller möglichen Arten von Eingabefeldern.</p>
<label for="simple_date">Einfache Datumseingabe<input type="date" id="simple_date"/></label> <pre class="pre__code"><code>ul>(li>label>input[type="text"])</code></pre>
<label for="simple_numer">Einfache Zahleneingabe<input type="number" id="simple_numer"/></label>
</fieldset> </fieldset>
<label>Einfache Datumseingabe<input type="date"/></label>
<label>Einfache Zahleneingabe<input type="number"/></label>
<input type="checkbox"/> <input type="checkbox"/>
<input type="color"/> <input type="color"/>
<input type="datetime"/> <input type="datetime"/>
@ -415,7 +417,7 @@
<section class="sec__main_center"> <section class="sec__main_center">
<header> <header>
<h1>Einzelene Elemente</h1> <h1>Einzelne Elemente</h1>
</header> </header>
<article> <article>
<h2>Bereiche</h2> <h2>Bereiche</h2>

View file

@ -134,6 +134,9 @@ $space_4: $basic_space * 8;
$space_5: $basic_space * 16; $space_5: $basic_space * 16;
$tiny_space: 1px !default; $tiny_space: 1px !default;
$basic_margin: $basic_space 0;
$high_margin: calc(#{$basic_space} * 2) 0;
$basic_padding: calc(#{$basic_space} - 3px) $basic_space; $basic_padding: calc(#{$basic_space} - 3px) $basic_space;
$wide_padding: calc(#{$basic_space} - 1px) calc(#{$basic_space} * 2); $wide_padding: calc(#{$basic_space} - 1px) calc(#{$basic_space} * 2);