Fix some alignment issues with matrix questions in surveys
Resolves MS-911 #complete
This commit is contained in:
parent
b9ed344dd1
commit
54f3aa40dc
|
|
@ -34,9 +34,9 @@ $icon-size: 20px;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-right: 10px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
gap: $small-spacing;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
|
|
@ -46,7 +46,7 @@ $icon-size: 20px;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__input:checked + &__checkbox {
|
&__input:checked+&__checkbox {
|
||||||
border: 0;
|
border: 0;
|
||||||
background-color: $color-brand;
|
background-color: $color-brand;
|
||||||
|
|
||||||
|
|
@ -65,7 +65,6 @@ $icon-size: 20px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-right: 10px;
|
|
||||||
transition: background-color 0.5s;
|
transition: background-color 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -88,7 +87,7 @@ $icon-size: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__input:checked + &__radiobutton {
|
&__input:checked+&__radiobutton {
|
||||||
border-color: $color-brand;
|
border-color: $color-brand;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
|
|
@ -105,7 +104,7 @@ $icon-size: 20px;
|
||||||
&--survey {
|
&--survey {
|
||||||
margin-bottom: $small-spacing;
|
margin-bottom: $small-spacing;
|
||||||
|
|
||||||
#{$base}__input:checked + #{$base}__radiobutton {
|
#{$base}__input:checked+#{$base}__radiobutton {
|
||||||
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="%2317A887" r="25" cx="50" cy="50"></circle></svg>');
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="%2317A887" r="25" cx="50" cy="50"></circle></svg>');
|
||||||
background-size: 12px 12px;
|
background-size: 12px 12px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
|
@ -114,7 +113,7 @@ $icon-size: 20px;
|
||||||
height: $icon-size;
|
height: $icon-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
#{$base}__input:checked + #{$base}__checkbox {
|
#{$base}__input:checked+#{$base}__checkbox {
|
||||||
background-image: url('data:image/svg+xml;utf8,<svg id="shape" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon fill="%23FFFFFF" points="41.46 77.72 10 46.26 16.89 39.37 41.46 63.93 83.11 22.28 90 29.18 41.46 77.72"/></svg>');
|
background-image: url('data:image/svg+xml;utf8,<svg id="shape" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon fill="%23FFFFFF" points="41.46 77.72 10 46.26 16.89 39.37 41.46 63.93 83.11 22.28 90 29.18 41.46 77.72"/></svg>');
|
||||||
background-size: 12px 12px;
|
background-size: 12px 12px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
|
@ -126,7 +125,7 @@ $icon-size: 20px;
|
||||||
#{$base}__label-container {
|
#{$base}__label-container {
|
||||||
display: -ms-grid;
|
display: -ms-grid;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 30px 1fr;
|
grid-template-columns: 20px 1fr;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
margin-bottom: $large-spacing;
|
margin-bottom: $large-spacing;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
|
||||||
> span > span {
|
>span>span {
|
||||||
// weird survey.js html structure
|
// weird survey.js html structure
|
||||||
@include heading-4;
|
@include heading-4;
|
||||||
}
|
}
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
@include heading-4;
|
@include heading-4;
|
||||||
margin-bottom: $medium-spacing;
|
margin-bottom: $medium-spacing;
|
||||||
|
|
||||||
> span > span {
|
>span>span {
|
||||||
// weird survey.js html structure
|
// weird survey.js html structure
|
||||||
@include heading-4;
|
@include heading-4;
|
||||||
line-height: $default-line-height;
|
line-height: $default-line-height;
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
|
||||||
> span {
|
>span {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
> span {
|
>span {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
@ -130,7 +130,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
> td {
|
|
||||||
|
>td {
|
||||||
@include small-text;
|
@include small-text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -142,7 +143,7 @@
|
||||||
@include table-row;
|
@include table-row;
|
||||||
border-top: 1px solid $color-silver;
|
border-top: 1px solid $color-silver;
|
||||||
|
|
||||||
> td {
|
>td {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
@ -155,6 +156,7 @@
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
text-align: left;
|
||||||
|
|
||||||
@include small-text;
|
@include small-text;
|
||||||
|
|
||||||
|
|
@ -206,6 +208,7 @@
|
||||||
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
text-align: left;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
|
@ -249,9 +252,11 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
row-gap: $medium-spacing;
|
row-gap: $medium-spacing;
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody {
|
tbody {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
row-gap: $medium-spacing;
|
row-gap: $medium-spacing;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue