From 075f2cb903fa45ea8e7a52098fd7091b0b14a9fd Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 4 Mar 2024 19:45:42 +0200 Subject: [PATCH] remove all "fallback variables" --- src/App.scss | 1 - src/_variables.scss | 36 --------------- .../account_actions/account_actions.vue | 2 - src/components/announcement/announcement.vue | 8 ++-- .../announcements_page/announcements_page.vue | 6 +-- src/components/attachment/attachment.scss | 18 +------- src/components/autosuggest/autosuggest.vue | 6 +-- src/components/avatar_list/avatar_list.vue | 5 +-- src/components/chat/chat.vue | 1 - src/components/chat_list/chat_list.vue | 5 +-- .../chat_list_item/chat_list_item.vue | 1 - src/components/chat_new/chat_new.vue | 1 - src/components/chat_title/chat_title.vue | 5 +-- src/components/checkbox/checkbox.vue | 1 - src/components/color_input/color_input.scss | 4 -- src/components/conversation/conversation.vue | 34 +++++++------- src/components/desktop_nav/desktop_nav.scss | 2 - src/components/dialog_modal/dialog_modal.vue | 11 +---- src/components/emoji_input/emoji_input.vue | 2 - src/components/emoji_picker/emoji_picker.scss | 5 +-- .../emoji_reactions/emoji_reactions.vue | 16 +++---- .../extra_buttons/extra_buttons.vue | 4 +- .../extra_notifications.vue | 5 +-- .../favorite_button/favorite_button.vue | 4 +- src/components/flash/flash.vue | 2 - src/components/font_control/font_control.vue | 2 - src/components/gallery/gallery.vue | 2 - .../global_notice_list/global_notice_list.vue | 2 - .../interface_language_switcher.vue | 2 - src/components/link-preview/link-preview.vue | 7 +-- src/components/lists_edit/lists_edit.vue | 2 - .../lists_user_search/lists_user_search.vue | 2 - src/components/login_form/login_form.vue | 2 - src/components/media_upload/media_upload.vue | 2 - src/components/mention_link/mention_link.scss | 10 ++--- src/components/mobile_nav/mobile_nav.vue | 8 +--- .../mobile_post_status_button.vue | 5 +-- .../moderation_tools/moderation_tools.vue | 2 - .../mrf_transparency_panel.vue | 1 - src/components/nav_panel/nav_panel.vue | 2 - src/components/navigation/navigation_pins.vue | 2 - .../notifications/notifications.scss | 2 - .../panel_loading/panel_loading.vue | 8 +--- .../password_reset/password_reset.vue | 9 +--- src/components/poll/poll.vue | 5 +-- src/components/poll/poll_form.vue | 2 - .../post_status_form/post_status_form.vue | 29 ++++-------- src/components/react_button/react_button.vue | 8 +--- src/components/registration/registration.vue | 6 +-- src/components/reply_button/reply_button.vue | 4 +- src/components/report/report.scss | 2 - .../retweet_button/retweet_button.vue | 4 +- .../scope_selector/scope_selector.vue | 2 - src/components/search_bar/search_bar.vue | 5 +-- src/components/select/select.vue | 3 -- .../settings_modal/settings_modal.scss | 2 - .../settings_modal_admin_content.scss | 7 +-- .../settings_modal_user_content.scss | 7 +-- .../settings_modal/tabs/profile_tab.scss | 2 - .../settings_modal/tabs/security_tab/mfa.vue | 5 +-- .../tabs/security_tab/mfa_backup_codes.vue | 2 - .../tabs/theme_tab/theme_tab.scss | 10 ++--- src/components/shout_panel/shout_panel.vue | 5 +-- src/components/side_drawer/side_drawer.vue | 2 - src/components/status/status.scss | 45 ++++++------------- .../status_popover/status_popover.vue | 2 - .../sticker_picker/sticker_picker.vue | 4 +- src/components/still-image/still-image.vue | 5 +-- src/components/tab_switcher/tab_switcher.scss | 15 ++----- src/components/thread_tree/thread_tree.vue | 8 ++-- src/components/timeline/timeline.scss | 2 - .../timeline_menu/timeline_menu.vue | 2 - .../update_notification.scss | 4 +- src/components/user_avatar/user_avatar.vue | 2 - src/components/user_card/user_card.scss | 2 - src/components/user_note/user_note.vue | 4 +- src/components/user_popover/user_popover.vue | 2 - src/components/user_profile/user_profile.vue | 2 - .../user_reporting_modal.vue | 8 +--- src/hocs/with_load_more/with_load_more.scss | 5 +-- 80 files changed, 99 insertions(+), 382 deletions(-) delete mode 100644 src/_variables.scss diff --git a/src/App.scss b/src/App.scss index 289add77e9..97d3f5161c 100644 --- a/src/App.scss +++ b/src/App.scss @@ -1,6 +1,5 @@ // stylelint-disable rscss/class-format /* stylelint-disable no-descending-specificity */ -@import "./variables"; @import "./panel"; :root { diff --git a/src/_variables.scss b/src/_variables.scss deleted file mode 100644 index 751fc9a467..0000000000 --- a/src/_variables.scss +++ /dev/null @@ -1,36 +0,0 @@ -$main-color: #f58d2c; -$main-background: white; -$darkened-background: whitesmoke; - -$fallback--bg: #121a24; -$fallback--fg: #182230; -$fallback--faint: rgb(185 185 186 / 50%); -$fallback--text: #b9b9ba; -$fallback--link: #d8a070; -$fallback--icon: #666; -$fallback--lightBg: rgb(21 30 42); -$fallback--lightText: #b9b9ba; -$fallback--border: #222; -$fallback--cRed: #f00; -$fallback--cBlue: #0095ff; -$fallback--cGreen: #0fa00f; -$fallback--cOrange: orange; - -$fallback--alertError: rgb(211 16 20 / 50%); -$fallback--alertWarning: rgb(111 111 20 / 50%); - -$fallback--panelRadius: 10px; -$fallback--checkboxRadius: 2px; -$fallback--btnRadius: 4px; -$fallback--inputRadius: 4px; -$fallback--tooltipRadius: 5px; -$fallback--avatarRadius: 4px; -$fallback--avatarAltRadius: 10px; -$fallback--attachmentRadius: 10px; -$fallback--chatMessageRadius: 10px; - -$fallback--buttonShadow: 0 0 2px 0 rgb(0 0 0 / 100%), - 0 1px 0 0 rgb(255 255 255 / 20%) inset, - 0 -1px 0 0 rgb(0 0 0 / 20%) inset; - -$status-margin: 0.75em; diff --git a/src/components/account_actions/account_actions.vue b/src/components/account_actions/account_actions.vue index cca7121cfe..9a7c6824a9 100644 --- a/src/components/account_actions/account_actions.vue +++ b/src/components/account_actions/account_actions.vue @@ -122,8 +122,6 @@ diff --git a/src/components/chat_list/chat_list.vue b/src/components/chat_list/chat_list.vue index 27a475edff..b33ea67ec2 100644 --- a/src/components/chat_list/chat_list.vue +++ b/src/components/chat_list/chat_list.vue @@ -45,8 +45,6 @@ diff --git a/src/components/chat_list_item/chat_list_item.vue b/src/components/chat_list_item/chat_list_item.vue index cbae2d11ad..0f9d5c5fa0 100644 --- a/src/components/chat_list_item/chat_list_item.vue +++ b/src/components/chat_list_item/chat_list_item.vue @@ -48,6 +48,5 @@ diff --git a/src/components/chat_new/chat_new.vue b/src/components/chat_new/chat_new.vue index 5a872b66d9..673ba56b6a 100644 --- a/src/components/chat_new/chat_new.vue +++ b/src/components/chat_new/chat_new.vue @@ -48,6 +48,5 @@ diff --git a/src/components/chat_title/chat_title.vue b/src/components/chat_title/chat_title.vue index 93db4fa7f1..68ee7a5aba 100644 --- a/src/components/chat_title/chat_title.vue +++ b/src/components/chat_title/chat_title.vue @@ -26,8 +26,6 @@ diff --git a/src/components/desktop_nav/desktop_nav.scss b/src/components/desktop_nav/desktop_nav.scss index 373cb2f2a5..61d2541ca2 100644 --- a/src/components/desktop_nav/desktop_nav.scss +++ b/src/components/desktop_nav/desktop_nav.scss @@ -1,5 +1,3 @@ -@import "../../variables"; - .DesktopNav { width: 100%; z-index: var(--ZI_navbar); diff --git a/src/components/dialog_modal/dialog_modal.vue b/src/components/dialog_modal/dialog_modal.vue index 341cf1054b..b917c6371f 100644 --- a/src/components/dialog_modal/dialog_modal.vue +++ b/src/components/dialog_modal/dialog_modal.vue @@ -25,8 +25,6 @@ diff --git a/src/components/lists_edit/lists_edit.vue b/src/components/lists_edit/lists_edit.vue index 3c44579af3..3c2066f693 100644 --- a/src/components/lists_edit/lists_edit.vue +++ b/src/components/lists_edit/lists_edit.vue @@ -165,8 +165,6 @@ diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue index 6380deac47..bf608936f5 100644 --- a/src/components/nav_panel/nav_panel.vue +++ b/src/components/nav_panel/nav_panel.vue @@ -103,8 +103,6 @@ diff --git a/src/components/password_reset/password_reset.vue b/src/components/password_reset/password_reset.vue index 7ac6db748d..037b859e83 100644 --- a/src/components/password_reset/password_reset.vue +++ b/src/components/password_reset/password_reset.vue @@ -30,7 +30,7 @@

{{ $t('password_reset.password_reset_required') }}

@@ -77,8 +77,6 @@ diff --git a/src/components/react_button/react_button.vue b/src/components/react_button/react_button.vue index 1b0674e6d0..e648e7e3b9 100644 --- a/src/components/react_button/react_button.vue +++ b/src/components/react_button/react_button.vue @@ -41,7 +41,6 @@ diff --git a/src/components/user_popover/user_popover.vue b/src/components/user_popover/user_popover.vue index 3b2bbc452e..413b254ccb 100644 --- a/src/components/user_popover/user_popover.vue +++ b/src/components/user_popover/user_popover.vue @@ -24,8 +24,6 @@