mirror of
https://github.com/junkfix/config-editor-card.git
synced 2026-05-21 11:58:01 +02:00
Merge pull request #45 from htmltiger/htmltiger-patch-1
Make top bar sticky
This commit is contained in:
commit
e670c20464
|
|
@ -1,4 +1,4 @@
|
||||||
console.info("Config Editor 4.2");
|
console.info("Config Editor 4.3");
|
||||||
const LitElement = window.LitElement || Object.getPrototypeOf(customElements.get("hui-masonry-view") );
|
const LitElement = window.LitElement || Object.getPrototypeOf(customElements.get("hui-masonry-view") );
|
||||||
const html = LitElement.prototype.html;
|
const html = LitElement.prototype.html;
|
||||||
const css = LitElement.prototype.css;
|
const css = LitElement.prototype.css;
|
||||||
|
|
@ -45,9 +45,14 @@ static get styles() {
|
||||||
.right button{
|
.right button{
|
||||||
font-family:Times,serif;
|
font-family:Times,serif;
|
||||||
font-weight:bold}
|
font-weight:bold}
|
||||||
.bar{
|
.pin,.bar{
|
||||||
position:-webkit-sticky;
|
position:-webkit-sticky;
|
||||||
position:sticky;
|
position:sticky;
|
||||||
|
z-index:2;}
|
||||||
|
.pin{
|
||||||
|
top: var(--header-height, 0);
|
||||||
|
background:var(--secondary-background-color)}
|
||||||
|
.bar{
|
||||||
bottom:0;
|
bottom:0;
|
||||||
z-index:2;
|
z-index:2;
|
||||||
background:var(--app-header-background-color);
|
background:var(--app-header-background-color);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue