1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
|
@function textbox-shadow($color) {
@return 0 0 0 1px $color, 0 0 0 $textbox-shadow-size rgba($color, 0.3);
}
@mixin textbox-focus($color) {
--newtab-textbox-focus-color: #{$color};
--newtab-textbox-focus-boxshadow: #{textbox-shadow($color)};
}
// scss variables related to the theme.
$border-primary: 1px solid var(--newtab-border-primary-color);
$border-secondary: 1px solid var(--newtab-border-secondary-color);
$inner-box-shadow: 0 0 0 1px var(--newtab-inner-box-shadow-color);
$input-border: 1px solid var(--newtab-textbox-border);
$input-border-active: 1px solid var(--newtab-textbox-focus-color);
$input-error-border: 1px solid $red-60;
$input-error-boxshadow: textbox-shadow($red-60);
$shadow-primary: 0 0 0 5px var(--newtab-card-active-outline-color);
$shadow-secondary: 0 1px 4px 0 $grey-90-20;
// Default theme
body {
// General styles
--newtab-background-color: #{$in-content-page-background};
--newtab-border-primary-color: #{$grey-40};
--newtab-border-secondary-color: #{$grey-30};
--newtab-element-active-color: #{$grey-30-60};
--newtab-element-hover-color: #{$grey-20};
--newtab-icon-primary-color: #{$grey-90-80};
--newtab-icon-secondary-color: #{$grey-90-60};
--newtab-icon-tertiary-color: #{$grey-30};
--newtab-inner-box-shadow-color: #{$black-10};
--newtab-link-primary-color: #{$blue-60};
--newtab-link-secondary-color: #{$teal-70};
--newtab-text-conditional-color: #{$grey-60};
--newtab-text-primary-color: #{$in-content-page-color};
--newtab-text-secondary-color: #{$grey-50};
--newtab-textbox-background-color: #{$white};
--newtab-textbox-border: #{$grey-90-20};
@include textbox-focus($blue-60); // sass-lint:disable-line mixins-before-declarations
// Background buttons
--newtab-background-button-hover-color: #{$newtab-background-button-default-hover-color};
--newtab-background-button-active-color: #{$newtab-background-button-default-active-color};
// Buttons
--newtab-button-primary-color: #{$blue-60};
--newtab-button-secondary-color: inherit;
// Feed buttons
--newtab-feed-button-background: #{$grey-20};
--newtab-feed-button-text: #{$grey-90};
--newtab-feed-button-background-faded: #{$grey-20-60};
--newtab-feed-button-text-faded: #{$grey-90-00};
--newtab-feed-button-spinner: #{$grey-50};
// Context menu
--newtab-contextmenu-background-color: #{$grey-10};
--newtab-contextmenu-button-color: #{$white};
// Modal + overlay
--newtab-modal-color: #{$white};
--newtab-overlay-color: #{$grey-20-80};
// Sections
--newtab-section-header-text-color: #{$grey-50};
--newtab-section-navigation-text-color: #{$grey-50};
--newtab-section-active-contextmenu-color: #{$grey-90};
// Search
--newtab-search-border-color: transparent;
--newtab-search-dropdown-color: #{$white};
--newtab-search-dropdown-header-color: #{$grey-10};
--newtab-search-header-background-color: #{$grey-10-95};
--newtab-search-icon-color: #{$grey-90-40};
--newtab-search-wordmark-color: #{$firefox-wordmark-default-color};
// Top Sites
--newtab-topsites-background-color: #{$white};
--newtab-topsites-icon-shadow: inset #{$inner-box-shadow};
--newtab-topsites-label-color: inherit;
--newtab-topsites-outer-card-hover: #{$newtab-card-hover-color};
--newtab-topsites-context-menu-hover: #{$newtab-card-hover-color};
// Cards
--newtab-card-active-outline-color: #{$grey-30};
--newtab-card-background-color: #{$white};
--newtab-card-hairline-color: #{$black-10};
--newtab-card-placeholder-color: #{$grey-30};
--newtab-card-shadow: 0 1px 4px 0 #{$grey-90-10};
// Snippets
--newtab-snippets-background-color: #{$white};
--newtab-snippets-hairline-color: transparent;
// New New Tab
--newtab-background-primary-text-color: #{$newtab-background-primary-text-color};
--newtab-focus-outline: #{$newtab-focus-outline-color};
--newtab-focus-border: #{$blue-60};
--newtab-focus-border-selected: #{$newtab-card-tint};
--newtab-seperator-line-color: #{$newtab-card-separator-line-color};
--newtab-primary-action-background: #{$blue-60};
--newtab-primary-action-background-off: #{$newtab-primary-action-background-off};
--customize-menu-primary-text-color: #{$newtab-card-primary-text-color};
--customize-menu-check-fill: #{$white};
--customize-menu-check-fill-contrast: #{$black};
--customize-menu-background: #{$white};
--customize-menu-secondary-action-background: #{$grey-10};
--customize-menu-secondary-action-background-hover: #{$grey-20};
--customize-menu-secondary-action-background-active: #{$newtab-card-secondary-action-background-active};
--customize-menu-seperator-line-color: #{$newtab-card-separator-line-color};
--customize-menu-second-shadow: #{$newtab-card-secondshadow};
--customize-menu-primary-action-text: #{$white};
--customize-menu-line-color: #{$newtab-card-line-color};
--newtab-search-first-shadow: #{$newtab-card-firstshadow};
--newtab-search-text-color: #{$newtab-card-secondary-text-color};
--newtab-card-first-shadow: #{$newtab-card-firstshadow};
--newtab-wordmark-color: #{$newtab-wordmark-default-color};
&[lwt-newtab-brighttext] {
// General styles
--newtab-background-color: #{$in-content-page-background-dark};
--newtab-border-primary-color: #{$grey-10-80};
--newtab-border-secondary-color: #{$grey-10-10};
--newtab-button-primary-color: #{$blue-60};
--newtab-button-secondary-color: #{$grey-70};
--newtab-element-active-color: #{$grey-10-20};
--newtab-element-hover-color: #{$grey-10-10};
--newtab-icon-primary-color: #{$grey-10-80};
--newtab-icon-secondary-color: #{$grey-10-40};
--newtab-icon-tertiary-color: #{$grey-10-40};
--newtab-inner-box-shadow-color: #{$grey-10-20};
--newtab-link-primary-color: #{$blue-40};
--newtab-link-secondary-color: #{$pocket-teal};
--newtab-text-conditional-color: #{$grey-10};
--newtab-text-primary-color: #{$in-content-page-color-dark};
--newtab-text-secondary-color: #{$grey-10-80};
--newtab-textbox-background-color: #{$grey-70};
--newtab-textbox-border: #{$grey-10-20};
@include textbox-focus($blue-40); // sass-lint:disable-line mixins-before-declarations
// Background buttons.
--newtab-background-button-hover-color: #{$newtab-background-button-darktheme-hover-color};
--newtab-background-button-active-color: #{$newtab-background-button-darktheme-active-color};
// Feed buttons
--newtab-feed-button-background: #{$grey-70};
--newtab-feed-button-text: #{$grey-10};
--newtab-feed-button-background-faded: #{$grey-70-60};
--newtab-feed-button-text-faded: #{$grey-10-00};
--newtab-feed-button-spinner: #{$grey-30};
// Context menu
--newtab-contextmenu-background-color: #{$grey-60};
--newtab-contextmenu-button-color: #{$grey-80};
// Modal + overlay
--newtab-modal-color: #{$grey-80};
--newtab-overlay-color: #{$grey-90-80};
// Sections
--newtab-section-header-text-color: #{$grey-10-80};
--newtab-section-navigation-text-color: #{$grey-10-80};
--newtab-section-active-contextmenu-color: #{$white};
// Search
--newtab-search-border-color: #{$grey-10-20};
--newtab-search-dropdown-color: #{$grey-70};
--newtab-search-dropdown-header-color: #{$grey-60};
--newtab-search-header-background-color: #{$grey-80-95};
--newtab-search-icon-color: #{$grey-10-60};
--newtab-search-wordmark-color: #{$firefox-wordmark-darktheme-color};
// Top Sites
--newtab-topsites-background-color: #{$proton-dark-grey-30};
--newtab-topsites-icon-shadow: none;
--newtab-topsites-label-color: #{$grey-10-80};
--newtab-topsites-outer-card-hover: #{$newtab-card-darktheme-hover-color};
--newtab-topsites-context-menu-hover: #{$newtab-card-darktheme-hover-color};
// Cards
--newtab-card-active-outline-color: #{$grey-60};
--newtab-card-background-color: #{$proton-dark-grey-30};
--newtab-card-hairline-color: #{$grey-10-10};
--newtab-card-placeholder-color: #{$grey-60};
--newtab-card-shadow: 0 1px 8px 0 #{$grey-90-20};
// Snippets
--newtab-snippets-background-color: #{$grey-70};
--newtab-snippets-hairline-color: #{$white-10};
// New New Tab
--newtab-background-primary-text-color: #{$newtab-background-darktheme-primary-text-color};
--newtab-focus-outline: #{$newtab-darktheme-focus-outline-color};
--newtab-focus-border: #{$newtab-darktheme-focus-border};
--newtab-focus-border-selected: #{$newtab-darktheme-focus-border-selected};
--newtab-primary-action-background: #{$newtab-darktheme-primary-action-background};
--newtab-primary-action-background-off: #{$newtab-darktheme-primary-action-background-off};
--newtab-seperator-line-color: #{$newtab-card-darktheme-separator-line-color};
--customize-menu-primary-text-color: #{$newtab-card-darktheme-primary-text-color};
--customize-menu-check-fill: #{$newtab-card-darktheme-primary-text-color};
--customize-menu-background: #{$grey-70};
--customize-menu-secondary-action-background: #{$newtab-card-darktheme-secondary-action-background};
--customize-menu-secondary-action-background-hover: #{$newtab-card-darktheme-secondary-action-background-hover};
--customize-menu-secondary-action-background-active: #{$newtab-card-darktheme-secondary-action-background-active};
--customize-menu-seperator-line-color: #{$newtab-card-darktheme-separator-line-color};
--customize-menu-second-shadow: #{$newtab-card-darktheme-secondshadow};
--customize-menu-primary-action-text: #{$newtab-card-darktheme-primary-text-color};
--customize-menu-line-color: #{$newtab-card-darktheme-line-color};
--newtab-search-first-shadow: #{$newtab-card-darktheme-firstshadow};
--newtab-search-text-color: #{$newtab-card-darktheme-secondary-text-color};
--newtab-card-first-shadow: #{$newtab-card-darktheme-firstshadow};
--newtab-wordmark-color: #{$firefox-wordmark-darktheme-color};
}
}
|