Skip to content

Commit 494f1fc

Browse files
committed
[design] improve menu nav and close spacing when radius is increased
1 parent aaf693a commit 494f1fc

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nightTab",
3-
"version": "5.18.1",
3+
"version": "5.19.0",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
55
"main": "index.js",
66
"scripts":{

‎src/css/menu.css‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@
8181
line-height:1;
8282
}
8383

84-
.menu-close-tab:after{
85-
background-color: transparent;
86-
border-radius:0;
87-
}
88-
8984
.menu-subnav{
9085
display: none;
9186
}
@@ -209,7 +204,7 @@
209204
}
210205

211206
.menu-nav-tab{
212-
padding-left:calc(var(--menu-space) *2);
207+
padding-left:calc(calc(var(--menu-space) *2) +calc(var(--theme-radius) /3));
213208
padding-right:calc(var(--menu-space) *2);
214209
height:calc(var(--menu-space) *4);
215210
justify-content: flex-start;
@@ -238,7 +233,7 @@
238233
margin:0;
239234
padding-top:0;
240235
padding-bottom:0;
241-
padding-left:calc(var(--menu-space) *5);
236+
padding-left:calc(calc(var(--menu-space) *4) +calc(var(--theme-radius) /3));
242237
border-radius:0;
243238
height:3em;
244239
min-height:3em;
@@ -263,8 +258,12 @@
263258
}
264259

265260
.menu-close-tab{
261+
border-radius:var(--theme-radius);
266262
height:calc(var(--menu-space) *4);
267263
width:calc(var(--menu-space) *4);
264+
position: relative;
265+
top:calc(var(--theme-radius) /6);
266+
right:calc(var(--theme-radius) /6);
268267
}
269268

270269
.menu-item-form{

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="5.18.1";
3+
varcurrent="5.19.0";
44

55
varname="Zonked Tarsier";
66

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "5.18.1",
5+
"version": "5.19.0",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)