]>
Git — Sourcephile - haskell/literate-web.git/blob - www/live-indicator.html
2 The inline CSS here is roughly analogous to the ones generated by Tailwind.
3 See the original version based on Tailwind`: https://gist.github.com/srid/2471813953a6df9b24909b9bb1d3cd2b
15 text-size-adjust: 100%;
16 " id=
"live-indicator">
26 box-sizing: border-box;
29 border-color: rgb(229 231 235);
30 background-color: rgb(255 255 255);
31 border-radius: 9999px;
32 box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
33 transition-property: width, height;
34 transition-duration: 500ms;
35 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
36 " onMouseOver=
"this.style.width='100%'" onMouseOut=
"this.style.width='2rem'" id=
"live-status" title=
"Live Status">
41 background-color: rgb(22 163 74);
42 border-radius: 9999px;
43 " id=
"live-connected"></div>
48 border-radius: 9999px;
49 animation: spin 1s linear infinite;
50 background-image: linear-gradient(to right, var(--tw-gradient-stops));
51 --tw-gradient-from: #93c5fd;
52 --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
53 --tw-gradient-to: #2563eb;
54 " id=
"live-reloading">
58 transform: rotate(
0deg);
62 transform: rotate(
360deg);
71 border-radius: 9999px;
72 background-color: rgb(234 179 8);
73 " id=
"live-connecting">
78 border-radius: 9999px;
79 background-color: rgb(234 179 8);
80 animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
98 border-radius: 9999px;
99 background-color: rgb(239 68 68);
100 " id=
"live-disconnected"></div>
101 <p style=
"white-space: nowrap;" id=
"live-message"></p>