diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-07-09 18:21:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 18:21:29 -0400 |
commit | 22f048e527552cf0451ea03e0e9bd869b6ad240b (patch) | |
tree | 12dd8346c4f4bb42905e2b91b25c25107aa24833 /ext/css/material.css | |
parent | d446484947d1d3c41cadf1d04dbdd4d69f89e3d1 (diff) |
Update Anki field marker menu (#1816)
* Update anki field marker menu to have less vertical padding
* Update positioning of field marker menu
Diffstat (limited to 'ext/css/material.css')
-rw-r--r-- | ext/css/material.css | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/css/material.css b/ext/css/material.css index b19b0b0f..3aa6b18b 100644 --- a/ext/css/material.css +++ b/ext/css/material.css @@ -1211,6 +1211,9 @@ button.popup-menu-item { button.popup-menu-item:not([hidden]) { display: flex; } +button.popup-menu-item.popup-menu-item-thin { + --button-padding-vertical: 0.375em; +} .popup-menu-item-icon { width: calc(16em / var(--font-size-no-units)); height: calc(16em / var(--font-size-no-units)); @@ -1236,6 +1239,10 @@ button.popup-menu-item:not([hidden]) { font-size: var(--font-size-small); } +:root[data-page-type=popup] .popup-menu.popup-menu-auto-size button.popup-menu-item.popup-menu-item-thin, +.popup-menu.popup-menu-small button.popup-menu-item.popup-menu-item-thin { + --button-padding-vertical: 0.25em; +} .popup-menu-item-group { position: relative; display: flex; |