Skip to content

Commit

Permalink
Merge pull request #87 from sul-dlss/pkgfix
Browse files Browse the repository at this point in the history
Enable remove color to be set with a css variable
  • Loading branch information
corylown authored Aug 13, 2024
2 parents a86f81d + 9fc2f48 commit f8f1562
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions app/assets/stylesheets/blacklight/hierarchy/hierarchy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ $b-h-opened-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg

$text-muted: #777 !default;

:root {
--text-muted: #{$text-muted};
}

.facet-hierarchy {
list-style-type: none;
padding-left: 0;
Expand Down Expand Up @@ -49,37 +53,38 @@ $text-muted: #777 !default;
}
}

.twiddle>.toggle-handle {
.twiddle > .toggle-handle {
background-color: transparent;
}

.twiddle>.toggle-handle .toggle-icon {
.twiddle > .toggle-handle .toggle-icon {
background-position: center;
background-repeat: no-repeat;
margin-top: 0.25rem;
min-height: 1.1rem;
min-width: 1.1rem;
}

.twiddle>.toggle-handle .closed {
.twiddle > .toggle-handle .closed {
background-image: escape-svg($b-h-closed-icon);
display: inline-block;
}

.twiddle>.toggle-handle .opened {
.twiddle > .toggle-handle .opened {
display: none;
}

.twiddle-open>.toggle-handle .closed {
.twiddle-open > .toggle-handle .closed {
display: none;
}

.twiddle-open>.toggle-handle .opened {
.twiddle-open > .toggle-handle .opened {
background-image: escape-svg($b-h-opened-icon);
display: inline-block;
}

.h-node, .h-leaf {
.h-node,
.h-leaf {
display: flex;
flex-wrap: wrap;
padding: 3px 0;
Expand All @@ -90,6 +95,6 @@ $text-muted: #777 !default;
}

.remove {
color: $text-muted;
color: var(--text-muted);
}
}

0 comments on commit f8f1562

Please sign in to comment.