diff --git a/package-lock.json b/package-lock.json index 9b617167..b0f99f00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "4.39.0", + "version": "4.40.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 4926817f..d0d0718b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "4.39.0", + "version": "4.40.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/clock.css b/src/css/clock.css index 50bc4669..129b1833 100755 --- a/src/css/clock.css +++ b/src/css/clock.css @@ -6,24 +6,24 @@ font-weight: var(--theme-font-display-weight); font-style: var(--theme-font-display-style); color: rgb(var(--theme-style-text)); - min-height: 2.5em; display: inline-flex; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; + line-height: 1.2; } -.is-header-item-alignment-left .clock { +.is-header-item-justify-left .clock { justify-content: flex-start; text-align: left; } -.is-header-item-alignment-center .clock { +.is-header-item-justify-center .clock { justify-content: center; text-align: center; } -.is-header-item-alignment-right .clock { +.is-header-item-justify-right .clock { justify-content: flex-end; text-align: right; } @@ -53,19 +53,19 @@ /* min-width: 1.25em; */ } -.is-header-item-alignment-left .clock-item:not(:last-child) { +.is-header-item-justify-left .clock-item:not(:last-child) { margin-right: 0.2em; } -.is-header-item-alignment-center .clock-item:not(:first-child) { +.is-header-item-justify-center .clock-item:not(:first-child) { margin-left: 0.1em; } -.is-header-item-alignment-center .clock-item:not(:last-child) { +.is-header-item-justify-center .clock-item:not(:last-child) { margin-right: 0.1em; } -.is-header-item-alignment-right .clock-item:not(:first-child) { +.is-header-item-justify-right .clock-item:not(:first-child) { margin-left: 0.2em; } diff --git a/src/css/date.css b/src/css/date.css index de807052..d3cb2a8d 100755 --- a/src/css/date.css +++ b/src/css/date.css @@ -6,24 +6,24 @@ font-weight: var(--theme-font-display-weight); font-style: var(--theme-font-display-style); color: rgb(var(--theme-style-text)); - min-height: 2.5em; display: inline-flex; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; + line-height: 1.2; } -.is-header-item-alignment-left .date { +.is-header-item-justify-left .date { justify-content: flex-start; text-align: left; } -.is-header-item-alignment-center .date { +.is-header-item-justify-center .date { justify-content: center; text-align: center; } -.is-header-item-alignment-right .date { +.is-header-item-justify-right .date { justify-content: flex-end; text-align: right; } @@ -52,19 +52,19 @@ justify-content: center; } -.is-header-item-alignment-left .date-item:not(:last-child) { +.is-header-item-justify-left .date-item:not(:last-child) { margin-right: 0.2em; } -.is-header-item-alignment-center .date-item:not(:first-child) { +.is-header-item-justify-center .date-item:not(:first-child) { margin-left: 0.1em; } -.is-header-item-alignment-center .date-item:not(:last-child) { +.is-header-item-justify-center .date-item:not(:last-child) { margin-right: 0.1em; } -.is-header-item-alignment-right .date-item:not(:first-child) { +.is-header-item-justify-right .date-item:not(:first-child) { margin-left: 0.2em; } diff --git a/src/css/greeting.css b/src/css/greeting.css index 49a748e8..48c73a20 100755 --- a/src/css/greeting.css +++ b/src/css/greeting.css @@ -6,24 +6,24 @@ font-weight: var(--theme-font-display-weight); font-style: var(--theme-font-display-style); color: rgb(var(--theme-style-text)); - min-height: 2.5em; display: inline-flex; flex-direction: row; justify-content: center; flex-wrap: nowrap; + line-height: 1.2; } -.is-header-item-alignment-left .greeting { +.is-header-item-justify-left .greeting { justify-content: flex-start; text-align: left; } -.is-header-item-alignment-center .greeting { +.is-header-item-justify-center .greeting { justify-content: center; text-align: center; } -.is-header-item-alignment-right .greeting { +.is-header-item-justify-right .greeting { justify-content: flex-end; text-align: right; } diff --git a/src/css/group.css b/src/css/group.css index 50dca4f4..fe89006a 100644 --- a/src/css/group.css +++ b/src/css/group.css @@ -40,16 +40,16 @@ transition: padding var(--layout-timing-extra-fast); } -.is-group-area-alignment-left .group-header { +.is-group-area-justify-left .group-header { flex-direction: row; } -.is-group-area-alignment-center .group-header { +.is-group-area-justify-center .group-header { flex-direction: row; justify-content: center; } -.is-group-area-alignment-right .group-header { +.is-group-area-justify-right .group-header { flex-direction: row-reverse; justify-content: flex-start; } @@ -73,7 +73,6 @@ overflow: hidden; font-size: var(--group-name-size); transition: height var(--layout-timing-extra-fast); - transition: height var(--layout-timing-extra-fast); } .is-group-name-show .group-name { @@ -111,12 +110,12 @@ margin var(--layout-timing-extra-fast) var(--layout-duration-04); } -.is-edit.is-group-name-show.is-group-area-alignment-left .group-control, -.is-edit.is-group-name-show.is-group-area-alignment-center .group-control { +.is-edit.is-group-name-show.is-group-area-justify-left .group-control, +.is-edit.is-group-name-show.is-group-area-justify-center .group-control { margin-right: 1em; } -.is-edit.is-group-name-show.is-group-area-alignment-right .group-control { +.is-edit.is-group-name-show.is-group-area-justify-right .group-control { margin-left: 1em; } diff --git a/src/css/header.css b/src/css/header.css index 04a8ee87..9c86f34c 100755 --- a/src/css/header.css +++ b/src/css/header.css @@ -10,15 +10,15 @@ pointer-events: all; } -.is-header-area-alignment-left .header { +.is-header-area-justify-left .header { justify-content: flex-start; } -.is-header-area-alignment-center .header { +.is-header-area-justify-center .header { justify-content: center; } -.is-header-area-alignment-right .header { +.is-header-area-justify-right .header { justify-content: flex-end; } @@ -115,19 +115,26 @@ position: relative; display: flex; flex-direction: row; - align-items: baseline; flex-wrap: wrap; } -.is-header-item-alignment-left .header-item-grid { +.is-header-area-align-center .header-item-grid { + align-items: center; +} + +.is-header-area-align-baseline .header-item-grid { + align-items: baseline; +} + +.is-header-item-justify-left .header-item-grid { justify-content: flex-start; } -.is-header-item-alignment-center .header-item-grid { +.is-header-item-justify-center .header-item-grid { justify-content: center; } -.is-header-item-alignment-right .header-item-grid { +.is-header-item-justify-right .header-item-grid { justify-content: flex-end; } @@ -182,6 +189,7 @@ .is-header-item-newline-menu .header-item-menu { flex-basis: 100%; + position: relative; } .header-item-menu-baseline-alignment-character { @@ -257,48 +265,48 @@ width: var(--header-search-width-size); } -.is-header-item-alignment-left.is-header-item-newline-search.is-header-search-width-by-custom .header-item-search { +.is-header-item-justify-left.is-header-item-newline-search.is-header-search-width-by-custom .header-item-search { justify-content: flex-start; } -.is-header-item-alignment-center.is-header-item-newline-search.is-header-search-width-by-custom .header-item-search { +.is-header-item-justify-center.is-header-item-newline-search.is-header-search-width-by-custom .header-item-search { justify-content: center; } -.is-header-item-alignment-right.is-header-item-newline-search.is-header-search-width-by-custom .header-item-search { +.is-header-item-justify-right.is-header-item-newline-search.is-header-search-width-by-custom .header-item-search { justify-content: flex-end; } -.is-header-item-alignment-left .header-item-body-greeting, -.is-header-item-alignment-left .header-item-body-clock, -.is-header-item-alignment-left .header-item-body-transitional, -.is-header-item-alignment-left .header-item-body-date, -.is-header-item-alignment-left .header-item-body-search, -.is-header-item-alignment-left .header-item-body-editadd, -.is-header-item-alignment-left .header-item-body-coloraccent, -.is-header-item-alignment-left .header-item-body-menu { +.is-header-item-justify-left .header-item-body-greeting, +.is-header-item-justify-left .header-item-body-clock, +.is-header-item-justify-left .header-item-body-transitional, +.is-header-item-justify-left .header-item-body-date, +.is-header-item-justify-left .header-item-body-search, +.is-header-item-justify-left .header-item-body-editadd, +.is-header-item-justify-left .header-item-body-coloraccent, +.is-header-item-justify-left .header-item-body-menu { justify-content: flex-start; } -.is-header-item-alignment-center .header-item-body-greeting, -.is-header-item-alignment-center .header-item-body-clock, -.is-header-item-alignment-center .header-item-body-transitional, -.is-header-item-alignment-center .header-item-body-date, -.is-header-item-alignment-center .header-item-body-search, -.is-header-item-alignment-center .header-item-body-editadd, -.is-header-item-alignment-center .header-item-body-coloraccent, -.is-header-item-alignment-center .header-item-body-menu { +.is-header-item-justify-center .header-item-body-greeting, +.is-header-item-justify-center .header-item-body-clock, +.is-header-item-justify-center .header-item-body-transitional, +.is-header-item-justify-center .header-item-body-date, +.is-header-item-justify-center .header-item-body-search, +.is-header-item-justify-center .header-item-body-editadd, +.is-header-item-justify-center .header-item-body-coloraccent, +.is-header-item-justify-center .header-item-body-menu { justify-content: center; } -.is-header-item-alignment-right .header-item-body-greeting, -.is-header-item-alignment-right .header-item-body-clock, -.is-header-item-alignment-right .header-item-body-transitional, -.is-header-item-alignment-right .header-item-body-date, -.is-header-item-alignment-right .header-item-body-search, -.is-header-item-alignment-right .header-item-body-editadd, -.is-header-item-alignment-right .header-item-body-coloraccent, -.is-header-item-alignment-right .header-item-body-menu { +.is-header-item-justify-right .header-item-body-greeting, +.is-header-item-justify-right .header-item-body-clock, +.is-header-item-justify-right .header-item-body-transitional, +.is-header-item-justify-right .header-item-body-date, +.is-header-item-justify-right .header-item-body-search, +.is-header-item-justify-right .header-item-body-editadd, +.is-header-item-justify-right .header-item-body-coloraccent, +.is-header-item-justify-right .header-item-body-menu { justify-content: flex-end; } diff --git a/src/css/link.css b/src/css/link.css index af6c36cc..a4176ce9 100755 --- a/src/css/link.css +++ b/src/css/link.css @@ -9,15 +9,15 @@ display: flex; } -.is-link-area-alignment-left .link { +.is-link-area-justify-left .link { align-items: flex-start; } -.is-link-area-alignment-center .link { +.is-link-area-justify-center .link { align-items: center; } -.is-link-area-alignment-right .link { +.is-link-area-justify-right .link { align-items: flex-end; } diff --git a/src/css/search.css b/src/css/search.css index 6e8058cb..45465a12 100755 --- a/src/css/search.css +++ b/src/css/search.css @@ -14,15 +14,15 @@ transform: translate(0, -50%); } -.is-header-search-text-alignment-left .search-input { +.is-header-search-text-justify-left .search-input { text-align: left; } -.is-header-search-text-alignment-center .search-input { +.is-header-search-text-justify-center .search-input { text-align: center; } -.is-header-search-text-alignment-right .search-input { +.is-header-search-text-justify-right .search-input { text-align: right; } diff --git a/src/css/transitional.css b/src/css/transitional.css index 507ad722..41928cd9 100644 --- a/src/css/transitional.css +++ b/src/css/transitional.css @@ -6,24 +6,24 @@ font-weight: var(--theme-font-display-weight); font-style: var(--theme-font-display-style); color: rgb(var(--theme-color-14)); - min-height: 2.5em; display: inline-flex; flex-direction: row; justify-content: center; flex-wrap: nowrap; + line-height: 1.2; } -.is-header-item-alignment-left .transitional { +.is-header-item-justify-left .transitional { justify-content: flex-start; text-align: left; } -.is-header-item-alignment-center .transitional { +.is-header-item-justify-center .transitional { justify-content: center; text-align: center; } -.is-header-item-alignment-right .transitional { +.is-header-item-justify-right .transitional { justify-content: flex-end; text-align: right; } diff --git a/src/html/menu/menu-content/bookmarks.html b/src/html/menu/menu-content/bookmarks.html index 47a5b372..cbd1d3d7 100644 --- a/src/html/menu/menu-content/bookmarks.html +++ b/src/html/menu/menu-content/bookmarks.html @@ -20,26 +20,26 @@
Effects may not be visible if the Bookmark Area is full width.
+Effects may not be visible if the Bookmark Area is full width.
Effects may not be visible if the Group Name is not shown.
+Effects may not be visible if the Group Name is not shown.
Effects may not be visible if the Header Area is full width.
+Effects may not be visible if the Header Area is full width.
+Header items aligned to each others centres.
+Header items aligned to the text baseline. Useful for when the Clock, Date and other text is sized large and need to sit on a line.
Effects may not be visible if the Search box size is set to Auto and grows to fill available space.
+Effects may not be visible if the Search box size is set to Auto and grows to fill available space.