Skip to content

Commit

Permalink
chore(styles): Next styles iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
lordrip committed Nov 12, 2024
1 parent fadd499 commit fe6b695
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,33 @@
position: relative;
align-items: center;
font-weight: bold;
background-color: var(--pf-v5-global--primary-color--light-100);
padding: calc(var(--pf-v5-global--spacer--xs) / 2) var(--pf-v5-global--spacer--xs);

img {
display: inline-block;
position: relative;
margin: var(--pf-v5-global--spacer--xs);
max-height: 32px;
max-width: 32px;
max-height: 20px;
max-width: 20px;
background-color: var(--pf-v5-global--palette--white);
border-radius: calc(var(--custom-node-BorderRadius) / 2);
padding: calc(var(--pf-v5-global--spacer--xs) / 2);
}

span {
@include custom.text;

border: 2px solid var(--custom-node-BorderColor);
padding: 0 calc(var(--pf-v5-global--spacer--xs) * 0.75);
border-radius: calc(var(--custom-node-BorderRadius) * 0.4);
background-color: var(--pf-v5-global--palette--blue-50);
margin: 0 var(--pf-v5-global--spacer--sm);
}

[data-selected='true'] & {
color: var(--pf-v5-global--palette--white);
background-color: var(--pf-v5-global--palette--blue-300);
}
}

&:hover {
&:hover,
[data-selected='true'] & {
border-color: var(--custom-node-hover-BorderColor);
box-shadow: var(--custom-node-Shadow);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
border: 2px solid var(--custom-node-BorderColor);
border-radius: var(--custom-node-BorderRadius);
background-color: var(--custom-node-BackgroundColor);
Expand All @@ -28,7 +27,8 @@
}
}

&:hover &__image {
&:hover &__image,
[data-selected='true'] & &__image {
border-color: var(--custom-node-hover-BorderColor);
box-shadow: var(--custom-node-Shadow);
}
Expand All @@ -47,6 +47,8 @@

text-align: center;
background-color: var(--custom-node-BackgroundColor);
padding: 0 calc(var(--pf-v5-global--spacer--xs) * 0.75);
border-radius: calc(var(--custom-node-BorderRadius) * 0.4);

&__error {
color: var(--custom-node-BorderColor);
Expand Down
10 changes: 4 additions & 6 deletions packages/ui/src/components/Visualization/Custom/_custom.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
.phantom-rect {
stroke: transparent;
fill: transparent;
}

.disabled-step-icon {
position: absolute;
top: 0;
Expand All @@ -25,6 +20,10 @@
--custom-node-BorderColor: var(--pf-v5-global--danger-color--100);
}

foreignObject:first-of-type {
overflow: visible;
}

@content;
}

Expand All @@ -33,7 +32,6 @@
height: 100%;
position: relative;
overflow: auto;
text-align: center;
cursor: pointer;
}

Expand Down

0 comments on commit fe6b695

Please sign in to comment.