X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empathy%2Fempathy.css;h=36281bc3ab37d6f24d072bd3f152e37d9a28d5c2;hp=7e9bf3015a22e8778da33ea56991c37127172e98;hb=00002a9f80dae904c1629f2d0b06d2acc89e94bf;hpb=123507982e9643a1cf2d747fbd556fc3856bfa49 diff --git a/empathy/empathy.css b/empathy/empathy.css index 7e9bf30..36281bc 100644 --- a/empathy/empathy.css +++ b/empathy/empathy.css @@ -7,10 +7,12 @@ font-size: 200%; padding: 1em; margin-bottom: 0.25em; + position: relative; } .vote-choices { display: flex; + flex-wrap: wrap; } .vote-choice { @@ -33,6 +35,7 @@ .ambiguity-group { width: 100%; display: flex; + flex-wrap: wrap; justify-content: center; align-items: center; background-color: var(--accent-color); @@ -42,7 +45,6 @@ } .ambiguity-button { - width: 100%; border-radius: 10px; margin: 0; } @@ -51,3 +53,50 @@ 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; +}