Skip to content

Commit

Permalink
Create a css variable for icon colors (#1543)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne authored Jun 11, 2024
1 parent 5a10b98 commit 6fb5202
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion app/assets/stylesheets/arclight/modules/icons.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
:root {
--al-online-icon-color: #{$online-icon-color};
}
.toggle-bookmark,
.breadcrumb-item,
.document,
Expand All @@ -9,7 +12,7 @@
}

.al-online-content-icon .blacklight-icons svg {
fill: $online-icon-color;
fill: var(--al-online-icon-color);
}

.btn > .bi:first-child {
Expand Down
9 changes: 5 additions & 4 deletions app/assets/stylesheets/arclight/modules/search_results.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:root {
--al-content-icon-color: #{$secondary};
}

.documents-list {
margin-bottom: $spacer;

Expand Down Expand Up @@ -43,10 +47,7 @@

article.document {
.blacklight-icons svg {
fill: $secondary;
}
.al-online-content-icon .blacklight-icons svg {
fill: $online-icon-color;
fill: var(--al-content-icon-color);
}
div.breadcrumb-links,
dd.al-document-abstract-or-scope,
Expand Down

0 comments on commit 6fb5202

Please sign in to comment.