aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-07-16 10:56:55 +0200
committerTaras Madan <tarasmadan@google.com>2024-07-16 15:11:04 +0000
commit65bedc1660e82c1da64f7be7e8212a0cc4aa531a (patch)
tree98b75e65e3912109d3bb69f35704834e9da502e6 /pkg/html
parent74c18f4671cb92f65ed24cac0427b7d83337257e (diff)
dashboard/app: coverage dropdown menu
Diffstat (limited to 'pkg/html')
-rw-r--r--pkg/html/pages/style.css56
1 files changed, 50 insertions, 6 deletions
diff --git a/pkg/html/pages/style.css b/pkg/html/pages/style.css
index 60e523ffa..8a7ab747d 100644
--- a/pkg/html/pages/style.css
+++ b/pkg/html/pages/style.css
@@ -19,23 +19,25 @@ h1, h2, h3, h4 {
border: 1px solid black;
padding: 4px;
margin: 4px;
+ display: inline-block;
}
+.navigation_tab a:hover {background-color: #ddd;}
+
.navigation_tab_selected {
font-weight: bold;
border: 3px solid black;
padding: 4px;
margin: 4px;
+ display: inline-block;
}
-.position_table .navigation {
+.navigation {
padding-top: 15px;
padding-bottom: 6px;
-}
-
-.position_table .navigation-right {
- padding-top: 15px;
- text-align: right;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
}
table {
@@ -426,3 +428,45 @@ aside {
padding: 5pt;
margin-bottom: 5pt;
}
+
+/* Dropdown Button */
+.dropbtn {
+ background-color: transparent;
+ color: #375EAB;
+ text-decoration: none;
+ border: none;
+ font-family: inherit;
+ font-size: inherit;
+}
+
+/* The container <div> - needed to position the dropdown content */
+.dropdown {
+ position: relative;
+ display: inline-block;
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+/* Dropdown Content (Hidden by Default) */
+.dropdown-content {
+ display: none;
+ position: absolute;
+ background-color: #f1f1f1;
+ z-index: 1;
+}
+
+/* Links inside the dropdown */
+.dropdown-content a {
+ color: black;
+ text-decoration: none;
+ display: block;
+}
+
+/* Change color of dropdown links on hover */
+.dropdown-content a:hover {background-color: #ddd;}
+
+/* Show the dropdown menu on hover */
+.dropdown:hover .dropdown-content {display: block;}
+
+/* Change the background color of the dropdown button when the dropdown content is shown */
+.dropdown:hover .dropbtn {background-color: #ddd;}