Render all icons on one line in forms
Show all icons of the RelatedListSelector component on one line in the forms.
This commit is contained in:
@@ -74,6 +74,8 @@ $input-height: $line-height * 2;
|
||||
|
||||
$icon-width: $line-height * 2;
|
||||
|
||||
$sdg-icon-min-width: 40px;
|
||||
|
||||
$sdg-colors: (
|
||||
1: #e5243b,
|
||||
2: #dda63a,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.sdg-goal-icon {
|
||||
min-width: 40px;
|
||||
min-width: $sdg-icon-min-width;
|
||||
width: $icon-width;
|
||||
}
|
||||
|
||||
@@ -13,9 +13,12 @@
|
||||
}
|
||||
|
||||
label + ul {
|
||||
@extend %sdg-goal-list;
|
||||
$spacing: 0.5%;
|
||||
@include sdg-goal-list($spacing);
|
||||
|
||||
li {
|
||||
min-width: $sdg-icon-min-width;
|
||||
width: calc(100% / 17 - #{$spacing});
|
||||
|
||||
&[aria-checked=true] img {
|
||||
opacity: 0.15;
|
||||
@@ -28,6 +31,10 @@
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sdg-goal-icon {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user