Responsive form work
This commit is contained in:
parent
e98fabdc49
commit
cb16df5d13
7 changed files with 34 additions and 10 deletions
|
|
@ -20,13 +20,16 @@ form {
|
||||||
.flex-form {
|
.flex-form {
|
||||||
display: grid;
|
display: grid;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||||
grid-gap: 1rem 3rem;
|
grid-gap: 1rem 3rem;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
|
||||||
&.labelled {
|
&.labelled {
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||||
|
}
|
||||||
grid-template-columns: 1fr 5fr;
|
grid-template-columns: 1fr 5fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -552,8 +552,8 @@ form .flex-form {
|
||||||
-webkit-box-align: center;
|
-webkit-box-align: center;
|
||||||
-ms-flex-align: center;
|
-ms-flex-align: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
-ms-grid-columns: (minmax(384px, 1fr))[auto-fit];
|
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
|
||||||
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||||
grid-gap: 1rem 3rem;
|
grid-gap: 1rem 3rem;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|
@ -565,6 +565,13 @@ form .flex-form.labelled {
|
||||||
grid-template-columns: 1fr 5fr;
|
grid-template-columns: 1fr 5fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
form .flex-form.labelled {
|
||||||
|
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
form .flex-form input {
|
form .flex-form input {
|
||||||
background-color: #656565;
|
background-color: #656565;
|
||||||
color: #eeeeee;
|
color: #eeeeee;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -552,8 +552,8 @@ form .flex-form {
|
||||||
-webkit-box-align: center;
|
-webkit-box-align: center;
|
||||||
-ms-flex-align: center;
|
-ms-flex-align: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
-ms-grid-columns: (minmax(384px, 1fr))[auto-fit];
|
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
|
||||||
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||||
grid-gap: 1rem 3rem;
|
grid-gap: 1rem 3rem;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|
@ -565,6 +565,13 @@ form .flex-form.labelled {
|
||||||
grid-template-columns: 1fr 5fr;
|
grid-template-columns: 1fr 5fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
form .flex-form.labelled {
|
||||||
|
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
form .flex-form input {
|
form .flex-form input {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color: #252525;
|
color: #252525;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -552,8 +552,8 @@ form .flex-form {
|
||||||
-webkit-box-align: center;
|
-webkit-box-align: center;
|
||||||
-ms-flex-align: center;
|
-ms-flex-align: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
-ms-grid-columns: (minmax(384px, 1fr))[auto-fit];
|
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
|
||||||
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||||
grid-gap: 1rem 3rem;
|
grid-gap: 1rem 3rem;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|
@ -565,6 +565,13 @@ form .flex-form.labelled {
|
||||||
grid-template-columns: 1fr 5fr;
|
grid-template-columns: 1fr 5fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
form .flex-form.labelled {
|
||||||
|
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
form .flex-form input {
|
form .flex-form input {
|
||||||
background-color: #535884;
|
background-color: #535884;
|
||||||
color: #ccdbf1;
|
color: #ccdbf1;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue