Skip to content

Commit

Permalink
add ripple top offset CSS var
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Jan 9, 2025
1 parent e3e7f70 commit 6c146f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ While you can now set most CSS fields directly using their sub-element selectors
| --ha-ripple-pressed-opacity | Opacity of ripples when pressed, defaults to `0.12`. |
| --ha-ripple-height | Ripple height, defaults to `100%`. |
| --ha-ripple-width | Ripple width, defaults to `100%`. |
| --ha-ripple-top | Ripple top offset, defaults to `0`. |
| --ha-ripple-left | Ripple left offset, defaults to `0`. |

### Vertical Sliders
Expand Down
2 changes: 1 addition & 1 deletion dist/universal-remote-card.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/classes/base-remote-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,7 @@ export class BaseRemoteElement extends LitElement {
md-ripple {
height: var(--ha-ripple-height, 100%);
width: var(--ha-ripple-width, 100%);
top: var(--ha-ripple-top, 0);
left: var(--ha-ripple-left, 0);
}
Expand Down

0 comments on commit 6c146f0

Please sign in to comment.