]> git.sesse.net Git - pkanalytics/blobdiff - ultimate.css
Support filtering passes by thrower and receiver.
[pkanalytics] / ultimate.css
index c62f18bc281adaf9f8456a35984cff138b70eb81..e6208f76e9a798c7b6aadd02c9f117bfd9faf652 100644 (file)
@@ -9,7 +9,7 @@
        font-weight: bold;
        padding-top: 10px;
        padding-bottom: 10px;
-       margin-bottom: 20px;
+       margin-bottom: 10px;
        font-size: 90%;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        color: rgba(0, 0, 0, 0.6);
        text-decoration: none;
 }
+.filter {
+       padding-left: 10px;
+       margin-top: 0;
+       padding-top: 0;
+       border-bottom: 1px solid #ddd;
+       padding-bottom: 10px;
+       margin-bottom: 10px;
+}
+.filtermenus {
+       margin-bottom: 20px;
+}
+.filter-icon {
+       vertical-align: middle;
+}
+.filter-legend {
+       vertical-align: bottom;
+       font-size: 14px;
+       font-weight: bold;
+}
+.filter-pill {
+       display: inline-block;
+       vertical-align: bottom;
+       margin-left: 5px;
+       margin-top: 0;
+       font-size: 13px;
+       background-color: #35f;
+       color: white;
+       border-radius: 6px;
+       padding-left: 6px;
+       padding-right: 6px;
+}
+.filter-click-to-add {
+       margin-left: 10px;
+       vertical-align: bottom;
+       font-size: 14px;
+       font-style: italic;
+       color: rgba(0, 0, 0, 0.4);
+}
+#filter-add-container {
+       display: inline-block;
+       top: 2px;
+}
+#filter-add-menu, #filter-submenu {
+       z-index: 1;
+}
+#filter-add-menu {
+       display: none;
+       /* display: block; */
+       border: 1px solid black;
+       position: absolute;
+       top: 27px;
+       left: 10px;
+       background: white;
+       width: 250px;
+}
+#filter-add-menu div.option, #filter-submenu div.option {
+       padding-left: 10px;
+       padding-top: 8px;
+       padding-bottom: 8px;
+       white-space: nowrap;
+}
+#filter-add-menu div.option:hover, #filter-submenu div.option:hover {
+       background-color: #eee;
+}
+#filter-add-menu div.arrow {
+       display: inline-block;
+       position: absolute;
+       right: 10px;
+}
+#filter-submenu {
+       display: none;
+       border: 1px solid black;
+       position: absolute;
+       top: 27px;  /* JavaScript will override with 35px extra for each line the submenu should be moved down. */
+       left: 261px;
+       background: white;
+}
+#filter-submenu div.option {
+       padding-right: 12px;
+}
+.filter:not(:nth-child(1 of .filter)) svg,
+.filter:not(:nth-child(1 of .filter)) .filter-legend {
+       opacity: 0;
+}
+div.option input[type="checkbox"] {
+       margin-right: 0.5em;
+}
 table {
        border-collapse: collapse;
+       margin-bottom: calc(100vh - 4lh);
 }
 th {
-       background-color: rgba(0, 0, 0, 0.05);
+       background-color: rgb(95% 95% 95%);
+       position: sticky;
+       z-index: 0;
+       top: 0;
 }
 tr {
        border-top: 1px solid #ddd;
@@ -60,3 +151,20 @@ td:not(.pad) {
 td.name {
        padding-right: 20px;
 }
+
+.ci, .invertedci, .fillerci {
+       vertical-align: middle;
+       margin-left: 8px;
+}
+
+.ci .marker { stroke: #000; stroke-width: 2px; }
+.ci .range.s0 { fill: #fdd; }
+.ci .range.s1 { fill: #dfd; }
+
+.invertedci .marker { stroke: #000; stroke-width: 2px; }
+.invertedci .range.s0 { fill: #dfd; }
+.invertedci .range.s1 { fill: #fdd; }
+
+.bar { fill: steelblue; }
+
+.filtermarker { font-size: smaller; text-transform: uppercase; }