mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 05:59:30 +00:00
Added mainForm component
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
form.form {
|
form.form {
|
||||||
|
display: grid;
|
||||||
|
gap: 1rem;
|
||||||
|
|
||||||
input:not([type='submit']), textarea {
|
input:not([type='submit']), textarea {
|
||||||
background: #E1E1E1;
|
background: #E1E1E1;
|
||||||
border: none;
|
border: none;
|
||||||
@@ -6,7 +9,6 @@ form.form {
|
|||||||
resize: none;
|
resize: none;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: .25rem;
|
border-radius: .25rem;
|
||||||
margin: .5rem 0;
|
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
@@ -26,3 +28,4 @@ form.form {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
25
src/stylesheets/components/_mainForm.scss
Normal file
25
src/stylesheets/components/_mainForm.scss
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
form.mainForm {
|
||||||
|
@extend .form;
|
||||||
|
|
||||||
|
input[type='submit'] {
|
||||||
|
@extend .btn, .btn--primary, .btn--full;
|
||||||
|
width: 100%;
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainFormContainer {
|
||||||
|
margin: 2rem auto 0 auto;
|
||||||
|
width: 85vw;
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin: 1rem;
|
||||||
|
text-align: center;
|
||||||
|
display: block;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include respond-to('large') {
|
||||||
|
width: 40vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,5 +13,6 @@
|
|||||||
@import 'components/title';
|
@import 'components/title';
|
||||||
@import 'components/form';
|
@import 'components/form';
|
||||||
@import 'components/mainPageHeader';
|
@import 'components/mainPageHeader';
|
||||||
|
@import 'components/mainForm';
|
||||||
|
|
||||||
@import 'pages/index';
|
@import 'pages/index';
|
||||||
|
|||||||
Reference in New Issue
Block a user