From ae345d2c458bd0952d9b85c2e03060b2d286d320 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 12 Feb 2024 17:26:08 +0200 Subject: buttons look great now, including unstyled ones menu items work too --- src/components/account_actions/account_actions.vue | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/components/account_actions/account_actions.vue') diff --git a/src/components/account_actions/account_actions.vue b/src/components/account_actions/account_actions.vue index ce19291a..1c3c1419 100644 --- a/src/components/account_actions/account_actions.vue +++ b/src/components/account_actions/account_actions.vue @@ -130,11 +130,6 @@ margin: -0.5em 0; padding: 0.5em 0; text-align: center; - - &:not(:hover) .icon { - color: $fallback--lightText; - color: var(--lightText, $fallback--lightText); - } } } -- cgit v1.2.3-70-g09d2 From fe93717d47792eef88f4ec6200260f457d1e0bd2 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 28 Feb 2024 01:23:43 +0200 Subject: consistent menu-items --- src/App.scss | 29 +++++++++++ src/components/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 ++++----- src/components/navigation/navigation_entry.vue | 56 ++++++++++------------ src/components/popover/popover.vue | 32 ++++--------- src/components/user_list_menu/user_list_menu.vue | 2 +- 8 files changed, 92 insertions(+), 85 deletions(-) (limited to 'src/components/account_actions/account_actions.vue') diff --git a/src/App.scss b/src/App.scss index 61ab44e6..2476791c 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 1c3c1419..cca7121c 100644 --- a/src/components/account_actions/account_actions.vue +++ b/src/components/account_actions/account_actions.vue @@ -11,14 +11,14 @@