-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor row toggle/label CSS, and fix row hover icon bug (#358)
- Loading branch information
1 parent
fb9b791
commit 6d5b64b
Showing
7 changed files
with
356 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
@import '../../../styles/extends'; | ||
@import '../../../styles/mixins'; | ||
@import '../../../styles/variables'; | ||
@import './variables'; | ||
|
||
.pipeline-nodelist__row__text { | ||
display: flex; | ||
align-items: center; | ||
width: 100%; | ||
padding: $row-padding-y $row-offset-right $row-padding-y $row-offset-left; | ||
color: inherit; | ||
font-size: inherit; | ||
font-family: inherit; | ||
letter-spacing: inherit; | ||
text-align: inherit; | ||
background: none; | ||
border: none; | ||
border-radius: 0; | ||
box-shadow: none; | ||
cursor: default; | ||
user-select: none; | ||
|
||
&:focus { | ||
outline: none; | ||
box-shadow: 0 0 0 4px $color-link inset; | ||
|
||
[data-whatintent='mouse'] & { | ||
box-shadow: none; | ||
} | ||
} | ||
} | ||
|
||
.pipeline-nodelist__row__label { | ||
overflow: hidden; | ||
font-size: 1.48em; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
|
||
&--faded { | ||
opacity: 0.65; | ||
} | ||
|
||
&--disabled { | ||
opacity: 0.3; | ||
} | ||
|
||
b { | ||
color: var(--color-nodelist-highlight); | ||
font-weight: normal; | ||
} | ||
|
||
i { | ||
display: inline-block; | ||
margin-left: 0.45em; | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
} | ||
|
||
.pipeline-nodelist__row--unchecked { | ||
// Fade row text when unchecked | ||
.pipeline-nodelist__row__label--kind-filter { | ||
opacity: 0.55; | ||
} | ||
|
||
// Brighter row text when unchecked and hovered | ||
&:hover { | ||
.pipeline-nodelist__row__label--kind-filter { | ||
opacity: 0.8; | ||
} | ||
} | ||
|
||
// Bright row text when all unset | ||
.pipeline-nodelist__group--all-unset & { | ||
.pipeline-nodelist__row__label--kind-filter { | ||
opacity: 1; | ||
} | ||
} | ||
} |
Oops, something went wrong.