Skip to content

Commit 3b7cda4

Browse files
committed
[design] improve form group elements
1 parent 5904afb commit 3b7cda4

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
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.25.0",
3+
"version": "4.26.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/form.css‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,14 +1021,17 @@ input[type="range"]:disabled::-moz-range-progress{
10211021
.form-input-buttoninput[type="radio"]+label:after,
10221022
.form-input-buttoninput[type="color"]+label:after,
10231023
.form-input-buttoninput[type="file"]+label:after{
1024+
content:"";
10241025
background:rgb(var(--button-border));
1026+
border-radius:var(--theme-radius);
10251027
position: absolute;
1026-
content:"";
10271028
bottom:0;
10281029
left:0;
10291030
width:100%;
1030-
height:var(--layout-line-width);
1031+
height:100%;
1032+
clip-path:polygon(0calc(100%-var(--layout-line-width)),100%calc(100%-var(--layout-line-width)),100%100%,0%100%);
10311033
transition: background-color var(--layout-timing-extra-fast);
1034+
pointer-events: none;
10321035
}
10331036

10341037
.form-input-buttoninput[type="checkbox"]:focus+label:after,
@@ -1335,6 +1338,10 @@ input[type="range"]:disabled::-moz-range-progress{
13351338
.form-group .form-group-text,
13361339
.form-group .button,
13371340
.form-group .button:after,
1341+
.form-group .form-input-buttoninput[type="checkbox"]+label:after,
1342+
.form-group .form-input-buttoninput[type="radio"]+label:after,
1343+
.form-group .form-input-buttoninput[type="color"]+label:after,
1344+
.form-group .form-input-buttoninput[type="file"]+label:after,
13381345
.form-group>select,
13391346
.form-group>input[type="email"],
13401347
.form-group>input[type="number"],
@@ -1389,6 +1396,10 @@ input[type="range"]:disabled::-moz-range-progress{
13891396
.form-group .form-group-text:first-child,
13901397
.form-group .button:first-child,
13911398
.form-group .button:first-child:after,
1399+
.form-group .form-input-button:first-childinput[type="checkbox"]+label:after,
1400+
.form-group .form-input-button:first-childinput[type="radio"]+label:after,
1401+
.form-group .form-input-button:first-childinput[type="color"]+label:after,
1402+
.form-group .form-input-button:first-childinput[type="file"]+label:after,
13921403
.form-group>select:first-child,
13931404
.form-group>input[type="email"]:first-child,
13941405
.form-group>input[type="number"]:first-child,
@@ -1404,6 +1415,10 @@ input[type="range"]:disabled::-moz-range-progress{
14041415
.form-group .form-group-text:last-child,
14051416
.form-group .button:last-child,
14061417
.form-group .button:last-child:after,
1418+
.form-group .form-input-button:last-childinput[type="checkbox"]+label:after,
1419+
.form-group .form-input-button:last-childinput[type="radio"]+label:after,
1420+
.form-group .form-input-button:last-childinput[type="color"]+label:after,
1421+
.form-group .form-input-button:last-childinput[type="file"]+label:after,
14071422
.form-group>select:last-child,
14081423
.form-group>input[type="email"]:last-child,
14091424
.form-group>input[type="number"]:last-child,
@@ -1432,7 +1447,7 @@ input[type="range"]:disabled::-moz-range-progress{
14321447
}
14331448

14341449
.form-group.form-group-nested-button* .button,
1435-
.form-group.form-group-nested-button*:first-child .button:after,
1450+
.form-group.form-group-nested-button* .button:after,
14361451
.form-group.form-group-nested-button*input[type="checkbox"]+label,
14371452
.form-group.form-group-nested-button*input[type="radio"]+label,
14381453
.form-group.form-group-nested-button*input[type="color"]+label{

‎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.25.0";
3+
varcurrent="4.26.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.25.0",
5+
"version": "4.26.0",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)