mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 03:24:20 +00:00
parent
c347de5805
commit
6115354ca8
4 changed files with 43 additions and 0 deletions
|
@ -1922,6 +1922,20 @@ Contents
|
|||
</form>
|
||||
</section>
|
||||
</div>
|
||||
<section class="panel box" id="panel-form-row">
|
||||
<h3>
|
||||
Row form
|
||||
</h3>
|
||||
<p>
|
||||
A <dfn id="dfn-form-row">row form</dfn> is a <b>block form</b> aligning elements to a single horizontal row.
|
||||
</p>
|
||||
<form class="panel form-row">
|
||||
<span>Login</span>
|
||||
<input type="text" placeholder="Username">
|
||||
<input type="password" placeholder="Password">
|
||||
<input type="submit" value="Login">
|
||||
</form>
|
||||
</section>
|
||||
</main>
|
||||
<footer>
|
||||
<p>
|
||||
|
|
|
@ -883,6 +883,29 @@
|
|||
}
|
||||
}
|
||||
|
||||
@{form-row} {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
> @{all} {
|
||||
flex-basis: 100%;
|
||||
flex-shrink: 1;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
> @{form-row-text} {
|
||||
flex-basis: unset;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 1;
|
||||
text-align: right;
|
||||
margin: auto 0;
|
||||
|
||||
.use-font-group(label);
|
||||
.map-hsl-group(current; primary);
|
||||
}
|
||||
}
|
||||
|
||||
//</editor-fold>
|
||||
|
||||
/// ===== Text =====
|
||||
|
|
|
@ -111,6 +111,9 @@
|
|||
@form-flex-content: ~":where(.form-flex-content)";
|
||||
@form-flex-choice: ~":where(.form-flex-choice)";
|
||||
|
||||
@form-row: ~":where(.form-row)";
|
||||
@form-row-text: ~":where(.form-row-text)";
|
||||
|
||||
@text-anchor: ~":where(.text-anchor)";
|
||||
@text-idiomatic: ~":where(.text-idiomatic)";
|
||||
@text-emphasis: ~":where(.text-emphasis)";
|
||||
|
|
|
@ -111,6 +111,9 @@
|
|||
@form-flex-content: ~':where(.form-flex-content, p)';
|
||||
@form-flex-choice: ~':where(.form-flex-choice, label)';
|
||||
|
||||
@form-row: ~":where(.form-row)";
|
||||
@form-row-text: ~":where(.form-row-text, span, label)";
|
||||
|
||||
@text-anchor: ~":where(a)";
|
||||
@text-idiomatic: ~":where(i)";
|
||||
@text-emphasis: ~":where(em)";
|
||||
|
|
Loading…
Reference in a new issue