From bcc50844096b47c0656ed3338de222055a749fb1 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 13 Feb 2024 02:09:43 +0200 Subject: [PATCH] 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.vue | 10 ++-- src/components/root.style.js | 8 --- .../settings_modal/tabs/profile_tab.scss | 3 +- .../shadow_control/shadow_control.vue | 6 +-- src/components/shout_panel/shout_panel.vue | 3 +- src/components/status/status.scss | 5 +- .../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 +- .../user_list_menu/user_list_menu.vue | 2 +- src/panel.scss | 17 +++--- src/services/style_setter/style_setter.js | 2 +- .../theme_data/theme_data_3.service.js | 52 ++++++++++++++----- 33 files changed, 150 insertions(+), 150 deletions(-) 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 @@ +