To match the expected motion from the button being pressed down, the label needs to move down by a few pixels to follow with shadow animation.
+2
-1
input.css
+1
-1
appview/pages/templates/timeline/home.html
History
2 rounds
3 comments
2 commits
expand
collapse
To match the expected motion from the button being pressed down, the label needs to move down by a few pixels to follow with shadow animation.
expand 3 comments
we override the padding of the top level button in several locations, so a change like this could break buttons across the site i think.
wouldn't using translate solve this correctly? this demo i have uses only translate: https://neumorphic-button.surge.sh, and it correctly moves the text as well.
using translate to move the child elements won't work on the buttons where the text label is not inside a node, which are most of them, it also causes a visual bug with icons on safari due to some SVG subpixel issues
fwiw i do think the buttons need a bigger redesign for this change to work well across the site, neumorphism works well with on light theme, but on the dark theme it's hardly noticeable and the text labels moving when pressed might be jarring
1 commit
expand
collapse
To match the expected motion from the button being pressed down, the label needs to move down by a few pixels to follow with shadow animation.
This is to fix the buttons on the landing page, they are styled somewhat differently and this overrides the global class