Skip to content

Commit

Permalink
DEV: Use CSS custom properties for colors in SCSS
Browse files Browse the repository at this point in the history
Prepares the plugin for an upcoming change in core while maintaining
backwards compatiblity.
  • Loading branch information
pmusaraj committed Aug 4, 2020
1 parent 165e358 commit eecd512
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/stylesheets/common/graphviz.scss
Expand Up @@ -4,14 +4,14 @@ div.graphviz {
}
&.is-loading {
padding: 2em;
background: $primary-very-low;
background: var(--primary-very-low, $primary-very-low);
}

.graph-error {
padding: 2em;
background-color: $danger-low;
background-color: var(--danger-low, $danger-low);
margin: 0;
color: $danger;
color: var(--danger, $danger);
text-align: center;
}
}
Expand Down

0 comments on commit eecd512

Please sign in to comment.