summaryrefslogtreecommitdiff
path: root/server/web/game/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'server/web/game/style.css')
-rw-r--r--server/web/game/style.css160
1 files changed, 127 insertions, 33 deletions
diff --git a/server/web/game/style.css b/server/web/game/style.css
index 83f06ad..d7baa20 100644
--- a/server/web/game/style.css
+++ b/server/web/game/style.css
@@ -2,58 +2,152 @@
display: none;
}
-#distance {
+#actions {
+ position: absolute;
+ bottom: 0;
+ width: 80%;
+ margin: 0 auto 0 auto;
+ transform: translateY(80%);
+ transition: transform 0.2s ease-in-out;
+ padding: 1em;
+ border: solid 2px black;
+ border-bottom: none;
+ border-radius: 1em 1em 0 0;
+ background-color: slategray;
- & .label {
- position: relative;
+ &:hover {
+ transform: translateY(0);
+ }
+}
+
+.action button {
+ border-color: lightpink;
+ background-color: rgba(41, 24, 24, 0.4);
+ color: floralwhite;
+}
- bottom: 0;
- margin-bottom: 4px;
+.sakura {
+ transition-property: opacity;
+ transition-duration: 0.5s;
+ opacity: 1;
- &.pool-name {
- left: 0;
- }
+ /* noninteractive and style override */
+ pointer-events: none;
+ -webkit-appearance: none;
+ appearance: none;
+ background-color: transparent;
- &.pool-value {
- right: 0;
- }
+ &::before {
+ content: "🌸"
}
- & .content {
- display: flex;
- justify-content: center;
+ font-size: 2em;
+ @starting-style{
+ opacity: 0;
+ }
+}
- & input[type=checkbox] {
- pointer-events: none;
- -webkit-appearance: none;
- appearance: none;
- background-color: transparent;
- margin: 4px;
- font-size: 2em;
+body {
+ overflow: hidden;
+}
- @media (prefers-reduced-motion: no-preference) {
- animation: 5s shake ease-in-out alternate infinite;
+.background {
+ position: absolute;
+ top: 0;
+ height: 100%;
+ background-image: url("/game/assets/sea-water-texture-seamless.jpg");
+ animation: alternate scroll 60s infinite ease-in-out;
+ z-index: -1;
+ filter: contrast(10%);
+ width: 200vw;
+
+}
+
+#arena {
+
+ margin: 0 2em;
+
+ display: flex;
+ flex-direction: row-reverse;
+ justify-content: left;
+
+ & #distance {
+ & .label {
+ position: relative;
+
+ bottom: 0;
+
+ &.pool-name {
+ left: 0;
}
- &::before {
- color: lightseagreen;
- content: "î¼°"
+ &.pool-value {
+ right: 0;
+ }
+ }
+
+ & .sakura {
+ height: 0.6em;
+
+ text-shadow: 0 0 0.5em #70b8da;
+
+ @media (prefers-reduced-motion: no-preference) {
+ animation: 1s sway ease-in-out alternate infinite;
}
- &:checked {
- &::before {
- content: "🌸"
- }
+ &:not(:checked) {
+ filter: grayscale(85%) contrast(25%);
}
}
+
+ & .content {
+ display: flex;
+ justify-content: center;
+ flex-direction: column;
+ }
+ }
+}
+
+@keyframes sway {
+ from {
+ transform: translateY(6%) rotateX(-5deg)
+ }
+ to {
+ transform: translateY(-6%) rotateX(5deg)
}
}
-@keyframes shake {
+@keyframes scroll {
from {
- transform: translateY(0) rotateZ(0deg)
+ transform: translateX(-30%) rotateX(5deg)
}
to {
- transform: translateY(12%) rotateZ(60deg)
+ transform: translateX(-60%) rotateX(-5deg)
}
+}
+
+#remote-player {
+ transform: rotateX(180deg);
+}
+
+.pool {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-around;
+
+ &.life {
+ background-color: rgba(139, 0, 0, 0.57);
+ border: solid 0.2em indianred;
+ border-top: none;
+ }
+
+ &.aura {
+ background-color: rgba(173, 216, 230, 0.6);
+ border-radius: 1em 1em 0 0;
+ box-shadow: 0 0 0.4em lightskyblue;
+ }
+}
+
+#shadow {
+ flex-basis: 50%;
} \ No newline at end of file