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/popover/popover.vue | 62 ++------------------------------------ 1 file changed, 2 insertions(+), 60 deletions(-) (limited to 'src/components/popover/popover.vue') diff --git a/src/components/popover/popover.vue b/src/components/popover/popover.vue index 1a4bffd9..ce053503 100644 --- a/src/components/popover/popover.vue +++ b/src/components/popover/popover.vue @@ -53,8 +53,7 @@ position: fixed; min-width: 0; max-width: calc(100vw - 20px); - box-shadow: 2px 2px 3px rgb(0 0 0 / 50%); - box-shadow: var(--popupShadow); + box-shadow: var(--shadow); } .popover-default { @@ -66,24 +65,12 @@ left: 0; right: 0; z-index: 3; - box-shadow: 1px 1px 4px rgb(0 0 0 / 60%); - box-shadow: var(--panelShadow); + box-shadow: var(--shadow); pointer-events: none; } border-radius: $fallback--btnRadius; border-radius: var(--btnRadius, $fallback--btnRadius); - background-color: $fallback--bg; - background-color: var(--popover, $fallback--bg); - color: $fallback--text; - color: var(--popoverText, $fallback--text); - - --faint: var(--popoverFaintText, $fallback--faint); - --faintLink: var(--popoverFaintLink, $fallback--faint); - --lightText: var(--popoverLightText, $fallback--lightText); - --postLink: var(--popoverPostLink, $fallback--link); - --postFaintLink: var(--popoverPostFaintLink, $fallback--link); - --icon: var(--popoverIcon, $fallback--icon); } .dropdown-menu { @@ -127,7 +114,6 @@ svg { width: 22px; margin-right: 0.75rem; - color: var(--menuPopoverIcon, $fallback--icon); } } @@ -138,25 +124,6 @@ } } - &:active, - &:hover { - background-color: $fallback--lightBg; - background-color: var(--selectedMenuPopover, $fallback--lightBg); - box-shadow: none; - - --btnText: var(--selectedMenuPopoverText, $fallback--link); - --faint: var(--selectedMenuPopoverFaintText, $fallback--faint); - --faintLink: var(--selectedMenuPopoverFaintLink, $fallback--faint); - --lightText: var(--selectedMenuPopoverLightText, $fallback--lightText); - --icon: var(--selectedMenuPopoverIcon, $fallback--icon); - - svg { - color: var(--selectedMenuPopoverIcon, $fallback--icon); - - --icon: var(--selectedMenuPopoverIcon, $fallback--icon); - } - } - .menu-checkbox { display: inline-block; vertical-align: middle; @@ -188,30 +155,5 @@ } } } - - .button-default.dropdown-item { - &, - i[class*="icon-"] { - color: $fallback--text; - color: var(--btnText, $fallback--text); - } - - &:active { - background-color: $fallback--lightBg; - background-color: var(--selectedMenuPopover, $fallback--lightBg); - color: $fallback--link; - color: var(--selectedMenuPopoverText, $fallback--link); - } - - &:disabled { - color: $fallback--text; - color: var(--btnDisabledText, $fallback--text); - } - - &.toggled { - color: $fallback--text; - color: var(--btnToggledText, $fallback--text); - } - } } -- cgit v1.2.3-70-g09d2 From bcc50844096b47c0656ed3338de222055a749fb1 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 13 Feb 2024 02:09:43 +0200 Subject: add roundness, fix inputs --- src/App.scss | 27 ++++++----- src/components/autosuggest/autosuggest.vue | 10 ++--- src/components/avatar.style.js | 6 ++- src/components/button.style.js | 3 +- src/components/button_unstyled.style.js | 4 +- src/components/chat/chat.scss | 5 ++- src/components/emoji_input/emoji_input.vue | 19 +++----- src/components/input.style.js | 1 + src/components/link-preview/link-preview.vue | 6 +-- src/components/menu_item.style.js | 9 +++- src/components/mobile_nav/mobile_nav.vue | 4 +- .../moderation_tools/moderation_tools.vue | 14 +++--- src/components/nav_panel/nav_panel.vue | 12 ++--- src/components/navigation/navigation_pins.vue | 2 +- .../notifications/notification_filters.vue | 14 +++--- src/components/panel.style.js | 1 + src/components/popover.style.js | 1 + src/components/popover/popover.vue | 15 +++---- .../quick_filter_settings.vue | 12 ++--- .../quick_view_settings/quick_view_settings.vue | 10 ++--- src/components/root.style.js | 8 ---- .../settings_modal/tabs/profile_tab.scss | 3 +- src/components/shadow_control/shadow_control.vue | 6 +-- src/components/shout_panel/shout_panel.vue | 3 +- src/components/status/status.scss | 5 +-- src/components/status_popover/status_popover.vue | 5 +-- src/components/timeline/timeline.scss | 5 +-- src/components/user_avatar/user_avatar.vue | 14 +++--- src/components/user_card/user_card.scss | 3 +- src/components/user_list_menu/user_list_menu.vue | 2 +- src/panel.scss | 17 +++---- src/services/style_setter/style_setter.js | 2 +- src/services/theme_data/theme_data_3.service.js | 52 +++++++++++++++++----- 33 files changed, 150 insertions(+), 150 deletions(-) (limited to 'src/components/popover/popover.vue') diff --git a/src/App.scss b/src/App.scss index 6a634926..8efa1328 100644 --- a/src/App.scss +++ b/src/App.scss @@ -355,8 +355,7 @@ nav { user-select: none; color: var(--text); border: none; - border-radius: $fallback--btnRadius; - border-radius: var(--btnRadius, $fallback--btnRadius); + border-radius: var(--roundness); cursor: pointer; box-shadow: var(--shadow); font-size: 1em; @@ -380,6 +379,16 @@ nav { font-family: inherit; cursor: pointer; color: inherit; + + &:first-child { + border-top-right-radius: var(--roundness); + border-top-left-radius: var(--roundness); + } + + &:last-child { + border-bottom-right-radius: var(--roundness); + border-bottom-left-radius: var(--roundness); + } } .button-unstyled { @@ -423,8 +432,7 @@ textarea { --_padding: 0.5em; border: none; - border-radius: $fallback--inputRadius; - border-radius: var(--inputRadius, $fallback--inputRadius); + border-radius: var(--roundness); box-shadow: var(--shadow); font-family: sans-serif; font-family: var(--inputFont, sans-serif); @@ -511,8 +519,7 @@ textarea { transition: color 200ms; width: 1.1em; height: 1.1em; - border-radius: $fallback--checkboxRadius; - border-radius: var(--checkboxRadius, $fallback--checkboxRadius); + border-radius: var(--roundness); box-shadow: 0 0 2px black inset; box-shadow: var(--inputShadow); margin-right: 0.5em; @@ -562,7 +569,7 @@ option { li { border: 1px solid var(--border); - border-radius: var(--inputRadius); + border-radius: var(--roundness); padding: 0.5em; margin: 0.25em; } @@ -634,8 +641,7 @@ option { .alert { margin: 0 0.35em; padding: 0 0.25em; - border-radius: $fallback--tooltipRadius; - border-radius: var(--tooltipRadius, $fallback--tooltipRadius); + border-radius: var(--roundness); &.error { background-color: $fallback--alertError; @@ -682,8 +688,7 @@ option { padding: 0.5em; border: 1px solid $fallback--faint; border: 1px solid var(--faint, $fallback--faint); - border-radius: $fallback--inputRadius; - border-radius: var(--inputRadius, $fallback--inputRadius); + border-radius: var(--roundness); } .notice-dismissible { diff --git a/src/components/autosuggest/autosuggest.vue b/src/components/autosuggest/autosuggest.vue index 64cc11a4..7912db94 100644 --- a/src/components/autosuggest/autosuggest.vue +++ b/src/components/autosuggest/autosuggest.vue @@ -1,3 +1,4 @@ +