]> git.cworth.org Git - lmno.games/blobdiff - empathy/empathy.css
Add some autofocus attributes
[lmno.games] / empathy / empathy.css
index f3a4c4b4cd0c60dc43222cbea0edbbabef96f182..a32f2de96fa2f2843eeb3b4e602d6c43bb03542a 100644 (file)
@@ -6,5 +6,137 @@
     border-radius: 25px;
     font-size: 200%;
     padding: 1em;
-    margin-top: 0.25em;
+    margin-bottom: 0.25em;
+    position: relative;
+}
+
+.vote-choices {
+    display: flex;
+    flex-wrap: wrap;
+}
+
+.vote-choice {
+    font-size: 40%;
+    background-color: var(--accent-color-bright);
+    color: var(--text-fg-on-accent-bright);
+    border-radius: 4px;
+    padding-left: 4px;
+    padding-right: 4px;
+    margin-right: 0.5em;
+}
+
+@media (hover:hover) {
+    button:hover .vote-choice {
+        background-color: var(--accent-color);
+        color: var(--text-fg-on-accent);
+    }
+}
+
+.ambiguity-group {
+    width: 100%;
+    display: flex;
+    flex-wrap: wrap;
+    justify-content: center;
+    align-items: center;
+    background-color: var(--accent-color);
+    margin-bottom: 0.25em;
+    padding: 0;
+    border-radius: 10px;
+    position: relative;
+}
+
+.ambiguity-button {
+    border-radius: 10px;
+    margin: 0;
+    overflow-wrap: break-word;
+    overflow-y: hidden;
+}
+
+.ambiguity-button.selected {
+    background-color: var(--accent-color-bright);
+    color: var(--text-fg-on-accent-bright);
+}
+
+@keyframes bounce {
+    0% {
+        transform: translateY(0);
+        animation-timing-function: cubic-bezier(0.333, 0.667, 0.667, 1);
+    }
+    20% {
+        transform: translateY(-5px);
+        animation-timing-function: cubic-bezier(0.333, 0, 0,667, 0.333);
+    }
+    40% {
+        transform: translateY(0);
+    }
+    100% {
+        transform: translateY(0);
+    }
+}
+
+.typing span {
+    font-size: 150%;
+    line-height: 0;
+
+    display: inline-block;
+    animation-name: bounce;
+    animation-duration: 2s;
+    animation-iteration-count: infinite;
+    animation-timing-function: linear;
+}
+
+.typing span:nth-child(2) {
+    animation-delay: .2s;
+}
+
+.typing span:nth-child(3) {
+    animation-delay: .4s;
+}
+
+.typing.active span {
+    opacity: 1.0;
+}
+
+.typing.idle span {
+    opacity: 0.0;
+    transition-property: opacity;
+    transition-duration: 2s;
+    transition-delay: 1s;
+}
+
+.achievement {
+    border-radius: 4px;
+    background-color: var(--accent-color-bright);
+    color: var(--text-fg-on-accent-bright);
+    font-size: 72%;
+    font-weight: bold;
+    padding: 0.25em;
+    text-transform: uppercase;
+}
+
+.star-button {
+    color: white;
+    opacity: 0.5;
+    font-size: 125%;
+    font-weight: bold;
+    cursor: pointer;
+    position: absolute;
+    right: 0.5em;
+    top: 0;
+}
+
+@media (hover:hover) {
+    .star-button:hover {
+        color: var(--accent-color-bright);
+        opacity: 1.0;
+    }
+}
+
+.star-button.selected {
+    color: var(--accent-color-bright);
+    opacity: 1.0;
+}
+
+.player-idle {
+    opacity: 0.5;
 }