-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show tooltip on hover of domain slider with detailed info
... and ability to autoscale min/max separately
- Loading branch information
Showing
14 changed files
with
362 additions
and
143 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 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 was deleted.
Oops, something went wrong.
123 changes: 123 additions & 0 deletions
123
src/h5web/toolbar/controls/DomainSlider/DomainSlider.module.css
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,123 @@ | ||
.root { | ||
position: relative; | ||
display: flex; | ||
padding: 0 0.375rem; | ||
margin-right: -0.375rem; | ||
} | ||
|
||
.sliderWrapper { | ||
display: flex; | ||
} | ||
|
||
.slider { | ||
display: flex; | ||
width: 8rem; | ||
margin-right: 0.25rem; | ||
font-size: 0.75rem; | ||
cursor: pointer; | ||
} | ||
|
||
.slider:global(.disabled) { | ||
opacity: 0.5; | ||
pointer-events: none; | ||
} | ||
|
||
.track { | ||
align-self: center; | ||
height: 0.375rem; | ||
background-color: var(--secondary-dark-15); | ||
box-shadow: var(--btn-shadow-pressed) var(--btn-shadow-color); | ||
border-radius: 0.25rem; | ||
} | ||
|
||
.thumb { | ||
display: flex; | ||
align-items: center; | ||
height: 100%; | ||
} | ||
|
||
.thumbBtnLike { | ||
composes: btnLike from '../../Toolbar.module.css'; | ||
min-width: 2rem; | ||
padding: 0.375rem; | ||
background-color: var(--secondary-lighter); | ||
box-shadow: var(--btn-shadow-idle) var(--btn-shadow-color); | ||
} | ||
|
||
.thumb:hover > .thumbBtnLike { | ||
box-shadow: var(--btn-shadow-idle) var(--btn-shadow-dark-color); | ||
} | ||
|
||
.autoBtnLike { | ||
composes: btnLike from '../../Toolbar.module.css'; | ||
font-size: 0.875em; | ||
border-radius: 0.875rem; | ||
color: var(--black); | ||
} | ||
|
||
.tooltip { | ||
composes: popup from '../../Toolbar.module.css'; | ||
left: 50%; | ||
min-width: 16em; | ||
transform: translate(-50%, 100%); | ||
} | ||
|
||
.tooltipInner { | ||
composes: popupInner from '../../Toolbar.module.css'; | ||
padding: 1rem 0.75rem; | ||
} | ||
|
||
.minMax { | ||
display: grid; | ||
grid-template-columns: [label] auto [value] 1fr [actions] 2.5em; | ||
grid-gap: 0.5rem; | ||
margin-bottom: 1rem; | ||
font-weight: bold; | ||
color: var(--near-black); | ||
} | ||
|
||
.minMax > h3, | ||
.minMax > p { | ||
margin-bottom: 0; | ||
} | ||
|
||
.minMax > h3 { | ||
grid-column: label; | ||
text-transform: uppercase; | ||
font-size: inherit; | ||
} | ||
|
||
.minMax > p { | ||
grid-column: value; | ||
display: flex; | ||
align-items: center; | ||
text-align: right; | ||
} | ||
|
||
.minMax > p::before { | ||
flex: 1 1 0%; | ||
content: ''; | ||
min-width: 1em; | ||
margin-right: 0.5rem; | ||
margin-top: 0.5rem; | ||
border-bottom: 2px dotted currentColor; | ||
} | ||
|
||
.dataRange { | ||
margin-bottom: 0.75rem; | ||
white-space: nowrap; | ||
} | ||
|
||
.dataRange > span { | ||
margin-left: 0.5rem; | ||
} | ||
|
||
.autoscale { | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 0; | ||
} | ||
|
||
.autoscale > button:first-of-type { | ||
margin-left: 0.5rem; | ||
} |
Oops, something went wrong.