From b19c2eb0fb45aca4f4a59c4afacaffddf695987d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 20 Oct 2020 22:13:19 +0300 Subject: More stuff. Buttons in user card's corner now have MUCH bigger hitboxes --- src/components/account_actions/account_actions.vue | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 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 987e94b7..61099d4f 100644 --- a/src/components/account_actions/account_actions.vue +++ b/src/components/account_actions/account_actions.vue @@ -1,5 +1,5 @@ diff --git a/src/components/mfa_form/recovery_form.vue b/src/components/mfa_form/recovery_form.vue index 61dbda24..f6526d2a 100644 --- a/src/components/mfa_form/recovery_form.vue +++ b/src/components/mfa_form/recovery_form.vue @@ -55,7 +55,8 @@
{{ error }}
diff --git a/src/components/mobile_nav/mobile_nav.vue b/src/components/mobile_nav/mobile_nav.vue index 4d91af77..db9b0ba0 100644 --- a/src/components/mobile_nav/mobile_nav.vue +++ b/src/components/mobile_nav/mobile_nav.vue @@ -15,7 +15,11 @@ class="mobile-nav-button" @click.stop.prevent="toggleMobileSidebar()" > - +
- +
- +
- + {{ $t("nav.timelines") }}
  • - + {{ $t("nav.interactions") }}
  • @@ -25,13 +35,23 @@ > {{ unreadChatCount }}
    - + {{ $t("nav.chats") }}
  • - + {{ $t("nav.friend_requests") }}
  • - {{ $t("nav.about") }} + {{ $t("nav.about") }}
  • diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue index 857727a4..b609ae04 100644 --- a/src/components/notification/notification.vue +++ b/src/components/notification/notification.vue @@ -18,7 +18,10 @@ href="#" class="unmute" @click.prevent="toggleMute" - > + >
    {{ notification.from_profile.name }} - + {{ $t('notifications.favorited_you') }} {{ $t('notifications.repeated_you') }} - + {{ $t('notifications.followed_you') }} - + {{ $t('notifications.follow_request') }} - + {{ $t('notifications.migrated_to') }} @@ -120,7 +136,10 @@ v-if="needMute" href="#" @click.prevent="toggleMute" - > + >
    diff --git a/src/components/panel_loading/panel_loading.vue b/src/components/panel_loading/panel_loading.vue index 9bf3ab32..b15e7d38 100644 --- a/src/components/panel_loading/panel_loading.vue +++ b/src/components/panel_loading/panel_loading.vue @@ -1,7 +1,11 @@ @@ -61,7 +65,10 @@ v-if="showPinned" class="pin" > - + {{ $t('status.pinned') }} @@ -230,7 +253,7 @@ icon="reply" size="lg" flip="horizontal" - /> + /> @@ -358,7 +381,6 @@ @onSuccess="clearError" /> -
    - +
    diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index ab17cbbc..aaf0349c 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -92,7 +92,11 @@ v-else class="new-status-notification text-center panel-footer" > - + diff --git a/src/components/timeline_menu/timeline_menu.vue b/src/components/timeline_menu/timeline_menu.vue index 1e546fae..8099ddd5 100644 --- a/src/components/timeline_menu/timeline_menu.vue +++ b/src/components/timeline_menu/timeline_menu.vue @@ -16,27 +16,52 @@
    • - {{ $t("nav.timeline") }} + {{ $t("nav.timeline") }}
    • - {{ $t("nav.bookmarks") }} + {{ $t("nav.bookmarks") }}
    • - {{ $t("nav.dms") }} + {{ $t("nav.dms") }}
    • - {{ $t("nav.public_tl") }} + {{ $t("nav.public_tl") }}
    • - {{ $t("nav.twkn") }} + {{ $t("nav.twkn") }}
    @@ -46,7 +71,10 @@ class="title timeline-menu-title" > {{ timelineName() }} - + diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue index 6c35c781..c5f10b75 100644 --- a/src/components/user_card/user_card.vue +++ b/src/components/user_card/user_card.vue @@ -21,7 +21,11 @@ :user="user" /> - + - + Striped bg - + @@ -162,8 +176,15 @@ :title="$t('user_card.unsubscribe')" > - - + + diff --git a/src/components/user_list_popover/user_list_popover.vue b/src/components/user_list_popover/user_list_popover.vue index dd6977d2..95673733 100644 --- a/src/components/user_list_popover/user_list_popover.vue +++ b/src/components/user_list_popover/user_list_popover.vue @@ -31,7 +31,11 @@
    - +
    -- cgit v1.2.3-70-g09d2 From 7b99d98c553f40ec4d633d0d4fdf65f275c80e77 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Tue, 24 Nov 2020 12:32:42 +0200 Subject: Replace all use of + href='#' with proper buttons --- src/App.scss | 32 +++++++++++-- src/components/account_actions/account_actions.vue | 14 +++--- .../async_component_error.vue | 2 +- src/components/attachment/attachment.js | 6 ++- src/components/attachment/attachment.vue | 28 ++++++----- src/components/block_card/block_card.vue | 4 +- src/components/chat_list/chat_list.vue | 5 +- src/components/chat_message/chat_message.scss | 3 -- src/components/chat_message/chat_message.vue | 4 +- src/components/conversation/conversation.vue | 13 +++--- src/components/desktop_nav/desktop_nav.scss | 10 ++-- src/components/desktop_nav/desktop_nav.vue | 40 ++++++++-------- .../domain_mute_card/domain_mute_card.vue | 4 +- src/components/emoji_reactions/emoji_reactions.vue | 2 +- src/components/export_import/export_import.vue | 4 +- src/components/exporter/exporter.vue | 2 +- src/components/extra_buttons/extra_buttons.vue | 28 +++++------ src/components/favorite_button/favorite_button.js | 5 -- src/components/favorite_button/favorite_button.vue | 38 +++++++-------- src/components/follow_button/follow_button.vue | 2 +- .../follow_request_card/follow_request_card.vue | 4 +- src/components/image_cropper/image_cropper.vue | 6 +-- src/components/importer/importer.vue | 2 +- src/components/login_form/login_form.vue | 2 +- src/components/media_upload/media_upload.vue | 54 +++++++++------------- src/components/mfa_form/recovery_form.vue | 14 +++--- src/components/mfa_form/totp_form.vue | 14 +++--- src/components/mobile_nav/mobile_nav.vue | 14 +++--- .../mobile_post_status_button.vue | 2 +- .../moderation_tools/moderation_tools.vue | 6 +-- src/components/mute_card/mute_card.vue | 4 +- src/components/notification/notification.vue | 13 +++--- src/components/notifications/notifications.vue | 8 ++-- src/components/password_reset/password_reset.vue | 2 +- src/components/poll/poll.vue | 2 +- .../post_status_form/post_status_form.vue | 34 ++++++-------- src/components/react_button/react_button.vue | 13 ++++-- src/components/registration/registration.vue | 2 +- src/components/reply_button/reply_button.vue | 19 ++++---- src/components/retweet_button/retweet_button.js | 5 -- src/components/retweet_button/retweet_button.vue | 48 +++++++++---------- src/components/search_bar/search_bar.vue | 32 +++++++------ src/components/settings_modal/settings_modal.vue | 4 +- .../settings_modal/tabs/mutes_and_blocks_tab.vue | 10 ++-- .../settings_modal/tabs/notifications_tab.vue | 2 +- src/components/settings_modal/tabs/profile_tab.vue | 8 ++-- .../settings_modal/tabs/security_tab/confirm.vue | 4 +- .../settings_modal/tabs/security_tab/mfa.vue | 10 ++-- .../settings_modal/tabs/security_tab/mfa_totp.vue | 4 +- .../tabs/security_tab/security_tab.vue | 10 ++-- .../settings_modal/tabs/theme_tab/preview.vue | 4 +- .../settings_modal/tabs/theme_tab/theme_tab.vue | 28 +++++------ src/components/shadow_control/shadow_control.vue | 8 ++-- src/components/side_drawer/side_drawer.vue | 15 +++--- src/components/status/status.vue | 35 +++++++------- src/components/status_content/status_content.vue | 37 +++++++-------- src/components/tab_switcher/tab_switcher.js | 2 +- src/components/timeline/timeline.vue | 8 ++-- src/components/user_card/user_card.vue | 10 ++-- .../user_reporting_modal/user_reporting_modal.vue | 2 +- 60 files changed, 384 insertions(+), 363 deletions(-) (limited to 'src/components/account_actions/account_actions.vue') diff --git a/src/App.scss b/src/App.scss index ca7d33cd..ef2a13b1 100644 --- a/src/App.scss +++ b/src/App.scss @@ -33,6 +33,7 @@ h4 { max-width: 980px; align-content: flex-start; } + .underlay { background-color: rgba(0,0,0,0.15); background-color: var(--underlay, rgba(0,0,0,0.15)); @@ -69,7 +70,7 @@ a { color: var(--link, $fallback--link); } -button { +.button-default { user-select: none; color: $fallback--text; color: var(--btnText, $fallback--text); @@ -85,7 +86,9 @@ button { font-family: sans-serif; font-family: var(--interfaceFont, sans-serif); - i[class*=icon-], .svg-inline--fa { + i[class*=icon-], + :not(&.-icon), + .svg-inline--fa { color: $fallback--text; color: var(--btnText, $fallback--text); } @@ -149,6 +152,29 @@ button { } } +.button-unstyled { + background: none; + border: none; + outline: none; + display: inline; + text-align: initial; + font-size: 100%; + font-family: inherit; + padding: 0; + line-height: unset; + cursor: pointer; + + &.-link { + color: $fallback--link; + color: var(--link, $fallback--link); + } + + &.-padded { + padding: 5px; + margin: -5px; + } +} + input, textarea, .select, .input { &.unstyled { @@ -797,7 +823,7 @@ nav { } } -.btn.btn-default { +.btn.button-default { min-height: 28px; } diff --git a/src/components/account_actions/account_actions.vue b/src/components/account_actions/account_actions.vue index e3ae376e..c10b09b8 100644 --- a/src/components/account_actions/account_actions.vue +++ b/src/components/account_actions/account_actions.vue @@ -13,14 +13,14 @@ diff --git a/src/components/chat_message/chat_message.scss b/src/components/chat_message/chat_message.scss index 5af744a3..e4351d3b 100644 --- a/src/components/chat_message/chat_message.scss +++ b/src/components/chat_message/chat_message.scss @@ -31,9 +31,6 @@ color: $fallback--text; color: var(--text, $fallback--text); } - - border-radius: $fallback--chatMessageRadius; - border-radius: var(--chatMessageRadius, $fallback--chatMessageRadius); } .popover { diff --git a/src/components/chat_message/chat_message.vue b/src/components/chat_message/chat_message.vue index 3849ab6e..0777f880 100644 --- a/src/components/chat_message/chat_message.vue +++ b/src/components/chat_message/chat_message.vue @@ -53,7 +53,7 @@ - - + - + + + diff --git a/src/components/domain_mute_card/domain_mute_card.vue b/src/components/domain_mute_card/domain_mute_card.vue index 97aee243..3b5aec14 100644 --- a/src/components/domain_mute_card/domain_mute_card.vue +++ b/src/components/domain_mute_card/domain_mute_card.vue @@ -6,7 +6,7 @@ {{ $t('domain_mute_card.unmute') }}