aboutsummaryrefslogtreecommitdiff
path: root/services/docker/nginx/sites/www/src/style.css
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-22 18:11:35 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-23 01:36:11 +0800
commit1e9b2436eaffa4130f6a69c3a108f6feb9dd4ac8 (patch)
tree585b6124b0100371b4bd8a291c4a59fbb5fbf1fe /services/docker/nginx/sites/www/src/style.css
parenta931457d61b053682d5e89a0cfb411e43e5e21c7 (diff)
downloadcrupest-1e9b2436eaffa4130f6a69c3a108f6feb9dd4ac8.tar.gz
crupest-1e9b2436eaffa4130f6a69c3a108f6feb9dd4ac8.tar.bz2
crupest-1e9b2436eaffa4130f6a69c3a108f6feb9dd4ac8.zip
feat(services): refactor structure.
Diffstat (limited to 'services/docker/nginx/sites/www/src/style.css')
-rw-r--r--services/docker/nginx/sites/www/src/style.css148
1 files changed, 148 insertions, 0 deletions
diff --git a/services/docker/nginx/sites/www/src/style.css b/services/docker/nginx/sites/www/src/style.css
new file mode 100644
index 0000000..05c98a0
--- /dev/null
+++ b/services/docker/nginx/sites/www/src/style.css
@@ -0,0 +1,148 @@
+html {
+ width: 100%;
+}
+
+body {
+ width: 100%;
+ margin: 0;
+ display: flex;
+ flex-direction: column;
+}
+
+a {
+ font-family: monospace;
+}
+
+.fake-link {
+ font-family: monospace;
+}
+
+#main-article {
+ max-width: 880px;
+ margin-top: 1em;
+ padding: 0 1em;
+ align-self: center;
+}
+
+#title-name {
+ font-family: monospace;
+ background-color: black;
+ color: white;
+}
+
+@keyframes content-enter {
+ from {
+ opacity: 0;
+ transform: translateY(100px);
+ }
+
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+@keyframes avatar-enter {
+ from {
+ opacity: 0;
+ transform: translateX(100%);
+ }
+
+ to {
+ opacity: 1;
+ transform: translateX(0);
+ }
+}
+
+#main-article > * {
+ animation: content-enter 0.8s;
+}
+
+#avatar {
+ float: right;
+ animation: avatar-enter 0.8s;
+}
+
+.slogan-container {
+ width: 100vw;
+ top: 0;
+ position: fixed;
+}
+
+.slogan {
+ width: 100%;
+ padding: 0.5em 1em;
+ text-align: center;
+ box-sizing: border-box;
+ color: white;
+ position: absolute;
+ transform: translateY(-100%);
+ transition: transform 0.8s;
+}
+
+.slogan.happy {
+ background-color: dodgerblue;
+}
+
+.slogan.angry {
+ background-color: orangered;
+}
+
+body[data-emotion="happy"] .slogan.happy {
+ transform: translateY(0);
+}
+
+body[data-emotion="angry"] .slogan.angry {
+ transform: translateY(0);
+}
+
+#friends-container {
+ display: flex;
+ gap: 1em;
+}
+
+.friend {
+ flex-grow: 0;
+ text-align: center;
+}
+
+.friend a {
+ font-family: unset;
+}
+
+.friend-avatar {
+ object-fit: cover;
+}
+
+.friend-github {
+ width: 1em;
+ vertical-align: middle;
+ margin-right: -0.5em;
+}
+
+.friend-tag {
+ font-size: 0.8em;
+}
+
+.citation {
+ margin: auto;
+}
+
+.citation figcaption {
+ text-align: right;
+}
+
+#license a {
+ font-family: initial;
+ text-decoration: none;
+}
+
+#license-text {
+ font-family: monospace;
+ text-decoration: initial;
+}
+
+#license-img-container img {
+ height: 1em;
+ vertical-align: middle;
+}