Inline Forms
This commit is contained in:
@@ -1,5 +1,31 @@
|
||||
.LP-Form{
|
||||
|
||||
&--inline {
|
||||
.LP-Form__Legend, .LP-Input__Label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.LP-Form__Button {
|
||||
@include RV-FlexRow__Item--fixedSize(max-content);
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.LP-Form--inline){
|
||||
.LP-Form__Composition {
|
||||
@media(max-width: $-viewport-extra-small){
|
||||
@include RV-FlexRow__Container--multiRow;
|
||||
}
|
||||
}
|
||||
|
||||
.LP-Form__Button {
|
||||
@include RV-FlexRow__Item--fixedSize(130px);
|
||||
|
||||
@media(max-width: $-viewport-extra-small) {
|
||||
@include RV-FlexRow__Item--fixedSize(100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.LP-Form__Fieldset{
|
||||
@include RV-Reset;
|
||||
max-width: 1200px;
|
||||
@@ -27,10 +53,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: $-viewport-extra-small){
|
||||
@include RV-FlexRow__Container--multiRow;
|
||||
}
|
||||
|
||||
&--buttons{
|
||||
justify-content: flex-end;
|
||||
@include RV-Spacing__Inner--small;
|
||||
@@ -40,14 +62,6 @@
|
||||
.LP-Form__Field{
|
||||
@include RV-FlexRow__Item;
|
||||
}
|
||||
|
||||
.LP-Form__Button{
|
||||
@include RV-FlexRow__Item--fixedSize(130px);
|
||||
|
||||
@media(max-width: $-viewport-extra-small) {
|
||||
@include RV-FlexRow__Item--fixedSize(100%);
|
||||
}
|
||||
}
|
||||
|
||||
.LP-Form__InfoText{
|
||||
.LP-Paragraph{
|
||||
|
@@ -1,3 +1,23 @@
|
||||
|
||||
<form class="LP-Form LP-Form--inline">
|
||||
<fieldset class="LP-Form__Fieldset">
|
||||
<legend class="LP-Form__Legend">Basic data</legend>
|
||||
<div class="LP-Form__Composition LP-Form__Composition--buttons">
|
||||
<div class="LP-Form__Field LP-Form__Button LP-Input">
|
||||
<input type="submit" class="LP-Button" value="Submit"/>
|
||||
</div>
|
||||
<div class="LP-Form__Field LP-Form__Field--narrower">
|
||||
<div class="LP-Input LP-Input--disabled">
|
||||
<label for="input123" class="LP-Input__Label">Age</label>
|
||||
<input type="text" id="input123" class="LP-Input__Field" disabled="disabled"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
<form class="LP-Form">
|
||||
<fieldset class="LP-Form__Fieldset">
|
||||
<legend class="LP-Form__Legend">Basic data</legend>
|
||||
@@ -63,22 +83,5 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
<form class="LP-Form">
|
||||
<fieldset class="LP-Form__Fieldset">
|
||||
<div class="LP-Form__Composition LP-Form__Composition--buttons">
|
||||
<div class="LP-Form__Field LP-Form__Button LP-Input">
|
||||
<input type="submit" class="LP-Button" value="Submit"/>
|
||||
</div>
|
||||
<div class="LP-Form__Field LP-Form__Field--narrower">
|
||||
<div class="LP-Input">
|
||||
<input type="text" id="input123" class="LP-Input__Field"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
Reference in New Issue
Block a user