Skip to content

Commit b03f2c2

Browse files
committed
[design] improve link item control animation
1 parent 2aa0769 commit b03f2c2

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
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": "5.46.0",
3+
"version": "5.47.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/link.css‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -881,16 +881,21 @@
881881
margin:0;
882882
padding:0;
883883
height:0;
884+
height:var(--link-item-edit-height);
885+
width:100%;
886+
position: absolute;
887+
bottom:calc(-1*var(--link-item-edit-height));
884888
display: flex;
885889
overflow: hidden;
886890
flex-direction: row;
887891
align-items: stretch;
888892
justify-content: center;
889-
transition:heightvar(--layout-timing-extra-fast);
893+
transition:bottomvar(--layout-timing-extra-fast);
890894
}
891895

892896
.is-edit .link-control{
893-
height:var(--link-item-edit-height);
897+
bottom:0;
898+
transition: bottom var(--layout-duration-05) cubic-bezier(0.68,-0.55,0.27,1.55);
894899
}
895900

896901
.link-control-item{
@@ -1019,13 +1024,14 @@
10191024
}
10201025

10211026
.link-url{
1022-
padding:01em;
1027+
height:var(--link-item-url-height);
10231028
width:100%;
1024-
height:0;
1029+
position: absolute;
1030+
bottom:calc(-1*var(--link-item-url-height));
10251031
overflow: hidden;
10261032
display: none;
10271033
align-items: center;
1028-
transition:allvar(--layout-timing-extra-fast);
1034+
transition:bottomvar(--layout-timing-extra-fast);
10291035
}
10301036

10311037
.is-link-item-url-show .link-url{
@@ -1053,12 +1059,12 @@
10531059
.is-link-item-url-show:not(.is-edit) .link-item:focus-within .link-url,
10541060
.is-link-item-url-show:not(.is-edit) .link-item:focus .link-url,
10551061
.is-link-item-url-show:not(.is-edit) .link-item:hover .link-url{
1056-
height:var(--link-item-url-height);
1062+
bottom:0;
10571063
}
10581064

10591065
.link-url-text{
1060-
margin:0;
1061-
font-size:0.7em;
1066+
margin:01em;
1067+
font-size:0.75em;
10621068
font-family:var(--theme-font-ui-name);
10631069
font-weight:var(--theme-font-ui-weight);
10641070
font-style:var(--theme-font-ui-style);
@@ -1076,7 +1082,7 @@
10761082

10771083
.is-edit .link-item:hover .link-url,
10781084
.is-edit .link-item:focus .link-url{
1079-
height:0;
1085+
bottom:calc(-1*var(--link-item-url-height));
10801086
}
10811087

10821088
.link-form-text-icon{

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

55
varname="Macabre Caterpillar";
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": "5.46.0",
5+
"version": "5.47.0",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)