diff --git a/src/popup.css b/src/popup.css index 9e5b1db..affd7cb 100644 --- a/src/popup.css +++ b/src/popup.css @@ -74,6 +74,8 @@ 0px 2px 4px -1px rgba(0, 0, 0, 0.05), 0px 0px 0px 3px var(--color-l-alpha-gray); --text-input-shadow-active: inset 0px 1px 0px 0px rgba(255, 255, 255, 1), inset 0px -1px 0px 0px rgba(0, 0, 0, 0.04), 0px 1px 6px 0px rgba(0, 0, 0, 0.07); + + --hide-speed: .2s; } input, select { @@ -151,16 +153,7 @@ label { margin-top: 8px; margin-left: 18px; gap: 6px; - height: 0; - transition: .5s; -} - -#other.show-other { - height: 297px; /* Height of other options */ -} - -#header-pov.show-other { - margin-top: 16px; + height: 297px; } #other li { @@ -190,21 +183,35 @@ label { align-items: center; gap: 6px; margin-top: 6px; + height: 26px; } .lhs { text-align: right; } -#also > li > button { + +.delete { + color: var(--icon-color); background-color: transparent; width: fit-content; margin: 0; padding: 0; + border: 0; + box-shadow: 0; + visibility: block; + scale: 1; + transition: all .1s allow-discrete; +} + +.delete:hover, .delete:focus { + color: var(--icon-color-hover); + outline: none; } .hide-button > button { visibility: hidden; + scale: 0; } body { @@ -267,7 +274,7 @@ button:not(.delete) { text-align: center; } -button > svg { +button:not(.delete) > svg { transform: translateY(-.15em); } @@ -408,25 +415,6 @@ label { text-align: right; } -#also > li > button { - color: var(--icon-color); - background-color: transparent; - width: 24px; - height: 24px; - margin: 0; - padding: 0; - border: 0; - box-shadow: 0; -} - -#also > li > button:hover { - color: var(--icon-color-hover); -} - -.hide-button > button { - visibility: hidden; -} - /* Links section */ @@ -450,3 +438,24 @@ a { a:hover{ color: var(--text-color); } + + +.hide { + height: 0 !important; + padding-top: 0 !important; + padding-bottom: 0 !important; + margin-top: 0 !important; + margin-bottom: 0 !important; + overflow: hidden !important; + opacity: 0 !important; +} + +.unhide { + transition: + height var(--hide-speed) ease-out, + padding-top var(--hide-speed) ease-out, + padding-bottom var(--hide-speed) ease-out, + margin-top var(--hide-speed) ease-out, + margin-bottom var(--hide-speed) ease-out, + opacity var(--hide-speed) linear !important; +} diff --git a/src/popup.html b/src/popup.html index ab70914..38be177 100644 --- a/src/popup.html +++ b/src/popup.html @@ -40,7 +40,7 @@ -