diff options
author | crupest <crupest@outlook.com> | 2023-07-17 21:44:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-07-17 21:44:57 +0800 |
commit | dcc80565514de8a44b50984c427a873a1779490a (patch) | |
tree | 2e16f30872e1b74a31713326e060a0d599bc773c /docker/crupest-nginx/sites/www/src/style.css | |
parent | e006e3ce3a87fd122337ad00ee4fd08e58eddeea (diff) | |
download | crupest-dcc80565514de8a44b50984c427a873a1779490a.tar.gz crupest-dcc80565514de8a44b50984c427a873a1779490a.tar.bz2 crupest-dcc80565514de8a44b50984c427a873a1779490a.zip |
Slogan gets new animation. And color strip is now stripped.
Diffstat (limited to 'docker/crupest-nginx/sites/www/src/style.css')
-rw-r--r-- | docker/crupest-nginx/sites/www/src/style.css | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/docker/crupest-nginx/sites/www/src/style.css b/docker/crupest-nginx/sites/www/src/style.css index 445c783..2dbf0fb 100644 --- a/docker/crupest-nginx/sites/www/src/style.css +++ b/docker/crupest-nginx/sites/www/src/style.css @@ -6,6 +6,7 @@ body { width: 100%; margin: 0; box-sizing: border-box; + transition: padding-top 1s; } #main-article { @@ -18,36 +19,38 @@ body { } } -#color-strip-container { +.slogan-container { width: 100%; - height: 36px; + position: fixed; + top: 0; } -.color-strip-block { - display: inline-block; - width: 10%; - height: 100%; - line-height: 36px; - vertical-align: middle; - text-align: center; - color: white; -} - -#slogan { +.slogan { width: 100%; - text-align: center; padding: 0.5em 1em; + text-align: center; box-sizing: border-box; + position: absolute; + transform: translateY(-100%); + transition: transform 1s; } -#slogan.good { +.slogan.happy { background-color: dodgerblue; } -#slogan.bad { +.slogan.angry { background-color: orangered; } +.slogan-container[data-slogan-emotion="happy"] .slogan.happy { + transform: translateY(0); +} + +.slogan-container[data-slogan-emotion="angry"] .slogan.angry { + transform: translateY(0); +} + .slogan-text { display: inline-block; text-align: initial; |