summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-04-15 14:27:01 +0000
committerGerrit Code Review <review@openstack.org>2020-04-15 14:27:01 +0000
commit580f4d413391a96746e1cf65380d6b00ee1e0a90 (patch)
tree1d11c5937b7fd91f1f896b0b306cfbd77355654c
parent2842092b87e83718dc329fd11e0ff05130efc085 (diff)
parent74d76e900f28e88190a35bff921c56349077ca53 (diff)
downloadhorizon-580f4d413391a96746e1cf65380d6b00ee1e0a90.tar.gz
Merge "Implement 'selector-append' sass function"
-rw-r--r--openstack_dashboard/themes/material/static/horizon/_icons.scss4
-rw-r--r--openstack_dashboard/themes/material/static/horizon/_styles.scss9
2 files changed, 10 insertions, 3 deletions
diff --git a/openstack_dashboard/themes/material/static/horizon/_icons.scss b/openstack_dashboard/themes/material/static/horizon/_icons.scss
index b586cc4d0..2509ae478 100644
--- a/openstack_dashboard/themes/material/static/horizon/_icons.scss
+++ b/openstack_dashboard/themes/material/static/horizon/_icons.scss
@@ -86,8 +86,6 @@ $icon-swap: (
@each $fa-icon, $mdi-icon in $icon-swap {
.fa-#{$fa-icon} {
- &:before {
- content: unquote("\"\\#{map-get($mdi-icons, $mdi-icon)}\"");
- }
+ @extend .mdi-#{$mdi-icon};
}
}
diff --git a/openstack_dashboard/themes/material/static/horizon/_styles.scss b/openstack_dashboard/themes/material/static/horizon/_styles.scss
index 047af9943..8b0775727 100644
--- a/openstack_dashboard/themes/material/static/horizon/_styles.scss
+++ b/openstack_dashboard/themes/material/static/horizon/_styles.scss
@@ -1,3 +1,12 @@
+// NOTE(e0ne): it's temporary workaround to until specified function will
+// be supported by pyScss. We need to define this function before any MDI
+// usage.
+@if not function-exists("selector-append") {
+ @function selector-append($selector, $to-append) {
+ @return append-selector($selector, $to-append);
+ }
+}
+
@import "animations";
@import "icons";
@import "components/checkboxes";