Skip to content

Commit ab9c919

Browse files
committed
[design] improve menu and modal
1 parent 11007ac commit ab9c919

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

‎css/menu.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
.menu-area{
2323
background-color:rgba(var(--gray-01),0.95);
2424
border-radius:var(--theme-radius);
25+
box-shadow:var(--shadow-large);
2526
width:100%;
2627
max-height:100%;
2728
overflow-y: auto;

‎css/modal.css‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
left:50%;
55
font-size:1em;
66
width:45em;
7-
max-width:calc(100%-6em);
7+
max-width:calc(100%-2em);
88
min-width:10em;
99
transform:translate(-50%,-50%);
1010
opacity:0;
@@ -23,24 +23,31 @@
2323
}
2424

2525
.modal-wrapper{
26-
box-sizing: border-box;
26+
background-color:rgb(var(--gray-01));
27+
border-radius:var(--theme-radius);
28+
box-shadow:var(--shadow-large);
2729
position: relative;
28-
transition: all var(--animation-speed-fast);
30+
max-height:calc(100vh-2em);
31+
overflow-y: auto;
32+
display: grid;
33+
grid-template-columns:1fr;
34+
grid-template-rows:1fr auto;
35+
justify-items: stretch;
36+
align-items: stretch;
37+
transition: opacity var(--animation-speed-fast);
2938
}
3039

3140
.modal-wrapper .container{
3241
max-width:100%;
3342
}
3443

3544
.is-transition-end .modal-wrapper{
36-
transition:allvar(--animation-speed-fast) ease-in-out;
45+
transition:opacityvar(--animation-speed-fast) ease-in-out;
3746
}
3847

3948
.modal-body{
40-
background-color:rgb(var(--gray-01));
4149
border-radius:var(--theme-radius) var(--theme-radius) 00;
4250
padding:2em;
43-
max-height:calc(90vh-3.6666666667em);
4451
overflow-y: auto;
4552
box-sizing: border-box;
4653
z-index:1;
@@ -57,9 +64,9 @@
5764

5865
.modal-controls{
5966
background-color:rgb(var(--gray-01));
67+
border-radius:00var(--theme-radius) var(--theme-radius);
6068
position: relative;
6169
z-index:2;
62-
border-radius:00var(--theme-radius) var(--theme-radius);
6370
display: flex;
6471
}
6572

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

55
varcompare=function(a,b){
66
varpa=a.split(".");

‎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": "3.18.0",
5+
"version": "3.19.0",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)