Skip to content

Commit

Permalink
Fix fullscreen settings + Fix track color
Browse files Browse the repository at this point in the history
  • Loading branch information
DBuit authored Feb 7, 2020
1 parent ef33942 commit cdff627
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
19 changes: 11 additions & 8 deletions dist/light-popup-card.js

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

19 changes: 11 additions & 8 deletions src/light-popup-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class LightPopupCard extends LitElement {
</div>
${this.settings ? html`
<div id="settings">
<div id="settings" class="${fullscreen === true ? ' fullscreen':''}">
<div class="settings-inner" @click="${e => this._close(e)}">
${this.settingsCustomCard ? html`
<card-maker nohass data-card="${this.config.settingsCard.type}" data-options="${JSON.stringify(this.config.settingsCard.cardOptions)}" data-style="${this.config.settingsCard.cardStyle ? this.config.settingsCard.cardStyle : ''}">
Expand Down Expand Up @@ -332,12 +332,15 @@ class LightPopupCard extends LitElement {
display:none;
}
#settings {
position:absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display:none;
position:relative;
display:none;
}
#settings.fullscreen {
position:absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.settings-inner {
height: 100%;
Expand Down Expand Up @@ -417,7 +420,7 @@ class LightPopupCard extends LitElement {
overflow: hidden;
height: var(--slider-width);
-webkit-appearance: none;
background-color: #ddd;
background-color: var(--slider-track-color);
position: absolute;
top: calc(50% - (var(--slider-width) / 2));
right: calc(50% - (var(--slider-height) / 2));
Expand Down

0 comments on commit cdff627

Please sign in to comment.