From e016006ade7c5d0a335a2e6a34961142e61fbcda Mon Sep 17 00:00:00 2001 From: Fabien Basmaison Date: Sat, 10 Apr 2021 19:50:36 +0200 Subject: [PATCH] [css] Rename all classes consistently: :shamed: This commit addresses https://github.com/mouse-reeve/bookwyrm/pull/883#pullrequestreview-632930445. --- bookwyrm/static/css/bookwyrm.css | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bookwyrm/static/css/bookwyrm.css b/bookwyrm/static/css/bookwyrm.css index c7451a3fb..e4bca2032 100644 --- a/bookwyrm/static/css/bookwyrm.css +++ b/bookwyrm/static/css/bookwyrm.css @@ -49,8 +49,8 @@ html { display: none; } -.hidden.transition-y, -.hidden.transition-x { +.transition-x.is-hidden, +.transition-y.is-hidden { display: block !important; visibility: hidden !important; height: 0; @@ -59,16 +59,18 @@ html { padding: 0; } +.transition-x, .transition-y { - transition-property: height, margin-top, margin-bottom, padding-top, padding-bottom; transition-duration: 0.5s; transition-timing-function: ease; } .transition-x { transition-property: width, margin-left, margin-right, padding-left, padding-right; - transition-duration: 0.5s; - transition-timing-function: ease; +} + +.transition-y { + transition-property: height, margin-top, margin-bottom, padding-top, padding-bottom; } @media (prefers-reduced-motion: reduce) {