aboutsummaryrefslogtreecommitdiff
path: root/src/components/Form
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-05-02 14:59:03 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-05-02 14:59:03 +0530
commit7811161205e743ba40ce036b1486520f52414c34 (patch)
treee7309bbdf463d53390f9f42bba143455892912f0 /src/components/Form
parent54fd6380d550b75137dad64502c21226aadd1550 (diff)
organised css and rewrote some css for more consistency
Diffstat (limited to 'src/components/Form')
-rw-r--r--src/components/Form/Form.scss46
1 files changed, 37 insertions, 9 deletions
diff --git a/src/components/Form/Form.scss b/src/components/Form/Form.scss
index eed0189..43aee39 100644
--- a/src/components/Form/Form.scss
+++ b/src/components/Form/Form.scss
@@ -23,7 +23,7 @@ input[type=number] {
@mixin formPane {
padding: 1.5rem;
box-sizing: border-box;
- border: 1px solid pink;
+ border: 1px solid $formPaneBorderColor;
display: flex;
flex-direction: column;
@@ -39,20 +39,32 @@ input[type=number] {
font-size: 1.5rem;
}
+@mixin formFlex($justify) {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: $justify;
+}
+
input {
box-sizing: border-box;
}
+.wideInputBox, .selectInputBox {
+ width: 12rem;
+}
+
+.smallInputBox {
+ width: 5.5rem;
+}
+
.formContainer {
padding: 1rem 0;
width: 100%;
}
.threePaneForm {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: space-between;
+ @include formFlex(space-around);
height: 22rem;
width: 100%;
@@ -74,11 +86,27 @@ input {
@include formWideLabel();
}
-.wideInputBox, .selectInputBox {
- width: 12rem;
+.twoPaneForm {
+ @include formFlex(space-around);
+
+ height: 22rem;
+ width: 100%;
}
-.smallInputBox {
- width: 6.5rem;
+.twoPaneForm div {
+ @include formPane();
+}
+
+.twoPaneForm .widePane {
+ width: 27rem;
}
+.threePaneForm .smallPane {
+ width: 15rem;
+}
+
+.twoPaneForm label {
+ @include formWideLabel();
+}
+
+