Skip to content

Commit c6e90a7

Browse files
committed
[feature] nightTab details added to menu
1 parent 749c0c9 commit c6e90a7

File tree

6 files changed

+65
-8
lines changed

6 files changed

+65
-8
lines changed

‎src/css/menu.css‎

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,9 @@
9696
.menu-nav-button{
9797
background-color: transparent;
9898
margin:0;
99-
padding-top:1em;
100-
padding-bottom:1em;
99+
padding:1em;
101100
border-radius:0;
102101
flex-grow:1;
103-
flex-basis:33%;
104102
}
105103

106104
.menu-nav-button:first-child{
@@ -118,6 +116,11 @@
118116
.menu{
119117
width:80vw;
120118
}
119+
120+
.menu-nav-button{
121+
flex-basis:33%;
122+
max-width:33%;
123+
}
121124
}
122125

123126
@media (min-width:700px){
@@ -157,6 +160,11 @@
157160
z-index:3;
158161
}
159162

163+
.menu-nav-button{
164+
flex-basis:50%;
165+
max-width:50%;
166+
}
167+
160168
.menu-item-form{
161169
padding:2em0;
162170
z-index:2;
@@ -171,11 +179,17 @@
171179
.menu-item{
172180
grid-template-columns:1fr2fr;
173181
}
182+
183+
.menu-nav-button{
184+
flex-basis:33%;
185+
max-width:33%;
186+
}
174187
}
175188

176189
@media (min-width:1100px){
177190
.menu-nav-button{
178191
flex-basis:0;
192+
max-width: inherit;
179193
}
180194
}
181195

‎src/css/typography.css‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ h6{
4545
}
4646

4747
p{
48-
color:rgb(var(--theme-style-text));
48+
color:rgb(var(--theme-gray-16));
4949
margin:0;
5050
line-height:1.5;
5151
}
@@ -54,6 +54,10 @@ p:not(:last-child){
5454
margin-bottom:0.5em;
5555
}
5656

57+
.p-wrap{
58+
padding:0.5em0;
59+
}
60+
5761
hr{
5862
border:0;
5963
border-top:1px solid rgb(var(--theme-gray-02));
@@ -65,6 +69,7 @@ hr{
6569
b,
6670
caption,
6771
strong{
72+
color:rgb(var(--theme-style-text));
6873
font-family:var(--font-bold);
6974
}
7075

@@ -75,7 +80,7 @@ a{
7580

7681
a:link,
7782
a:visited{
78-
color:rgb(var(--theme-gray-16));
83+
color:rgb(var(--theme-gray-18));
7984
}
8085

8186
a:focus{
@@ -92,6 +97,19 @@ a:active{
9297
color:rgb(var(--theme-style-text));
9398
}
9499

100+
.a-underline{
101+
padding-bottom:var(--layout-line-width);
102+
border-bottom-width:calc(var(--layout-line-width) /2);
103+
border-bottom-style: solid;
104+
border-bottom-color:rgb(var(--theme-gray-06));
105+
transition: color var(--layout-animation-speed-fast), border-color var(--layout-animation-speed-fast);
106+
}
107+
108+
.a-underline:hover{
109+
text-decoration: none;
110+
border-bottom-color:rgb(var(--theme-accent));
111+
}
112+
95113
ol,
96114
ul{
97115
margin:0;

‎src/index.html‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<buttonclass="menu-nav-button button" data-target=".menu-content-area-theme" tabindex="1">Theme</button>
115115
<buttonclass="menu-nav-button button" data-target=".menu-content-area-background" tabindex="1">Background</button>
116116
<buttonclass="menu-nav-button button" data-target=".menu-content-area-data" tabindex="1">Data</button>
117+
<buttonclass="menu-nav-button button" data-target=".menu-content-area-nightTab" tabindex="1">nightTab</button>
117118
</div>
118119
<divclass="menu-nav-area">
119120
<buttonclass="menu-close button button-block mb-0" tabindex="1"><spanclass="icon-close"></span></button>
@@ -1042,6 +1043,19 @@ <h1 class="menu-item-header-text">Clear</h1>
10421043
</div>
10431044
</div>
10441045

1046+
<divclass="menu-content-area menu-content-area-nightTab is-hidden">
1047+
<divclass="menu-item">
1048+
<divclass="menu-item-header">
1049+
<h1class="menu-item-header-text">nightTab</h1>
1050+
</div>
1051+
<divclass="menu-item-form">
1052+
<pclass="p-wrap">Version <strongclass="display-version"></strong></p>
1053+
<hr>
1054+
<pclass="p-wrap">For feedback and support, submit an <ahref="https://github.com/zombieFox/nightTab/issues" class="a-underline" target="_blank">Issues.</a></p>
1055+
</div>
1056+
</div>
1057+
</div>
1058+
10451059
</div>
10461060

10471061
</div>

‎src/js/init.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ search.init();
1818
title.init();
1919
header.init();
2020
theme.init();
21+
version.init();

‎src/js/version.js‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="3.22.0";
3+
varcurrent="3.23.0";
44

55
varcompare=function(a,b){
66
varpa=a.split(".");
@@ -29,10 +29,20 @@ var version = (function(){
2929
returncurrent;
3030
};
3131

32+
varrender=function(){
33+
helper.e(".display-version").textContent=get();
34+
};
35+
36+
varinit=function(){
37+
render();
38+
};
39+
3240
// exposed methods
3341
return{
42+
init: init,
3443
get: get,
35-
compare: compare
44+
compare: compare,
45+
render: render
3646
};
3747

3848
})();

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

0 commit comments

Comments
(0)