]> git.sesse.net Git - remoteglot/blobdiff - www/css/remoteglot.css
Make our own SVG sparkline, replacing jquery.sparkline.js.
[remoteglot] / www / css / remoteglot.css
index a928985e8b2abc19fbeb22f480e3a3ba3bfdc9d4..c2aba8fd410f885aaa861135b42e74ab726f2152 100644 (file)
@@ -14,17 +14,35 @@ h3 {
 #scorecontainer {
        font-size: x-large;
        margin-top: 0;
+       display: grid;
+       grid-template-columns: max-content 1fr;
+       gap: 12px;
 }
 #score {
-       float: left;
+       grid-column: 1;
 }
 #scoresparkcontainer {
+       grid-column: 2;
        overflow: hidden;
+       height: 0.85em;
+       margin-top: 0.15em;
+       width: 100%;
 }
 #scorespark {
        margin-left: 0.5em;
        margin-right: 0.5em;
 }
+#sparklinehover {
+       position: absolute;
+       display: none;
+       background-color: rgba(0, 0, 0, 0.6);
+       color: white;
+       font-size: 10px;
+       white-space: nowrap;
+       padding: 5px;
+       border: 1px solid white;
+       z-index: 10000;
+}
 #pvcontainer {
        clear: left;
        margin-top: 1em;