lostplaces-frontend/components/03_Organisms/form/_form.scss

134 lines
2.2 KiB
SCSS
Raw Normal View History

2020-07-31 16:54:59 +02:00
.LP-Form{
flex-direction: column;
align-items: center;
2020-08-12 18:29:08 +02:00
2020-08-21 12:08:51 +02:00
&--inline{
padding: 0 10px;
.LP-Form__Fieldset{
.LP-Form__Composition{
gap: 10px;
}
}
}
2020-07-31 16:54:59 +02:00
.LP-Form__Fieldset{
border: none;
2020-08-21 12:08:51 +02:00
padding: 0;
margin: 0;
max-width: 1200px;
min-width: $-viewport-medium;
2020-07-31 16:54:59 +02:00
.LP-Form__Legend{
margin: 0;
padding: 0;
font-family: $-primary-sans-serif-font;
font-size: 21px;
2020-07-31 16:54:59 +02:00
}
2020-08-21 12:08:51 +02:00
}
.LP-Form__Composition{
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 30px;
2020-08-12 18:29:08 +02:00
2020-08-21 12:08:51 +02:00
&--buttons{
gap: 10px;
}
.LP-Form__Field{
flex: 3 2 100px;
padding: 6px 0;
2020-07-31 16:54:59 +02:00
2020-08-21 12:08:51 +02:00
&--wider{
flex: 5 2;
}
2020-07-31 16:54:59 +02:00
2020-08-21 12:08:51 +02:00
&--wide{
flex: 4 2;
}
2020-07-31 16:54:59 +02:00
2020-08-21 12:08:51 +02:00
&--narrow{
flex: 2 1;
}
2020-07-31 16:54:59 +02:00
2020-08-21 12:08:51 +02:00
&--narrower{
flex: 1 2;
}
&--static{
flex: 0 0;
}
}
2020-08-12 18:29:08 +02:00
2020-08-21 12:08:51 +02:00
&--buttons{
justify-content: flex-end;
}
2020-08-12 18:29:08 +02:00
2020-08-21 12:08:51 +02:00
.LP-Form__Button{
flex-grow: 0;
padding-left: 0;
min-width: 130px;
2020-08-12 18:29:08 +02:00
2020-08-21 12:08:51 +02:00
.LP-Link{
display:contents;
}
}
.LP-Form__InfoText{
.LP-Paragraph{
font-family: $-primary-sans-serif-font;
color: $-grey;
}
}
}
2020-07-31 16:54:59 +02:00
}
2020-08-12 18:29:08 +02:00
@media(max-width: $-viewport-medium){
.LP-Form{
.LP-Form__Fieldset{
min-width: unset;
}
2020-08-12 18:29:08 +02:00
}
}
2020-07-31 16:54:59 +02:00
@media(max-width: $-viewport-small){
.LP-Form{
.LP-Form__Fieldset{
.LP-Form__Composition--breakable{
display: flex;
flex-direction: column;
justify-content: space-between;
2020-07-31 16:54:59 +02:00
}
}
}
}
@media(max-width: $-viewport-extra-small){
2020-08-21 12:08:51 +02:00
.LP-Form :not(.LP-Form--inline){
2020-07-31 16:54:59 +02:00
.LP-Form__Fieldset{
.LP-Form__Composition{
display: flex;
flex-direction: column;
justify-content: space-between;
.LP-Form__Field{
&:not(.LP-Form__Button){
flex: 3 1 100px;
padding: 12px 15px;
}
}
.LP-Form__Button{
padding: 0 15px;
}
&--buttons{
justify-content: flex-end;
}
2020-07-31 16:54:59 +02:00
}
}
}
}