Browse Source

Merge "Fix Material theme to work with any combination of pyScss and MDI icons" into stable/victoria

stable/victoria
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
7b2df7b958
7 changed files with 27 additions and 2 deletions
  1. +3
    -0
      openstack_dashboard/themes/material/static/horizon/_icons.scss
  2. +2
    -0
      openstack_dashboard/themes/material/static/horizon/components/_checkboxes.scss
  3. +5
    -1
      openstack_dashboard/themes/material/static/horizon/components/_context_selection.scss
  4. +4
    -0
      openstack_dashboard/themes/material/static/horizon/components/_datepicker.scss
  5. +5
    -1
      openstack_dashboard/themes/material/static/horizon/components/_navbar.scss
  6. +2
    -0
      openstack_dashboard/themes/material/static/horizon/components/_radiobuttons.scss
  7. +6
    -0
      openstack_dashboard/themes/material/static/horizon/components/_spinners.scss

+ 3
- 0
openstack_dashboard/themes/material/static/horizon/_icons.scss View File

@ -86,6 +86,9 @@ $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};
}
}

+ 2
- 0
openstack_dashboard/themes/material/static/horizon/components/_checkboxes.scss View File

@ -12,6 +12,7 @@
&:before {
@extend .mdi;
content: "\F131";
font-size: $font-size-h5;
}
}
@ -21,6 +22,7 @@
@extend .mdi-checkbox-marked;
&:before {
content: "\F132";
color: $brand-primary;
}
}


+ 5
- 1
openstack_dashboard/themes/material/static/horizon/components/_context_selection.scss View File

@ -2,4 +2,8 @@
@extend .mdi-stop;
color: $gray-light;
font-size: $font-size-small;
}
&:before {
content: "\F4DB";
}
}

+ 4
- 0
openstack_dashboard/themes/material/static/horizon/components/_datepicker.scss View File

@ -3,6 +3,10 @@
@extend .mdi-arrow-right;
padding-right: $padding-base-horizontal;
&:before {
content: "\F054";
}
&-text {
display: none;
}


+ 5
- 1
openstack_dashboard/themes/material/static/horizon/components/_navbar.scss View File

@ -2,4 +2,8 @@
@extend .mdi-stop;
color: $gray-light;
font-size: $font-size-small;
}
&:before {
content: "\F4DB";
}
}

+ 2
- 0
openstack_dashboard/themes/material/static/horizon/components/_radiobuttons.scss View File

@ -15,6 +15,7 @@
font-size: $font-size-h5;
line-height: $font-size-h5;
vertical-align: middle;
content: "\F43D";
}
}
@ -24,6 +25,7 @@
&:before {
color: $brand-primary;
content: "\F43E";
}
}
}


+ 6
- 0
openstack_dashboard/themes/material/static/horizon/components/_spinners.scss View File

@ -20,11 +20,17 @@
.hz-spinner-icon-up {
@extend .mdi-plus;
&:before {
content: "\F415";
}
}
.hz-spinner-icon-down {
@extend .mdi-minus;
padding-right: $padding-xs-horizontal;
&:before {
content: "\F374";
}
}
&-container {


Loading…
Cancel
Save