diff --git a/package-lock.json b/package-lock.json index da2c7a12..b361e34f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nighttab", - "version": "4.3.0", + "version": "4.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 881f2bb4..fbf63e3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nighttab", - "version": "4.4.1", + "version": "4.5.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/link.css b/src/css/link.css index 022ca8bd..3878c688 100755 --- a/src/css/link.css +++ b/src/css/link.css @@ -115,7 +115,6 @@ /* link panel front */ .link-panel-front { - background-color: rgb(var(--theme-color-02)); position: absolute; left: 0; width: 100%; @@ -128,6 +127,14 @@ transition: background-color var(--layout-timing-extra-fast), height var(--layout-timing-extra-fast), box-shadow var(--layout-timing-extra-fast), border-radius var(--layout-timing-extra-fast); } +.is-link-item-color-by-theme .link-panel-front { + background-color: rgb(var(--link-item-color-theme)); +} + +.is-link-item-color-by-custom .link-panel-front { + background-color: rgb(var(--link-item-color-custom)); +} + .is-link-style-block .link-panel-front { padding: 1em; } @@ -163,11 +170,18 @@ .link-item:focus-within .link-panel-front, .link-item:focus .link-panel-front, .link-item:hover .link-panel-front { - background-color: rgb(var(--theme-color-03)); outline: none; text-decoration: none; } +.is-link-item-color-by-theme .link-panel-front:hover, +.is-link-item-color-by-theme .link-panel-front:focus, +.is-link-item-color-by-theme .link-item:focus-within .link-panel-front, +.is-link-item-color-by-theme .link-item:focus .link-panel-front, +.is-link-item-color-by-theme .link-item:hover .link-panel-front { + background-color: rgb(var(--theme-color-03)); +} + .is-link-item-shadow-show .link-item:focus .link-panel-front, .is-link-item-shadow-show .link-item:focus-within .link-panel-front, .is-link-item-shadow-show .link-item:hover .link-panel-front { diff --git a/src/css/variables.css b/src/css/variables.css index ee7d01cd..c3abc385 100644 --- a/src/css/variables.css +++ b/src/css/variables.css @@ -44,6 +44,8 @@ --group-border: 0; /* link */ --link-area-width: 100%; + --link-item-color-theme: var(--theme-color-02); + --link-item-color-custom: rgb(0, 0, 0); --link-item-size: 1em; --link-item-display-space: 0.25em; --link-item-display-gutter: 2; diff --git a/src/index.html b/src/index.html index a76f870c..150e2265 100644 --- a/src/index.html +++ b/src/index.html @@ -1190,6 +1190,32 @@ +