patx/gitman

Unify header icon hover backgrounds and corner radius

Commit fc66bc3 · patx · Nov 4 at 1:54AM

Changeset
fc66bc3e2c7618ee82ac51f8d39c1463dbce6798
Parents
59ff71359b6edf9ce784de57b3ede6547ca83daf

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/static/styles.css b/static/styles.css
index 1592516..75dd33a 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -266,14 +266,15 @@ th { color: var(--ink); font-weight: 700; }
   justify-content: center;
   width: 40px;
   height: 40px;
+  border-radius: 8px;
   color: var(--text);
 }
-.nav-icons:hover { color: var(--ink); text-decoration: none; }
+.nav-icons:hover, .nav-icons:active { background: var(--chip); color: var(--ink); text-decoration: none; }
 .nav-icons svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
 .account-menu { position: relative; }
-.account-menu > summary { list-style: none; cursor: pointer; border-radius: 8px; }
+.account-menu > summary { list-style: none; cursor: pointer; }
 .account-menu > summary::-webkit-details-marker { display: none; }
-.account-menu > summary:hover, .account-menu[open] > summary { background: var(--chip); color: var(--ink); }
+.account-menu[open] > summary { background: var(--chip); color: var(--ink); }
 .account-menu > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
 .account-menu-links { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 30; min-width: 12rem; padding: .5rem; border: 1px solid var(--surface-border); border-radius: 8px; background: var(--surface); }
 .account-menu-links a { display: block; padding: .65rem .75rem; border-radius: 4px; color: var(--ink); white-space: nowrap; }
diff --git a/templates/base.tpl b/templates/base.tpl
index d9afb26..ef25dcb 100644
--- a/templates/base.tpl
+++ b/templates/base.tpl
@@ -20,7 +20,7 @@
   % if not get('landing', False) and theme != 'light':
     <link rel="stylesheet" href="/static/vendor/highlight.js/github-dark.min.css"{{!' media="(prefers-color-scheme: dark)"' if theme == 'auto' else ''}}>
   % end
-  <link rel="stylesheet" href="/static/styles.css?v=19">
+  <link rel="stylesheet" href="/static/styles.css?v=20">
 </head>
 <body class="{{'landing-page' if get('landing', False) else ''}}">
   % if not get("landing", False):