Merge pull request #45 from htmltiger/htmltiger-patch-1

Make top bar sticky
This commit is contained in:
htmltiger 2022-10-07 20:22:46 +01:00 committed by GitHub
commit e670c20464
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);