Compare commits

...

5 Commits

Author SHA1 Message Date
fba48603b6 Ye 2020-08-12 18:29:27 +02:00
16f0e10d89 Minor fix 2020-08-12 18:29:20 +02:00
e431d9a1a0 Form squishiness and Button layout 2020-08-12 18:29:08 +02:00
f9233249a3 Styled submit input 2020-08-12 18:28:47 +02:00
2e48395076 Neater cancle button 2020-08-12 18:28:37 +02:00
8 changed files with 180 additions and 49 deletions

View File

@ -5,6 +5,7 @@
padding: 8px 14px; padding: 8px 14px;
border-radius: 2px; border-radius: 2px;
font-weight: bold; font-weight: bold;
cursor: pointer;
&:active{ &:active{
background-color: $-wine-red; background-color: $-wine-red;
@ -12,6 +13,11 @@
} }
&--cancel{ &--cancel{
background-color: $-almost-white; background-color: $-grey;
color: $-almost-white;
&:active{
color: $-grey;
background-color: $-almost-white;
}
} }
} }

View File

@ -3,7 +3,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-bottom: -$-margin-bottom; margin-bottom: -$-margin-bottom;
padding: 10px 0; padding: 10px 0;
.LP-Input__Field{ .LP-Input__Field{
border: none; border: none;
@ -17,7 +17,23 @@
background-color: $-almost-white; background-color: $-almost-white;
border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0;
box-shadow: none; box-shadow: none;
} }
&[type=submit]{
background-color: $-light-brown;
color: $-grey;
border: none;
padding: 8px 14px;
border-radius: 2px;
font-weight: bold;
cursor: pointer;
&:active{
background-color: $-wine-red;
color:$-almost-white;
}
}
} }
.LP-Input__Label{ .LP-Input__Label{

View File

@ -1,6 +1,13 @@
.LP-Form{ .LP-Form{
display: flex;
flex-direction: column;
align-items: center;
.LP-Form__Fieldset{ .LP-Form__Fieldset{
border: none; border: none;
max-width: 1200px;
min-width: $-viewport-medium;
.LP-Form__Legend{ .LP-Form__Legend{
margin: 0; margin: 0;
@ -9,42 +16,72 @@
font-size: 21px; font-size: 21px;
} }
.LP-Form__Composition{ .LP-Form__Composition{
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
.LP-Form__Field{ .LP-Form__Field{
flex: 3 1 100px; flex: 3 2 100px;
padding: 6px 15px; padding: 6px 15px;
&--wider{ &--wider{
flex: 5 1; flex: 5 2;
} }
&--wide{ &--wide{
flex: 4 1; flex: 4 2;
} }
&--narrow{ &--narrow{
flex: 2 0; flex: 2 1;
} }
&--narrower{ &--narrower{
flex: 1 0; flex: 1 2;
} }
} }
&--buttons{
justify-content: flex-end;
}
.LP-Form__Button{
flex-grow: 0;
padding-left: 0;
min-width: 130px;
.LP-Link{
display:contents;
}
}
.LP-Form__InfoText{
.LP-Paragraph{
font-family: $-primary-sans-serif-font;
color: $-grey;
}
}
} }
} }
} }
@media(max-width: $-viewport-medium){
.LP-Form{
.LP-Form__Fieldset{
min-width: unset;
}
}
}
@media(max-width: $-viewport-small){ @media(max-width: $-viewport-small){
.LP-Form{ .LP-Form{
.LP-Form__Fieldset{ .LP-Form__Fieldset{
.LP-Form__Composition--breakable{ .LP-Form__Composition--breakable{
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
} }
} }
} }
@ -59,9 +96,20 @@
justify-content: space-between; justify-content: space-between;
.LP-Form__Field{ .LP-Form__Field{
flex: 3 1 100px;
padding: 12px 15px; &:not(.LP-Form__Button){
} flex: 3 1 100px;
padding: 12px 15px;
}
}
.LP-Form__Button{
padding: 0 15px;
}
&--buttons{
justify-content: flex-end;
}
} }
} }
} }

View File

@ -37,6 +37,12 @@
</div> </div>
</div> </div>
<div class="LP-Form__Composition">
<div class="LP-Form__Field LP-Form__InfoText">
<p class="LP-Paragraph">At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. </p>
</div>
</div>
<div class="LP-Form__Composition"> <div class="LP-Form__Composition">
<div class="LP-Form__Field LP-Form__Field--narrow LP-Input"> <div class="LP-Form__Field LP-Form__Field--narrow LP-Input">
<label for="input123" class="LP-Input__Label">Postal Code</label> <label for="input123" class="LP-Input__Label">Postal Code</label>
@ -48,5 +54,14 @@
</div> </div>
</div> </div>
<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__Button LP-Input LP-Input">
<button class="LP-Button LP-Button--cancel">Kenschäll</button>
</div>
</div>
</fieldset> </fieldset>
</form> </form>

View File

@ -26,7 +26,9 @@
width: 100%; width: 100%;
height: auto; height: auto;
margin: 0; margin: 0;
padding: 0; padding: 0;
margin-bottom: 25px;
} }
} }
} }

View File

@ -8,7 +8,7 @@
</header> </header>
<div class="LP-PlaceDetail__Description"> <div class="LP-PlaceDetail__Description">
{{> @paragraph text='Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.'}} {{> @paragraph text='Lorem ipsum dolor sit amet, '}}
</div> </div>
<section class="LP-Section"> <section class="LP-Section">

View File

@ -47,11 +47,12 @@ body{
.LP-Main{ .LP-Main{
display: table; display: table;
flex-direction: row-reverse; flex-direction: row-reverse;
height: calc(100% - 61px); height: calc(100% - 61px);
width: 100%;
.LP-Main__Content{ .LP-Main__Content{
display: table-cell; display: table-cell;
width: calc(100% -300px); width: calc(100% - 300px);
min-height: 1px; min-height: 1px;
padding: 25px; padding: 25px;
} }

View File

@ -18,10 +18,11 @@ body {
.LP-Main { .LP-Main {
display: table; display: table;
flex-direction: row-reverse; flex-direction: row-reverse;
height: calc(100% - 61px); } height: calc(100% - 61px);
width: 100%; }
.LP-Main .LP-Main__Content { .LP-Main .LP-Main__Content {
display: table-cell; display: table-cell;
width: calc(100% -300px); width: calc(100% - 300px);
min-height: 1px; min-height: 1px;
padding: 25px; } padding: 25px; }
.LP-Main .LP-Main__Sidebar { .LP-Main .LP-Main__Sidebar {
@ -99,12 +100,17 @@ body {
border: none; border: none;
padding: 8px 14px; padding: 8px 14px;
border-radius: 2px; border-radius: 2px;
font-weight: bold; } font-weight: bold;
cursor: pointer; }
.LP-Button:active { .LP-Button:active {
background-color: #76323F; background-color: #76323F;
color: #f9f9f9; } color: #f9f9f9; }
.LP-Button--cancel { .LP-Button--cancel {
background-color: #f9f9f9; } background-color: #565656;
color: #f9f9f9; }
.LP-Button--cancel:active {
color: #565656;
background-color: #f9f9f9; }
.LP-Form .LP-Form__Checkbox { .LP-Form .LP-Form__Checkbox {
display: none; } display: none; }
@ -132,6 +138,17 @@ body {
background-color: #f9f9f9; background-color: #f9f9f9;
border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0;
box-shadow: none; } box-shadow: none; }
.LP-Input .LP-Input__Field[type=submit] {
background-color: #C09F80;
color: #565656;
border: none;
padding: 8px 14px;
border-radius: 2px;
font-weight: bold;
cursor: pointer; }
.LP-Input .LP-Input__Field[type=submit]:active {
background-color: #76323F;
color: #f9f9f9; }
.LP-Input .LP-Input__Label { .LP-Input .LP-Input__Label {
font-family: Montserrat, Helvetica, sans-serif; font-family: Montserrat, Helvetica, sans-serif;
font-size: 16px; } font-size: 16px; }
@ -459,28 +476,49 @@ body {
.LP-Footer .LP-LinkList__List .LP-LinkList__Item .LP-Link:hover { .LP-Footer .LP-LinkList__List .LP-LinkList__Item .LP-Link:hover {
background-color: inherit; } background-color: inherit; }
.LP-Form .LP-Form__Fieldset { .LP-Form {
border: none; } display: flex;
.LP-Form .LP-Form__Fieldset .LP-Form__Legend { flex-direction: column;
margin: 0; align-items: center; }
padding: 0; .LP-Form .LP-Form__Fieldset {
font-family: Montserrat, Helvetica, sans-serif; border: none;
font-size: 21px; } max-width: 1200px;
.LP-Form .LP-Form__Fieldset .LP-Form__Composition { min-width: 750px; }
display: flex; .LP-Form .LP-Form__Fieldset .LP-Form__Legend {
flex-direction: row; margin: 0;
justify-content: space-between; } padding: 0;
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field { font-family: Montserrat, Helvetica, sans-serif;
flex: 3 1 100px; font-size: 21px; }
padding: 6px 15px; } .LP-Form .LP-Form__Fieldset .LP-Form__Composition {
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wider { display: flex;
flex: 5 1; } flex-direction: row;
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wide { justify-content: space-between; }
flex: 4 1; } .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field {
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrow { flex: 3 2 100px;
flex: 2 0; } padding: 6px 15px; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrower { .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wider {
flex: 1 0; } flex: 5 2; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wide {
flex: 4 2; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrow {
flex: 2 1; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrower {
flex: 1 2; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition--buttons {
justify-content: flex-end; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button {
flex-grow: 0;
padding-left: 0;
min-width: 130px; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button .LP-Link {
display: contents; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__InfoText .LP-Paragraph {
font-family: Montserrat, Helvetica, sans-serif;
color: #565656; }
@media (max-width: 750px) {
.LP-Form .LP-Form__Fieldset {
min-width: unset; } }
@media (max-width: 650px) { @media (max-width: 650px) {
.LP-Form .LP-Form__Fieldset .LP-Form__Composition--breakable { .LP-Form .LP-Form__Fieldset .LP-Form__Composition--breakable {
@ -493,9 +531,13 @@ body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; } justify-content: space-between; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field { .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field:not(.LP-Form__Button) {
flex: 3 1 100px; flex: 3 1 100px;
padding: 12px 15px; } } padding: 12px 15px; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button {
padding: 0 15px; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition--buttons {
justify-content: flex-end; } }
.LP-ImageGrid .LP-ImageGrid__List { .LP-ImageGrid .LP-ImageGrid__List {
list-style-type: none; list-style-type: none;
@ -558,4 +600,5 @@ body {
width: 100%; width: 100%;
height: auto; height: auto;
margin: 0; margin: 0;
padding: 0; } } padding: 0;
margin-bottom: 25px; } }