Skip to content

Commit

Permalink
version 1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-sedykh committed Aug 2, 2020
1 parent 1289bfe commit a8bd55d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Please ⭐️ this repo if you find it useful

```yaml
resources:
- url: /local/mini-climate-card-bundle.js?v=1.2.6
- url: /local/mini-climate-card-bundle.js?v=1.2.7
type: module
```
Expand All @@ -33,14 +33,14 @@ Please ⭐️ this repo if you find it useful
2. Grab `mini-climate-card-bundle.js`

```console
$ wget https://github.com/artem-sedykh/mini-climate-card/releases/download/v1.2.6/mini-climate-card-bundle.js
$ wget https://github.com/artem-sedykh/mini-climate-card/releases/download/v1.2.7/mini-climate-card-bundle.js
```

3. Add a reference to `mini-climate-card-bundle.js` inside your `ui-lovelace.yaml`.

```yaml
resources:
- url: /local/mini-climate-card-bundle.js?v=1.2.6
- url: /local/mini-climate-card-bundle.js?v=1.2.7
type: module
```

Expand All @@ -53,7 +53,7 @@ Please ⭐️ this repo if you find it useful

```yaml
resources:
- url: /local/mini-climate-card-bundle.js?v=1.2.6
- url: /local/mini-climate-card-bundle.js?v=1.2.7
type: module
```

Expand Down
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": "v1.2.6",
"version": "v1.2.7",
"description": "a/c card for Home Assistant Lovelace UI",
"keywords": [
"home-assistant",
Expand Down
5 changes: 5 additions & 0 deletions release_notes/v1.2.7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## v1.2.7
[![Downloads](https://img.shields.io/github/downloads/artem-sedykh/mini-climate-card/v1.2.7/total.svg)](https://github.com/artem-sedykh/mini-climate-card/releases/tag/v1.2.7)

### FIXED
- for ha >= 0.113.0 added theme variable `--card-background-color`
5 changes: 4 additions & 1 deletion src/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const style = css`
display: none;
}
.mc__bg {
background: var(--ha-card-background, var(--paper-card-background-color, white));
background: var(--ha-card-background, var(--card-background-color, var(--paper-card-background-color, white)));
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
overflow: hidden;
Expand All @@ -60,6 +60,9 @@ const style = css`
opacity: var(--mc-bg-opacity);
border-radius: var(--ha-card-border-radius, 0);
}
ha-card.--group .mc__bg {
background: none;
}
.mc-climate {
align-self: flex-end;
box-sizing: border-box;
Expand Down

0 comments on commit a8bd55d

Please sign in to comment.