diff --git a/package-lock.json b/package-lock.json index 5b34ec3d..0a812f89 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nighttab", - "version": "4.22.0", + "version": "4.23.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 2f1b2536..7492307b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nighttab", - "version": "4.22.0", + "version": "4.23.0", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "main": "index.js", "scripts": { diff --git a/src/css/header.css b/src/css/header.css index 874705bb..99ff8999 100755 --- a/src/css/header.css +++ b/src/css/header.css @@ -6,7 +6,7 @@ pointer-events: none; } -.is-header-shade-show .header { +.is-header-color-show .header { pointer-events: all; } @@ -40,7 +40,7 @@ bottom: 0; } -.header-shade { +.header-color { background-color: transparent; content: ""; width: 100%; @@ -53,18 +53,24 @@ transition: background-color var(--layout-timing-medium), opacity var(--layout-timing-medium), border-radius var(--layout-timing-extra-fast); } -.is-header-radius .header-shade { +.is-header-radius .header-color { border-radius: calc(var(--theme-radius) * 4); } -.is-background-color-by-theme.is-header-shade-style-always .header-shade, -.is-background-color-by-theme.is-header-shade-style-scroll .header-shade { - background-color: rgba(var(--header-shade-color), var(--header-shade-opacity)); +.is-header-color-by-theme.is-header-color-style-always .header-color { + background-color: rgba(var(--header-color-theme), var(--header-opacity)); } -.is-background-color-by-custom.is-header-shade-style-always .header-shade, -.is-background-color-by-custom.is-header-shade-style-scroll .header-shade { - background-color: rgba(var(--background-color-custom), var(--header-shade-opacity)); +.is-header-color-by-theme.is-header-color-style-scroll.is-header-color-style-scrolling .header-color { + background-color: rgba(var(--header-color-theme), var(--header-opacity)); +} + +.is-header-color-by-custom.is-header-color-style-always .header-color { + background-color: rgba(var(--header-color-custom), var(--header-opacity)); +} + +.is-header-color-by-custom.is-header-color-style-scroll.is-header-color-style-scrolling .header-color { + background-color: rgba(var(--header-color-custom), var(--header-opacity)); } .header-area { @@ -100,7 +106,7 @@ border-bottom: calc(var(--layout-line-width) * var(--header-border-bottom)) solid rgb(var(--theme-accent)); } -.is-header-radius .header-shade { +.is-header-radius .header-color { border-radius: calc(var(--theme-radius) * 4); } diff --git a/src/css/link.css b/src/css/link.css index a2fe09db..af6c36cc 100755 --- a/src/css/link.css +++ b/src/css/link.css @@ -30,12 +30,12 @@ } .is-layout-order-headerlink.is-header-border-bottom .link, -.is-layout-order-headerlink.is-header-shade-style-always .link { +.is-layout-order-headerlink.is-header-color-style-always .link { margin-top: 0; } .is-layout-order-linkheader.is-header-border-top .link, -.is-layout-order-linkheader.is-header-shade-style-always .link { +.is-layout-order-linkheader.is-header-color-style-always .link { margin-bottom: 0; } diff --git a/src/css/variables.css b/src/css/variables.css index 1f05f580..d38dabb9 100644 --- a/src/css/variables.css +++ b/src/css/variables.css @@ -74,8 +74,9 @@ --theme-shade-opacity: 0.4; /* header */ --header-area-width: 100%; - --header-shade-color: var(--theme-color-01); - --header-shade-opacity: 0.95; + --header-color-theme: var(--theme-color-01); + --header-color-custom: rgb(0, 0, 0); + --header-opacity: 0.95; --header-search-width: 0%; --header-border-top: 0; --header-border-bottom: 0; diff --git a/src/index.html b/src/index.html index 2e3c8959..60260438 100644 --- a/src/index.html +++ b/src/index.html @@ -50,7 +50,7 @@
-
+
@@ -925,36 +925,61 @@