Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ The following custom properties and mixins are available for styling:
| `--paper-slider-pin-start-color` | The color of the pin at the far left | `--paper-grey-400` |
| `--paper-slider-height` | Height of the progress bar | `2px` |
| `--paper-slider-input` | Mixin applied to the input in editable mode | `{}` |
| `--paper-slider-container` | Mixin applied container of paper-slider | `{}` |
| `--paper-slider-knob-inner` | Mixin applied to slider knob inner | `{}` |
7 changes: 7 additions & 0 deletions paper-slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@
`--paper-slider-disabled-secondary-color` | The disabled secondary progress bar color | `--paper-grey-400`
`--paper-slider-knob-start-color` | The fill color of the knob at the far left | `transparent`
`--paper-slider-knob-start-border-color` | The border color of the knob at the far left | `--paper-grey-400`
`--paper-slider-knob` | Mixin applied to the knob | `{}`
`--paper-slider-pin-start-color` | The color of the pin at the far left | `--paper-grey-400`
`--paper-slider-height` | Height of the progress bar | `2px`
`--paper-slider-input` | Mixin applied to the input in editable mode | `{}`
`--paper-slider-container` | Mixin applied container of paper-slider | `{}`
`--paper-slider-knob-inner` | Mixin applied to slider knob inner | `{}`

@group Paper Elements
@element paper-slider
Expand Down Expand Up @@ -97,6 +100,7 @@
height: calc(30px + var(--calculated-paper-slider-height));
margin-left: calc(15px + var(--calculated-paper-slider-height)/2);
margin-right: calc(15px + var(--calculated-paper-slider-height)/2);
@apply(--paper-slider-container);
}

#sliderContainer:focus {
Expand Down Expand Up @@ -170,6 +174,7 @@
margin-left: calc(-15px - var(--calculated-paper-slider-height)/2);
width: calc(30px + var(--calculated-paper-slider-height));
height: calc(30px + var(--calculated-paper-slider-height));
@apply(--paper-slider-knob);
}

.transiting > .slider-knob {
Expand Down Expand Up @@ -204,6 +209,8 @@
transition-property: transform, background-color, border;
transition-duration: 0.18s;
transition-timing-function: ease;

@apply(--paper-slider-knob-inner);
}

.expand:not(.pin) > .slider-knob > .slider-knob-inner {
Expand Down