Changed interactive elements
also tried to define global margin variable
This commit is contained in:
parent
f97f76ee3d
commit
615e5df2d9
5 changed files with 54 additions and 33 deletions
|
|
@ -6,7 +6,7 @@ form {
|
|||
}
|
||||
|
||||
fieldset {
|
||||
margin: $basic_space 0;
|
||||
margin: $high_margin;
|
||||
padding: $basic_space;
|
||||
border: $basic_border;
|
||||
}
|
||||
|
|
@ -26,18 +26,35 @@ label {
|
|||
& + input {
|
||||
margin-left: $basic_space;
|
||||
}
|
||||
|
||||
input + & {
|
||||
margin-left: $basic_space;
|
||||
}
|
||||
|
||||
input {
|
||||
margin-left: $basic_space;
|
||||
}
|
||||
}
|
||||
|
||||
.input_default label {
|
||||
input {
|
||||
|
||||
}
|
||||
|
||||
.label__table {
|
||||
display: table;
|
||||
margin: $half_space 0;
|
||||
|
||||
input {
|
||||
display: table-cell;
|
||||
margin-left: $basic_space;
|
||||
}
|
||||
}
|
||||
|
||||
.input_default {
|
||||
|
||||
label {
|
||||
@extend .label__table;
|
||||
margin: $half_space 0;
|
||||
|
||||
input {
|
||||
padding: $half_space ($half_space + 1);
|
||||
border-style: solid;
|
||||
border-color: transparent;
|
||||
|
|
@ -50,9 +67,6 @@ label {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
// -----------------------------------------------------------------------------
|
||||
|
||||
table {
|
||||
margin-top: $space_2;
|
||||
margin-bottom: $space_2;
|
||||
margin: $high_margin;
|
||||
border: $basic_border;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
|
|
|||
15
example.css
15
example.css
|
|
@ -506,8 +506,7 @@ img {
|
|||
vertical-align: top; }
|
||||
|
||||
table {
|
||||
margin-top: 16px;
|
||||
margin-bottom: 16px;
|
||||
margin: calc(8px * 2) 0;
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse; }
|
||||
|
||||
|
|
@ -557,7 +556,7 @@ caption {
|
|||
text-align: center; }
|
||||
|
||||
fieldset {
|
||||
margin: 8px 0;
|
||||
margin: calc(8px * 2) 0;
|
||||
padding: 8px;
|
||||
border: 1px solid black; }
|
||||
|
||||
|
|
@ -568,13 +567,17 @@ label + input {
|
|||
margin-left: 8px; }
|
||||
input + label {
|
||||
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 {
|
||||
display: table;
|
||||
margin: 4px 0; }
|
||||
.input_default label input {
|
||||
display: table-cell;
|
||||
margin-left: 8px;
|
||||
padding: 4px 5px;
|
||||
border-style: solid;
|
||||
border-color: transparent;
|
||||
|
|
|
|||
18
example.html
18
example.html
|
|
@ -353,17 +353,19 @@
|
|||
<fieldset>
|
||||
<label for="demo__output">Beschriftung:</label><input type="text" readonly id="demo__output">
|
||||
</fieldset>
|
||||
<fieldset class="input_default">
|
||||
<p>Sie können mittels <code><legend></code> auch eine eigene Beschriftung erhalten.</p>
|
||||
<fieldset>
|
||||
<legend>Einfache Eingabefelder</legend>
|
||||
<label for="simple_txt">Einfache Texteingabe<input type="text" id="simple_txt" value="Text"/></label>
|
||||
<label for="simple_button">Einfacher Knopf<input type="button" id="simple_button" value="Knopf"/></label>
|
||||
<label>Texteingabe<input type="text" placeholder="Text"/></label>
|
||||
<label>Schaltfläche<input type="button" value="Senden"/></label>
|
||||
</fieldset>
|
||||
<fieldset class="input_default">
|
||||
<fieldset>
|
||||
<legend>Weitere Zeicheneingabefelder</legend>
|
||||
<p>Diese Eingabefelder sind zusätzlich aneinander ausgerichtet und gruppiert.</p>
|
||||
<label for="simple_date">Einfache Datumseingabe<input type="date" id="simple_date"/></label>
|
||||
<label for="simple_numer">Einfache Zahleneingabe<input type="number" id="simple_numer"/></label>
|
||||
<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>
|
||||
<pre class="pre__code"><code>ul>(li>label>input[type="text"])</code></pre>
|
||||
</fieldset>
|
||||
<label>Einfache Datumseingabe<input type="date"/></label>
|
||||
<label>Einfache Zahleneingabe<input type="number"/></label>
|
||||
<input type="checkbox"/>
|
||||
<input type="color"/>
|
||||
<input type="datetime"/>
|
||||
|
|
@ -415,7 +417,7 @@
|
|||
|
||||
<section class="sec__main_center">
|
||||
<header>
|
||||
<h1>Einzelene Elemente</h1>
|
||||
<h1>Einzelne Elemente</h1>
|
||||
</header>
|
||||
<article>
|
||||
<h2>Bereiche</h2>
|
||||
|
|
|
|||
|
|
@ -134,6 +134,9 @@ $space_4: $basic_space * 8;
|
|||
$space_5: $basic_space * 16;
|
||||
$tiny_space: 1px !default;
|
||||
|
||||
$basic_margin: $basic_space 0;
|
||||
$high_margin: calc(#{$basic_space} * 2) 0;
|
||||
|
||||
$basic_padding: calc(#{$basic_space} - 3px) $basic_space;
|
||||
$wide_padding: calc(#{$basic_space} - 1px) calc(#{$basic_space} * 2);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue