Skip to content

Commit 1674a08

Browse files
committed
[design] improve menu form spacing
1 parent 3db5bba commit 1674a08

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
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": "4.27.0",
3+
"version": "4.28.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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
}
6565

6666
.menu-content{
67-
padding:01.5em;
67+
padding:0calc(var(--menu-space) *3);
6868
}
6969

7070
.menu-content-area{
@@ -82,15 +82,15 @@
8282
}
8383

8484
.menu-item-header{
85-
padding:2em0;
85+
padding:calc(var(--menu-space) *2)0;
8686
}
8787

8888
.menu-item-header-text{
8989
margin-bottom:0;
9090
}
9191

9292
.menu-item-form{
93-
padding:002em2em;
93+
padding:00calc(var(--menu-space) *3) calc(var(--menu-space) *3);
9494
z-index:1;
9595
}
9696

@@ -147,7 +147,7 @@
147147
}
148148

149149
.menu-content{
150-
padding:03em;
150+
padding:0calc(var(--menu-space) *4);
151151
overflow-y: auto;
152152
}
153153

@@ -160,7 +160,7 @@
160160
}
161161

162162
.menu-item-header{
163-
padding:2em0;
163+
padding:calc(var(--menu-space) *1.75)0;
164164
position: sticky;
165165
top:0;
166166
z-index:3;
@@ -172,7 +172,7 @@
172172
}
173173

174174
.menu-item-form{
175-
padding:2em0;
175+
padding:calc(var(--menu-space) *2.5)0;
176176
z-index:2;
177177
}
178178
}

‎src/css/variables.css‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@
214214
--form-ring-accent:000var(--layout-line-width) rgb(var(--theme-accent)),
215215
000calc(var(--layout-line-width) *2) rgba(var(--theme-accent),0.25);
216216
--form-wrap-space:0.75em;
217+
/* menu */
218+
--menu-space:0.75em;
217219
/* button */
218220
--button-background:var(--theme-color-02);
219221
--button-background-focus-hover:var(--theme-color-03);

‎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="4.27.0";
3+
varcurrent="4.28.0";
44

55
varname="Naughty Goose";
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": "4.27.0",
5+
"version": "4.28.0",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)