mirror of
https://github.com/junkfix/config-editor-card.git
synced 2026-02-22 18:26:31 +01: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 html = LitElement.prototype.html;
|
||||
const css = LitElement.prototype.css;
|
||||
|
|
@ -45,9 +45,14 @@ static get styles() {
|
|||
.right button{
|
||||
font-family:Times,serif;
|
||||
font-weight:bold}
|
||||
.bar{
|
||||
.pin,.bar{
|
||||
position:-webkit-sticky;
|
||||
position:sticky;
|
||||
z-index:2;}
|
||||
.pin{
|
||||
top: var(--header-height, 0);
|
||||
background:var(--secondary-background-color)}
|
||||
.bar{
|
||||
bottom:0;
|
||||
z-index:2;
|
||||
background:var(--app-header-background-color);
|
||||
|
|
|
|||
Loading…
Reference in a new issue