pinafore/scss/themes/_base.scss

101 lines
4.1 KiB
SCSS
Raw Normal View History

:root {
2018-04-05 06:45:19 +02:00
$deemphasized-color: #666;
2018-04-19 06:38:16 +02:00
--button-primary-bg: #{lighten($main-theme-color, 7%)};
--button-primary-text: #{$secondary-text-color};
--button-primary-border: #{darken($main-theme-color, 30%)};
--button-primary-bg-active: #{lighten($main-theme-color, 1%)};
--button-primary-bg-hover: #{lighten($main-theme-color, 9%)};
--button-bg: #{darken($main-bg-color, 10%)};
--button-text: #{$main-text-color};
--button-border: #{darken($border-color, 20%)};
--button-bg-active: #{darken($main-bg-color, 25%)};
--button-bg-hover: #{darken($main-bg-color, 5%)};
--input-border: #{$border-color};
--input-bg: #{$main-bg-color};
2018-04-19 06:38:16 +02:00
--anchor-text: #{$anchor-color};
--main-bg: #{$main-bg-color};
--body-bg: #{$body-bg-color};
--body-text-color: #{$main-text-color};
--main-border: #{$border-color};
--svg-fill: #{$main-theme-color};
--form-bg: #{darken($main-bg-color, 3%)};
--form-border: #{darken($border-color, 10%)};
--nav-bg: #{$main-theme-color};
--nav-border: #{darken($main-theme-color, 10%)};
--nav-a-border: #{$main-theme-color};
--nav-a-selected-border: #{$secondary-text-color};
--nav-a-selected-bg: #{lighten($main-theme-color, 10%)};
--nav-svg-fill: #{$secondary-text-color};
--nav-text-color: #{$secondary-text-color};
--nav-a-selected-border-hover: #{$secondary-text-color};
--nav-a-selected-bg-hover: #{lighten($main-theme-color, 15%)};
--nav-a-bg-hover: #{lighten($main-theme-color, 5%)};
--nav-a-border-hover: #{$main-theme-color};
--nav-svg-fill-hover: #{$secondary-text-color};
--nav-text-color-hover: #{$secondary-text-color};
--action-button-fill-color: #{lighten($main-theme-color, 18%)};
--action-button-fill-color-hover: #{lighten($main-theme-color, 22%)};
--action-button-fill-color-active: #{lighten($main-theme-color, 5%)};
--action-button-fill-color-pressed: #{darken($main-theme-color, 7%)};
--action-button-fill-color-pressed-hover: #{darken($main-theme-color, 2%)};
--action-button-fill-color-pressed-active: #{darken($main-theme-color, 15%)};
--action-button-deemphasized-fill-color: #{$deemphasized-color};
--action-button-deemphasized-fill-color-hover: #{lighten($deemphasized-color, 22%)};
--action-button-deemphasized-fill-color-active: #{lighten($deemphasized-color, 5%)};
--action-button-deemphasized-fill-color-pressed: #{darken($deemphasized-color, 7%)};
--action-button-deemphasized-fill-color-pressed-hover: #{darken($deemphasized-color, 2%)};
--action-button-deemphasized-fill-color-pressed-active: #{darken($deemphasized-color, 15%)};
--settings-list-item-bg: #{$main-bg-color};
--settings-list-item-text: #{$main-theme-color};
--settings-list-item-text-hover: #{$main-theme-color};
--settings-list-item-border: #{$border-color};
--settings-list-item-bg-active: #{darken($main-bg-color, 10%)};
--settings-list-item-bg-hover: #{darken($main-bg-color, 2%)};
--toast-bg: #{$toast-bg};
--toast-border: #{$toast-border};
--toast-text: #{$secondary-text-color};
--mask-bg: #{$toast-bg};
--mask-svg-fill: #{$secondary-text-color};
--mask-opaque-bg: #{rgba($toast-bg, 0.8)};
--loading-bg: #{#ededed};
--account-profile-bg-backdrop-filter: #{rgba($main-bg-color, 0.7)};
--account-profile-bg: #{rgba($main-bg-color, 0.9)};
--deemphasized-text-color: #{$deemphasized-color};
--focus-outline: #{$focus-outline};
--very-deemphasized-link-color: #{rgba($anchor-color, 0.6)};
--very-deemphasized-text-color: #{rgba(#666, 0.6)};
--status-direct-background: #{darken($body-bg-color, 5%)};
feat: Add support for keyboard shortcuts (#870) * Add support for keyboard shortcuts. This change introduces a Shortcut component for defining global keyboard shortcuts from whichever component makes more sense. This change also adds an initial set of navigation shortcuts: - Backspace to leave a modal dialog or to go back - g t to go to the federated timeline - g f to go to the favorite page - g h to go to the home page - g n to go to the notification page - g c to go to the community page - s to go to the search page These shortcuts are loaded asynchronously from _layout.html In modal dialogs, shortcuts are also modal, to avoid strange or overly complex behavior. This is implemented by grouping shortcuts into scopes, and activating a separate 'modal' scope when entering a modal dialog, so a separate set of shortcuts can be enabled in modal dialog. Modal dialogs can be exited by pressing 'Backspace'. * Navigate up/down lists using keyboard shortcuts. This change introduces keyboard shortcuts for navigating in lists and virtual lists. j or arrow up selects the next element, k or arrow down, the previous element. Selecting an element scrolls the list up and down, as necessary. This change also allows directing keyboard shortcuts to the active element and defines the following shortcuts, for the active status: - f to favorite or unfavorite it - b to boost or unboost it - r to reply to it - o to open its thread - x to toggle the display of a CW - y to toggle the display of sensitive medias This works by defining a keyboard shortcut scope for each list element. A new component, ScrollListShortcuts, keeps track of the active element, based on list or virtual list elements and redirects shortcuts to the active element's scope. ScrollListShortcuts keeps the active element in the current realm of the store, so the active element is restored when going back to the list. * Typing h or ? displays the list of available keyboard shortcuts. This change introduces a new modal dialog that documents the list of available shortcuts.
2019-01-13 19:03:29 +01:00
--status-active-background: #{lighten($body-bg-color, 2%)};
2018-04-19 06:38:16 +02:00
--main-theme-color: #{$main-theme-color};
--warning-color: #{#e01f19};
--alt-input-bg: #{rgba($main-bg-color, 0.7)};
feat: Add support for keyboard shortcuts (#870) * Add support for keyboard shortcuts. This change introduces a Shortcut component for defining global keyboard shortcuts from whichever component makes more sense. This change also adds an initial set of navigation shortcuts: - Backspace to leave a modal dialog or to go back - g t to go to the federated timeline - g f to go to the favorite page - g h to go to the home page - g n to go to the notification page - g c to go to the community page - s to go to the search page These shortcuts are loaded asynchronously from _layout.html In modal dialogs, shortcuts are also modal, to avoid strange or overly complex behavior. This is implemented by grouping shortcuts into scopes, and activating a separate 'modal' scope when entering a modal dialog, so a separate set of shortcuts can be enabled in modal dialog. Modal dialogs can be exited by pressing 'Backspace'. * Navigate up/down lists using keyboard shortcuts. This change introduces keyboard shortcuts for navigating in lists and virtual lists. j or arrow up selects the next element, k or arrow down, the previous element. Selecting an element scrolls the list up and down, as necessary. This change also allows directing keyboard shortcuts to the active element and defines the following shortcuts, for the active status: - f to favorite or unfavorite it - b to boost or unboost it - r to reply to it - o to open its thread - x to toggle the display of a CW - y to toggle the display of sensitive medias This works by defining a keyboard shortcut scope for each list element. A new component, ScrollListShortcuts, keeps track of the active element, based on list or virtual list elements and redirects shortcuts to the active element's scope. ScrollListShortcuts keeps the active element in the current realm of the store, so the active element is restored when going back to the list. * Typing h or ? displays the list of available keyboard shortcuts. This change introduces a new modal dialog that documents the list of available shortcuts.
2019-01-13 19:03:29 +01:00
--muted-modal-text: #{$secondary-text-color};
2018-04-19 06:38:16 +02:00
--muted-modal-bg: #{transparent};
--muted-modal-focus: #{#999};
--muted-modal-hover: #{rgba(255, 255, 255, 0.2)};
--compose-autosuggest-item-hover: #{$compose-background};
--compose-autosuggest-item-active: #{darken($compose-background, 5%)};
--compose-autosuggest-outline: #{lighten($focus-outline, 5%)};
--compose-button-halo: #{rgba(255, 255, 255, 0.1)};
--file-drop-mask: #{rgba(255, 255, 255, 0.8)};
}