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 | b20000e5948640875e13de83e7a9f9a166014271 (patch) | |
tree | 2e16f30872e1b74a31713326e060a0d599bc773c /docker/crupest-nginx/sites/www/src/style.css | |
parent | e866c53349b839c3e8bf44a6ff5aa4cb2e44ac76 (diff) | |
download | crupest-b20000e5948640875e13de83e7a9f9a166014271.tar.gz crupest-b20000e5948640875e13de83e7a9f9a166014271.tar.bz2 crupest-b20000e5948640875e13de83e7a9f9a166014271.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; |