Skip to content

Commit cd776f5

Browse files
authored
[feature] make header items sortable
1 parent cec82cf commit cd776f5

31 files changed

+4305
-2781
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.36.0",
3+
"version": "4.37.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/button.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ button [class^="icon-"],
144144
button [class*=" icon-"],
145145
.button [class^="icon-"],
146146
.button [class*=" icon-"]{
147-
font-size:1.5em;
148147
line-height:1;
148+
font-size:1.5em;
149149
}
150150

151151
.button.active{

‎src/css/clock.css‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,26 @@
66
font-weight:var(--theme-font-display-weight);
77
font-style:var(--theme-font-display-style);
88
color:rgb(var(--theme-style-text));
9-
width:100%;
109
min-height:2.5em;
11-
display: flex;
10+
display:inline-flex;
1211
flex-direction: row;
1312
justify-content: flex-start;
1413
flex-wrap: wrap;
1514
}
1615

1716
.is-header-item-alignment-left .clock{
1817
justify-content: flex-start;
18+
text-align: left;
1919
}
2020

2121
.is-header-item-alignment-center .clock{
2222
justify-content: center;
23+
text-align: center;
2324
}
2425

2526
.is-header-item-alignment-right .clock{
2627
justify-content: flex-end;
28+
text-align: right;
2729
}
2830

2931
.clock-separator,
@@ -48,7 +50,7 @@
4850
.clock-seconds,
4951
.clock-meridiem{
5052
justify-content: center;
51-
min-width:1.25em;
53+
/* min-width: 1.25em; */
5254
}
5355

5456
.is-header-item-alignment-left .clock-item:not(:last-child){

‎src/css/date.css‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,26 @@
66
font-weight:var(--theme-font-display-weight);
77
font-style:var(--theme-font-display-style);
88
color:rgb(var(--theme-style-text));
9-
width:100%;
109
min-height:2.5em;
11-
display: flex;
10+
display:inline-flex;
1211
flex-direction: row;
1312
justify-content: flex-start;
1413
flex-wrap: wrap;
1514
}
1615

1716
.is-header-item-alignment-left .date{
1817
justify-content: flex-start;
18+
text-align: left;
1919
}
2020

2121
.is-header-item-alignment-center .date{
2222
justify-content: center;
23+
text-align: center;
2324
}
2425

2526
.is-header-item-alignment-right .date{
2627
justify-content: flex-end;
28+
text-align: right;
2729
}
2830

2931
.date-separator,

‎src/css/form.css‎

Lines changed: 51 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
padding:1.5em1em1em1em;
7373
position: sticky;
7474
top:0;
75-
z-index:2;
75+
z-index:4;
7676
}
7777

7878
/* label */
@@ -390,6 +390,44 @@ input[type="text"]:disabled:focus::placeholder{
390390
color:rgb(var(--form-placeholder-disabled));
391391
}
392392

393+
.input-clear[type="email"],
394+
.input-clear[type="number"],
395+
.input-clear[type="password"],
396+
.input-clear[type="search"],
397+
.input-clear[type="tel"],
398+
.input-clear[type="text"]{
399+
background-color: transparent;
400+
border-color: transparent;
401+
}
402+
403+
.input-clear[type="email"]:hover,
404+
.input-clear[type="number"]:hover,
405+
.input-clear[type="password"]:hover,
406+
.input-clear[type="search"]:hover,
407+
.input-clear[type="tel"]:hover,
408+
.input-clear[type="text"]:hover{
409+
background-color: transparent;
410+
border-color: transparent;
411+
box-shadow: none;
412+
}
413+
414+
.input-clear[type="email"]:focus,
415+
.input-clear[type="email"]:active,
416+
.input-clear[type="number"]:focus,
417+
.input-clear[type="number"]:active,
418+
.input-clear[type="password"]:focus,
419+
.input-clear[type="password"]:active,
420+
.input-clear[type="search"]:focus,
421+
.input-clear[type="search"]:active,
422+
.input-clear[type="tel"]:focus,
423+
.input-clear[type="tel"]:active,
424+
.input-clear[type="text"]:focus,
425+
.input-clear[type="text"]:active{
426+
background-color: transparent;
427+
border-color: transparent;
428+
box-shadow:var(--form-ring-accent);
429+
}
430+
393431
/* checkbox and radio */
394432
input[type="checkbox"],
395433
input[type="radio"]{
@@ -1324,7 +1362,6 @@ input[type="range"]:disabled::-moz-range-progress{
13241362
flex-direction: row;
13251363
justify-content: flex-start;
13261364
align-items: stretch;
1327-
z-index:1;
13281365
}
13291366

13301367
.form-group .form-wrap{
@@ -1508,7 +1545,7 @@ input[type="range"]:disabled::-moz-range-progress{
15081545
}
15091546

15101547
.form-group-border{
1511-
border-radius:calc(var(--theme-radius) *2);
1548+
border-radius:var(--theme-radius);
15121549
border-width:var(--layout-line-width);
15131550
border-color:rgb(var(--form-group-text-border));
15141551
border-style: solid;
@@ -1587,17 +1624,6 @@ input[type="range"]:disabled::-moz-range-progress{
15871624
cursor: default;
15881625
}
15891626

1590-
.form-group-text-transparent,
1591-
.form-group-text-transparent:hover,
1592-
.form-group-text-transparent:focus,
1593-
.form-group-text-transparent:active,
1594-
.form-group-text-transparent.disabled,
1595-
.form-group-text-transparent.disabled:hover,
1596-
.form-group-text-transparent.disabled:focus,
1597-
.form-group-text-transparent.disable:active{
1598-
background-color: transparent;
1599-
}
1600-
16011627
.form-group-item-small,
16021628
.form-group-item-medium,
16031629
.form-group-item-large,
@@ -1662,6 +1688,17 @@ input[type="range"]:disabled::-moz-range-progress{
16621688
min-width: inherit;
16631689
}
16641690

1691+
.form-group-text-transparent,
1692+
.form-group-text-transparent:hover,
1693+
.form-group-text-transparent:focus,
1694+
.form-group-text-transparent:active,
1695+
.form-group-text-transparent.disabled,
1696+
.form-group-text-transparent.disabled:hover,
1697+
.form-group-text-transparent.disabled:focus,
1698+
.form-group-text-transparent.disable:active{
1699+
background-color: transparent;
1700+
}
1701+
16651702
/* form dropdown */
16661703
.form-dropdown{
16671704
position: relative;

‎src/css/greeting.css‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,25 @@
66
font-weight:var(--theme-font-display-weight);
77
font-style:var(--theme-font-display-style);
88
color:rgb(var(--theme-style-text));
9-
width:100%;
109
min-height:2.5em;
11-
display: flex;
10+
display:inline-flex;
1211
flex-direction: row;
1312
justify-content: center;
1413
flex-wrap: nowrap;
1514
}
1615

1716
.is-header-item-alignment-left .greeting{
17+
justify-content: flex-start;
1818
text-align: left;
1919
}
2020

2121
.is-header-item-alignment-center .greeting{
22+
justify-content: center;
2223
text-align: center;
2324
}
2425

2526
.is-header-item-alignment-right .greeting{
27+
justify-content: flex-end;
2628
text-align: right;
2729
}
2830

0 commit comments

Comments
(0)