Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
fix: css fix for key
Browse files Browse the repository at this point in the history
closes #348
  • Loading branch information
rashley-iqt committed May 30, 2019
1 parent d8a2e9c commit 91fbb40
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,8 @@ input[name=hideControls]:checked ~ .canvas {

.key text {
dominant-baseline: middle;
}

:global(.darkTheme) .key text {
fill: white;
}
18 changes: 14 additions & 4 deletions src/features/visualization/Visualization.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
opacity: 1;
}

.viz :global(.viz-isChanged-fixed) circle {
:global(.viz-isChanged-fixed) circle {
fill:black;
-webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

:global(.darkTheme) .viz :global(.viz-isChanged-fixed) circle {
:global(.darkTheme) :global(.viz-isChanged-fixed) circle {
fill:white;
}

Expand Down Expand Up @@ -52,7 +52,7 @@
clip-path: polygon(0% 33%, 33% 33%, 33% 0%, 66% 0%, 66% 33%, 100% 33%, 100% 66%, 66% 66%, 66% 100%, 33% 100%, 33% 66%, 0% 66%, 0% 33%);
}

:global(.darkTheme) .viz :global(.viz-isAdded-fixed) circle {
:global(.darkTheme) :global(.viz-isAdded-fixed) circle {
fill: white;
-webkit-clip-path: polygon(0% 33%, 33% 33%, 33% 0%, 66% 0%, 66% 33%, 100% 33%, 100% 66%, 66% 66%, 66% 100%, 33% 100%, 33% 66%, 0% 66%, 0% 33%);
clip-path: polygon(0% 33%, 33% 33%, 33% 0%, 66% 0%, 66% 33%, 100% 33%, 100% 66%, 66% 66%, 66% 100%, 33% 100%, 33% 66%, 0% 66%, 0% 33%);
Expand Down Expand Up @@ -82,7 +82,7 @@
clip-path: polygon(0% 33%, 100% 33%, 100% 66%, 0% 66%);
}

:global(.darkTheme) .viz :global(.viz-isRemoved-fixed) circle {
:global(.darkTheme) :global(.viz-isRemoved-fixed) circle {
fill: white;
-webkit-clip-path: polygon(0% 33%, 100% 33%, 100% 66%, 0% 66%);
clip-path: polygon(0% 33%, 100% 33%, 100% 66%, 0% 66%);
Expand Down Expand Up @@ -356,4 +356,14 @@

:global(.darkTheme) .viz :global(circle.viz-bg-circle){
fill: rgb(130, 129, 129) !important;
}

.viz-change-icon-container .svg-icon {
color: black;
fill: black;
}

:global(.darkTheme) .viz-change-icon-container {
color: white;
fill: white;
}

0 comments on commit 91fbb40

Please sign in to comment.