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;
|
$icon-width: $line-height * 2;
|
||||||
|
|
||||||
|
$sdg-icon-min-width: 40px;
|
||||||
|
|
||||||
$sdg-colors: (
|
$sdg-colors: (
|
||||||
1: #e5243b,
|
1: #e5243b,
|
||||||
2: #dda63a,
|
2: #dda63a,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.sdg-goal-icon {
|
.sdg-goal-icon {
|
||||||
min-width: 40px;
|
min-width: $sdg-icon-min-width;
|
||||||
width: $icon-width;
|
width: $icon-width;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,9 +13,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
label + ul {
|
label + ul {
|
||||||
@extend %sdg-goal-list;
|
$spacing: 0.5%;
|
||||||
|
@include sdg-goal-list($spacing);
|
||||||
|
|
||||||
li {
|
li {
|
||||||
|
min-width: $sdg-icon-min-width;
|
||||||
|
width: calc(100% / 17 - #{$spacing});
|
||||||
|
|
||||||
&[aria-checked=true] img {
|
&[aria-checked=true] img {
|
||||||
opacity: 0.15;
|
opacity: 0.15;
|
||||||
@@ -28,6 +31,10 @@
|
|||||||
&:hover {
|
&:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sdg-goal-icon {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user