From fe93717d47792eef88f4ec6200260f457d1e0bd2 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 28 Feb 2024 01:23:43 +0200 Subject: [PATCH] consistent menu-items --- src/App.scss | 29 ++++++++++ .../account_actions/account_actions.vue | 14 ++--- src/components/emoji_input/emoji_input.js | 2 +- src/components/emoji_input/emoji_input.vue | 20 +++---- .../moderation_tools/moderation_tools.vue | 22 +++---- .../navigation/navigation_entry.vue | 58 +++++++++---------- src/components/popover/popover.vue | 32 +++------- .../user_list_menu/user_list_menu.vue | 2 +- 8 files changed, 93 insertions(+), 86 deletions(-) diff --git a/src/App.scss b/src/App.scss index 61ab44e642..2476791c21 100644 --- a/src/App.scss +++ b/src/App.scss @@ -366,17 +366,42 @@ nav { } .menu-item { + display: block; + box-sizing: border-box; border: none; outline: none; text-align: initial; font-size: inherit; font-family: inherit; + font-weight: 400; cursor: pointer; color: inherit; + clear: both; position: relative; border-bottom: 1px solid; + white-space: nowrap; border-color: var(--border); width: 100%; + line-height: var(--__line-height); + padding: var(--__vertical-gap) var(--__horizontal-gap); + + --__line-height: 1.5em; + --__horizontal-gap: 0.75em; + --__vertical-gap: 0.5em; + + a, + button { + text-align: initial; + padding: 0; + background: none; + border: none; + outline: none; + display: inline; + font-size: 100%; + font-family: inherit; + line-height: unset; + color: var(--text); + } &:first-child { border-top-right-radius: var(--roundness); @@ -693,6 +718,10 @@ option { &.iconLetter { font-size: 1.1em; } + + &.svg-inline--fa { + vertical-align: -0.15em; + } } .fa-old-padding { diff --git a/src/components/account_actions/account_actions.vue b/src/components/account_actions/account_actions.vue index 1c3c1419cd..cca7121cfe 100644 --- a/src/components/account_actions/account_actions.vue +++ b/src/components/account_actions/account_actions.vue @@ -11,14 +11,14 @@