mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 02:58:09 +01:00
d8179ff030
* Add UI for selecting multiple accounts on the first permissions connect screen * Make accounts list scrollable on connect screen * Change title wording on connect screen to 'select your accounts' * Add select all tooltip to info circle on top of connect screen account list * Add security info footer to the first screen of the connect flow * Apply redesigns to page 2 of connect flow * Display number of accounts on connect flow second screen if there are multiple to connect * Update e2e tests for connect screen multi-select changes * Remove unused chooseAnAcount message * Fix styling/display of redirect elements on second page of connect flow * Assorted small fixes in permissions connect * Remove unnecessary tiny delays in spec files * Remove incorrect use of bem modified in choose-account * Remove unused locale * Use Set for managing selected accounts in choose-acount and permissions-connect componets * Compone! * Move connect flow header into a reusable component, and implement new header designs * Update locales and add missing locales * Improve permission list item design (second screen of connect flow) * Check box component improvements * Fixes in variables.scss * Simplfy code in selectAll of choose-account.component * Hide checkboxes on first pages on connect flow when there is only one account * Allow autofill of default new account modal text with right arrow * Disable next button on first screen of connect flow when no accounts selected * Improve choose-account/index.scss * Remove metamask secure graphic * Fix connect flow redirect screen * Fix connectToMultiple locale * Remove locales no longer used after connect flow multiple connect updates * Fix size of dapp icon on redirect screen of connect flow * Clean up choose-account code * Stop using placeholder in new-account-modal * Remove unused styles in permission-page-container/index.scss * Pass origin instead of site name to PermissionsConnectHeader in connect flow * Make iconName a required prop in permissions-connect-header * Show checkbox in cases where there is one account in the choose-account list * Do not render select all checkbox when only 1 list item, instead of just hiding it * Small cleanup in choose-account/index.scss
277 lines
4.5 KiB
SCSS
277 lines
4.5 KiB
SCSS
/*
|
|
Variables
|
|
*/
|
|
|
|
// Base Colors
|
|
$white: #fff;
|
|
$black: #000;
|
|
$orange: #ffa500;
|
|
$red: #f00;
|
|
$gray: #808080;
|
|
|
|
/*
|
|
Colors
|
|
http://chir.ag/projects/name-that-color
|
|
*/
|
|
$white-linen: #faf6f0; // formerly 'faint orange (textfield shades)'
|
|
$rajah: #f5c26d; // formerly 'light orange (button shades)'
|
|
$buttercup: #f5a623; // formerly 'dark orange (text)'
|
|
$tundora: #4a4a4a; // formerly 'borders/font/any gray'
|
|
$flamingo: #F56821;
|
|
$valencia: #D73A49;
|
|
$gallery: #efefef;
|
|
$alabaster: #f7f7f7;
|
|
$shark: #22232c;
|
|
$wild-sand: #f6f6f6;
|
|
$white: #fff;
|
|
$dusty-gray: #9b9b9b;
|
|
$alto: #dedede;
|
|
$alabaster: #fafafa;
|
|
$silver-chalice: #aeaeae;
|
|
$curious-blue: #037DD6;
|
|
$concrete: #f3f3f3;
|
|
$tundora: #4d4d4d;
|
|
$nile-blue: #1b344d;
|
|
$scorpion: #5d5d5d;
|
|
$silver: #cdcdcd;
|
|
$caribbean-green: #02c9b1;
|
|
$monzo: #d0021b;
|
|
$crimson: #e91550;
|
|
$blue-lagoon: #038789;
|
|
$purple: #690496;
|
|
$tulip-tree: #ebb33f;
|
|
$malibu-blue: #7ac9fd;
|
|
$athens-grey: #e9edf0;
|
|
$jaffa: #f28930;
|
|
$geyser: #d2d8dd;
|
|
$manatee: #93949d;
|
|
$spindle: #c7ddec;
|
|
$mid-gray: #5b5d67;
|
|
$cape-cod: #38393a;
|
|
$onahau: #d1edff;
|
|
$java: #29b6af;
|
|
$wild-strawberry: #ff4a8d;
|
|
$cornflower-blue: #7057ff;
|
|
$saffron: #f6c343;
|
|
$dodger-blue: #3099f2;
|
|
$zumthor: #edf7ff;
|
|
$ecstasy: #f7861c;
|
|
$linen: #fdf4f4;
|
|
$oslo-gray: #8C8E94;
|
|
$polar: #fafcfe;
|
|
$blizzard-blue: #bfdef3;
|
|
$mischka: #dddee9;
|
|
$web-orange: #f2a202;
|
|
$mercury: #E5E5E5;
|
|
$lochmara: #037DD6;
|
|
|
|
/*
|
|
notification and error message colors
|
|
*/
|
|
$success-green: #28A745;
|
|
$success-light-green: #E8F9F1;
|
|
$danger-red: #D73A49;
|
|
$danger-light-red: #F8EAE8;
|
|
$info-blue: #037DD6;
|
|
$info-light-blue: #E8F4FD;
|
|
$warning-yellow: #FFD33D;
|
|
$warning-light-yellow: #FEFAE8;
|
|
|
|
/*
|
|
Z-Indicies
|
|
*/
|
|
$dropdown-z-index: 30;
|
|
$token-icon-z-index: 15;
|
|
$container-z-index: 15;
|
|
$header-z-index: 12;
|
|
$mobile-header-z-index: 26;
|
|
$main-container-z-index: 18;
|
|
$send-card-z-index: 20;
|
|
$sidebar-z-index: 26;
|
|
$sidebar-overlay-z-index: 25;
|
|
|
|
// Flex
|
|
%row-nowrap {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
}
|
|
|
|
%col-nowrap {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
}
|
|
|
|
// Background Image Sizing
|
|
%bg-contain {
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
}
|
|
|
|
%ellipsify {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
%modal {
|
|
background-color: $white;
|
|
border-radius: 10px;
|
|
box-shadow: 0px 5px 16px rgba($black, 0.25);;
|
|
}
|
|
|
|
/*
|
|
Z Indicies - Current
|
|
app - 11
|
|
hex/bn as decimal input - 1 - remove?
|
|
dropdown - 11
|
|
loading - 10 - higher?
|
|
mascot - 0 - remove?
|
|
*/
|
|
|
|
/*
|
|
Responsive Breakpoints
|
|
*/
|
|
$break-small: 575px;
|
|
$break-midpoint: 780px;
|
|
$break-large: 576px;
|
|
|
|
|
|
$primary-font-type: Roboto;
|
|
|
|
$Blue-000: #eaf6ff;
|
|
$Blue-100: #a7d9fe;
|
|
$Blue-200: #75c4fd;
|
|
$Blue-300: #43aefc;
|
|
$Blue-400: #1098fc;
|
|
$Blue-500: #037DD6;
|
|
$Blue-600: #0260a4;
|
|
$Blue-700: #024272;
|
|
$Blue-800: #01253f;
|
|
$Blue-900: #00080d;
|
|
|
|
$Grey-000: #f2f3f4;
|
|
$Grey-100: #D6D9DC;
|
|
$Grey-200: #bbc0c5;
|
|
$Grey-300: #9fa6ae;
|
|
$Grey-400: #848c96;
|
|
$Grey-200: #bbc0c5;
|
|
$Grey-500: #6A737D;
|
|
$Grey-600: #535a61;
|
|
$Grey-800: #24272a;
|
|
|
|
$Red-000: #fcf2f3;
|
|
$Red-100: #f7d5d8;
|
|
$Red-200: #f1b9be;
|
|
$Red-300: #e88f97;
|
|
$Red-400: #e06470;
|
|
$Red-500: #D73A49;
|
|
$Red-600: #b92534;
|
|
$Red-700: #8e1d28;
|
|
$Red-800: #64141c;
|
|
$Red-900: #3a0c10;
|
|
|
|
$Orange-000: #fef5ef;
|
|
$Orange-300: #faa66c;
|
|
$Orange-600: #c65507;
|
|
$Orange-500: #F66A0A;
|
|
|
|
$Black-100: #24292E;
|
|
|
|
// Font Sizes
|
|
%h3 {
|
|
font-size: 1.5rem;
|
|
line-height: 2.125rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
%h4 {
|
|
font-size: 1.125rem;
|
|
line-height: 1.3125rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
%h5 {
|
|
font-size: 1rem;
|
|
line-height: 1.25rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
%h6 {
|
|
font-size: .875rem;
|
|
line-height: 1.25rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
%h8 {
|
|
font-size: .75rem;
|
|
line-height: 1.0625rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
|
|
/*
|
|
Spacing Variables
|
|
*/
|
|
$no-spacing: 0px;
|
|
$xxs-spacing: 4px;
|
|
$xs-spacing: 8px;
|
|
$s-spacing: 16px;
|
|
$base-spacing: 24px;
|
|
$medium-spacing: 32px;
|
|
$large-spacing: 40px;
|
|
$xlarge-spacing: 48px;
|
|
$xxlarge-spacing: 64px;
|
|
|
|
|
|
%input {
|
|
background: $white;
|
|
border: 1px solid $Grey-100;
|
|
box-sizing: border-box;
|
|
border-radius: 8px;
|
|
padding: .625rem .75rem;
|
|
font-size: 1.25rem;
|
|
}
|
|
// Input mixin
|
|
|
|
%input-2 {
|
|
border: 2px solid $Grey-200;
|
|
border-radius: 6px;
|
|
color: $Grey-800;
|
|
padding: 0.875rem 1rem;
|
|
font-size: 1.125rem;
|
|
|
|
&:focus-within {
|
|
border-color: $Blue-500;
|
|
}
|
|
}
|
|
|
|
// Font mixin
|
|
|
|
%font {
|
|
font-family: Roboto;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
color: $Grey-800;
|
|
}
|
|
|
|
%font--bold {
|
|
@extend %font;
|
|
font-weight: bold;
|
|
}
|
|
|
|
%header--18 {
|
|
@extend %font;
|
|
font-size: 18px;
|
|
}
|
|
|
|
%header--24 {
|
|
@extend %font;
|
|
font-size: 24px;
|
|
}
|
|
|
|
%content-text {
|
|
@extend %font;
|
|
font-size: 14px;
|
|
}
|