logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 74b167f8dbdc480229d933f7b5ca598f845d5ff2
parent ca8e3cea8d1c852075105e7e1eac3161349f53f2
Author: Henry Jameson <me@hjkos.com>
Date:   Sun, 19 Jan 2025 14:36:55 +0200

fix+improvements to input visibility

Diffstat:

Msrc/App.scss69++++++++++++++++++++++++++++++++++++---------------------------------
Msrc/components/input.style.js2+-
Msrc/components/quick_view_settings/quick_view_settings.vue2+-
3 files changed, 38 insertions(+), 35 deletions(-)

diff --git a/src/App.scss b/src/App.scss @@ -408,32 +408,11 @@ nav { } } -.menu-item, .list-item { - display: block; - box-sizing: border-box; - border: none; - outline: none; - text-align: initial; - color: inherit; - clear: both; - position: relative; - white-space: nowrap; border-color: var(--border); border-style: solid; border-width: 0; border-top-width: 1px; - width: 100%; - padding: var(--__vertical-gap) var(--__horizontal-gap); - background: transparent; - - --__line-height: 1.5em; - --__horizontal-gap: 0.75em; - --__vertical-gap: 0.5em; - - &.-non-interactive { - cursor: auto; - } &.-active, &:hover { @@ -455,18 +434,6 @@ nav { border-bottom-width: 1px; } - a, - button:not(.button-default) { - text-align: initial; - padding: 0; - background: none; - border: none; - outline: none; - display: inline; - font-family: inherit; - line-height: unset; - } - &:first-child { border-top-right-radius: var(--roundness); border-top-left-radius: var(--roundness); @@ -480,6 +447,42 @@ nav { } } +.menu-item, +.list-item { + display: block; + box-sizing: border-box; + border: none; + outline: none; + text-align: initial; + color: inherit; + clear: both; + position: relative; + white-space: nowrap; + width: 100%; + padding: var(--__vertical-gap) var(--__horizontal-gap); + background: transparent; + + --__line-height: 1.5em; + --__horizontal-gap: 0.75em; + --__vertical-gap: 0.5em; + + &.-non-interactive { + cursor: auto; + } + + a, + button:not(.button-default) { + text-align: initial; + padding: 0; + background: none; + border: none; + outline: none; + display: inline; + font-family: inherit; + line-height: unset; + } +} + .button-unstyled { border: none; outline: none; diff --git a/src/components/input.style.js b/src/components/input.style.js @@ -18,7 +18,7 @@ export default { { component: 'Root', directives: { - '--defaultInputBevel': 'shadow | $borderSide(#FFFFFF bottom 0.2), $borderSide(#000000 top 0.2), inset 0 0 2 #000000 / 0.15', + '--defaultInputBevel': 'shadow | $borderSide(#FFFFFF bottom 0.2), $borderSide(#000000 top 0.2), inset 0 0 2 #000000 / 0.15, 1 0 1 1 --text / 0.15, -1 0 1 1 --text / 0.15', '--defaultInputHoverGlow': 'shadow | 0 0 4 --text / 0.5', '--defaultInputFocusGlow': 'shadow | 0 0 4 4 --link / 0.5' } diff --git a/src/components/quick_view_settings/quick_view_settings.vue b/src/components/quick_view_settings/quick_view_settings.vue @@ -60,7 +60,7 @@ @click="showUserAvatars = !showUserAvatars" > <span - class="main-button" + class="input menu-checkbox" :class="{ 'menu-checkbox-checked': showUserAvatars }" :aria-hidden="true" />{{ $t('settings.mention_link_show_avatar_quick') }}