Skip to content

Commit

Permalink
Qol 8391 styles update (#451)
Browse files Browse the repository at this point in the history
* styles update

* styles update

* styles update

* changed to rem
  • Loading branch information
asifaminb authored Apr 7, 2022
1 parent b6e486a commit 4bbc9cf
Show file tree
Hide file tree
Showing 3 changed files with 1,689 additions and 13 deletions.
37 changes: 26 additions & 11 deletions src/assets/_project/_blocks/components/forms/_qg-forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@
}
}

//[type="checkbox"]:checked + label .rc-theme__icon, [type="radio"]:checked + label .rc-theme__icon {
// background-color: #007eb1 !important;
// fill: #fff;
//}
&.choices {
li {
width: 255px;
Expand Down Expand Up @@ -190,23 +186,38 @@
color: $labelHeadingColour;
font-weight: $labelHeadingWeight;
}
.qg-forms-v2__checkbox, .qg-forms-v2__radio {
label {
margin-bottom: rem(14px);
}
input[type=radio], input[type=checkbox] {
top:0;
}
}
.checkbox, .qg-forms-v2__checkbox,
.form-radio, .qg-forms-v2__radio {
padding-top: 0.8rem;
padding-bottom: 0.8rem;
margin: 0;
.radio {
margin: 0;
}
div.form-check {
padding-bottom: $defaultRem;
padding-left: 0
}
input[type=radio], input[type=checkbox] {
width: 25px;
height: 25px;
width: rem(25px);
height: rem(25px);
padding-right: 1rem;
top: $none;
margin-top: $none;
margin-top: 0;
border-radius: $borderRadius;
border-width: $borderWidth;
float: left;
}
label {
margin-left: rem(12px);
font-weight: normal;
margin-left: rem(16px);
display: inline-block;
span {
font-weight: $checkboxWeight;
Expand All @@ -228,8 +239,12 @@
.formio-hidden {
margin-bottom: 0 !important;
}
.invalid .alert{
font-weight: normal;
}
.alert {
margin-bottom: $defaultRem;
font-size: rem(16px);
}
.text-muted {
color: $hintColour;
Expand Down Expand Up @@ -275,7 +290,7 @@
color: white !important;
background-color: white !important;
border-color: white !important;
padding: $none;
padding: 0;
}

//error labels
Expand Down Expand Up @@ -353,7 +368,7 @@
//Workarounds -----------------------------------------------------
//Workarounds for instances where panel/card is applied to form body
.border {
border: $none;
border: 0;
}
.card {
position: relative;
Expand Down
3 changes: 1 addition & 2 deletions src/assets/_project/_blocks/scss-general/_qg-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ $tables-paginate-enabled-previous-next-color: #111111;

// forms
$fontFace: inherit;
$defaultRem: 1rem !important;
$defaultRem: 1rem;

$labelHeadingColour: #000;
$labelHeadingSize: 20px;
Expand All @@ -205,7 +205,6 @@ $hintColour: #767676 !important;
$hintWeight: 400;
$borderRadius: 4px;
$borderWidth: 3px;
$none: 0px !important;
$checkboxWeight: 400;

$inputHeight: 46px;
Expand Down
Loading

0 comments on commit 4bbc9cf

Please sign in to comment.