Skip to content

Commit

Permalink
Merge pull request #207 from rdjpalmer/input-range-styling
Browse files Browse the repository at this point in the history
Input range styling
  • Loading branch information
rdjpalmer authored Mar 21, 2017
2 parents 76acbc4 + 3fe2885 commit d145d0d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
13 changes: 4 additions & 9 deletions components/Forms/InputRange/InputRange.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
position: absolute;
}

.slider:active {
.sliderActive {
transform: scale(1.1);
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
background-color: var(--color-greyLightest);
}

.slider:focus {
Expand All @@ -43,14 +42,13 @@
cursor: pointer;
display: block;
height: var(--inputRange-track-height);
border-radius: calc(var(--inputRange-track-height) / 2);
position: absolute;
width: 100%;
left: 0;
}

.trackContainer {
background: var(--color-greyLightest);
background: var(--color-greyLighter);
}

.trackActive {
Expand All @@ -76,17 +74,14 @@

.barContainer {
display: inline-block;
padding-left: 1px;
padding-right: 1px;
vertical-align: bottom;
transform: translateY(1px);
}

.bar {
width: 100%;
height: 100%;
background-color: var(--color-greyLighter);
border-top-left-radius: 3px;
border-top-right-radius: 3px;
background-color: var(--color-greyLight);
}

.inputRange {
Expand Down
1 change: 1 addition & 0 deletions components/Forms/InputRange/InputRange.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const defaultClassNames = {
labelMin: css.labelMin,
labelValue: css.labelValue,
slider: css.slider,
sliderActive: css.sliderActive,
sliderContainer: css.sliderContainer,
trackActive: css.trackActive,
trackContainer: css.trackContainer,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
},
"dependencies": {
"@appearhere/nuka-carousel": "^2.1.6",
"@appearhere/react-input-range": "^1.0.0",
"@appearhere/react-input-range": "^1.1.0",
"array-from": "^2.1.1",
"babel-polyfill": "^6.22.0",
"classnames": "^2.2.5",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
kw-react-tween-state "^0.1.5"
object-assign "^4.1.0"

"@appearhere/react-input-range@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@appearhere/react-input-range/-/react-input-range-1.0.0.tgz#c4cf748211de55e9602053e414e63744315b612c"
"@appearhere/react-input-range@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@appearhere/react-input-range/-/react-input-range-1.1.0.tgz#251ec7589742cd238ce645fd48ffd116a6306774"

"@kadira/react-split-pane@^1.4.0":
version "1.4.7"
Expand Down

0 comments on commit d145d0d

Please sign in to comment.