diff --git a/package.json b/package.json index dbc722de..0b298b5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nighttab", - "version": "4.0.4", + "version": "4.1.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 b9b31863..00df2074 100755 --- a/src/css/link.css +++ b/src/css/link.css @@ -295,19 +295,19 @@ } .is-link-item-display-name-show.is-link-item-display-letcon-show.is-link-item-display-direction-horizontal.is-link-item-display-order-letconname .link-display-letcon { - margin-right: 0.5em; + margin-right: calc(var(--link-item-display-space) * var(--link-item-display-gutter)); } .is-link-item-display-name-show.is-link-item-display-letcon-show.is-link-item-display-direction-horizontal.is-link-item-display-order-nameletcon .link-display-letcon { - margin-left: 0.5em; + margin-left: calc(var(--link-item-display-space) * var(--link-item-display-gutter)); } .is-link-item-display-name-show.is-link-item-display-letcon-show.is-link-item-display-direction-vertical.is-link-item-display-order-letconname .link-display-letcon { - margin-bottom: 0.5em; + margin-bottom: calc(var(--link-item-display-space) * var(--link-item-display-gutter)); } .is-link-item-display-name-show.is-link-item-display-letcon-show.is-link-item-display-direction-vertical.is-link-item-display-order-nameletcon .link-display-letcon { - margin-top: 0.5em; + margin-top: calc(var(--link-item-display-space) * var(--link-item-display-gutter)); } .is-link-display-alignment-topleft .link-display { diff --git a/src/css/variables.css b/src/css/variables.css index f524f970..11c8ac8d 100644 --- a/src/css/variables.css +++ b/src/css/variables.css @@ -44,6 +44,8 @@ /* link */ --link-area-width: 100%; --link-item-size: 1em; + --link-item-display-space: 0.25em; + --link-item-display-gutter: 2; --link-item-display-letter-size: 2em; --link-item-display-icon-size: 2.5em; --link-item-display-rotate: 0deg; diff --git a/src/index.html b/src/index.html index ee75a624..6859358d 100644 --- a/src/index.html +++ b/src/index.html @@ -1045,7 +1045,7 @@