Skip to content

Commit

Permalink
feature: Add ability to override ha-card-box-shadow #122
Browse files Browse the repository at this point in the history
  • Loading branch information
regevbr committed Feb 22, 2024
1 parent a249b29 commit 6f14682
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ Can be specified by color name, hexadecimal, rgb, rgba, hsl, hsla, basically any
| mini-climate-base-color | var(--primary-text-color) & var(--paper-item-icon-color) | The color of base text |
| mini-climate-background-opacity | 1 | Opacity of the background |
| mini-climate-scale | 1 | Scale of the card |
| mini-climate-card-box-shadow | var(--ha-card-box-shadow, none) | The card shadow |

## My configuration

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mini-climate-card",
"version": "v2.7.0",
"version": "v2.7.1",
"description": "a/c card for Home Assistant Lovelace UI",
"keywords": [
"home-assistant",
Expand Down
5 changes: 5 additions & 0 deletions release_notes/v2.7.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## v2.7.1
[![Downloads](https://img.shields.io/github/downloads/artem-sedykh/mini-climate-card/v2.7.1/total.svg)](https://github.com/artem-sedykh/mini-climate-card/releases/tag/v2.7.1)

### Added
- feature: Add ability to override ha-card-box-shadow #122 by @regevbr
2 changes: 1 addition & 1 deletion src/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const style = css`
-webkit-transform: translateZ(0);
transform: translateZ(0);
opacity: var(--mc-bg-opacity);
box-shadow: var(--ha-card-box-shadow, none);
box-shadow: var(--mini-climate-card-box-shadow, var(--ha-card-box-shadow, none));
box-sizing: border-box;
border-radius: var(--ha-card-border-radius, 12px);
border-width: var(--ha-card-border-width, 1px);
Expand Down

0 comments on commit 6f14682

Please sign in to comment.