Skip to content

Commit

Permalink
Add distinguisher to CSS var
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Jan 31, 2024
1 parent a5c7a68 commit 0cc1cd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/cylc/tree/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ export function getNodeChildren (node, cyclePointsOrderDesc) {
}

export function getIndent (depth) {
return `calc(${depth} * var(--tree-indent))`
return `calc(${depth} * var(--c-tree-indent))`
}
2 changes: 1 addition & 1 deletion src/styles/cylc/_gscan.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

.c-gscan {
--tree-indent: 1rem;
--c-tree-indent: 1rem;
.c-gscan-workflows {
.c-gscan-workflow {
.c-workflow-stopped {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/cylc/_tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $visible-outputs: 5;
$icon-width: 1.5rem;

:root {
--tree-indent: #{$icon-width};
--c-tree-indent: #{$icon-width};
}

@mixin active-state() {
Expand Down

0 comments on commit 0cc1cd7

Please sign in to comment.