1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 20:05:27 +02:00
metamask-extension/ui/app/pages/permissions-connect/choose-account/index.scss
Dan J Miller d8179ff030
Connect Screen Multi Select (#8078)
* 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
2020-04-02 06:39:53 -02:30

157 lines
2.6 KiB
SCSS

.permissions-connect-choose-account {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 40px;
width: 428px;
margin-left: auto;
margin-right: auto;
&__title {
@extend %header--18;
}
&__text, &__text--blue, &__text--grey {
@extend %content-text;
line-height: 25px;
}
&__text-blue {
color: $curious-blue;
cursor: pointer;
}
&__text-grey {
color: $Grey-500;
}
&__accounts-list {
width: 100%;
border: 1px solid #D0D5DA;
box-sizing: border-box;
border-radius: 8px;
margin-top: 8px;
max-height: 338px;
overflow-y: auto;
@media screen and (max-width: 575px) {
width: 100%;
}
}
&__accounts-list-header--one-item,
&__accounts-list-header--two-items {
display: flex;
margin-top: 36px;
width: 100%;
padding-right: 2px;
}
&__accounts-list-header--one-item {
justify-content: flex-end;
}
&__accounts-list-header--two-items {
justify-content: space-between;
}
&__account-info-wrapper {
display: flex;
justify-content: flex-start;
align-items: center;
}
&__list-check-box {
margin-right: 24px;
}
&__header-check-box {
margin-right: 16px;
}
&__select-all {
display: flex;
margin-left: 16px;
align-items: center;
.fa-info-circle, .fa-info-circle:hover {
color: $silver;
cursor: pointer;
margin-left: 8px;
font-size: 0.9rem;
}
.fa-info-circle {
cursor: pointer;
}
.fa-info-circle:hover {
color: $mid-gray;
}
}
&__account {
display: flex;
align-items: center;
padding: 16px;
border-bottom: 1px solid #D2D8DD;
justify-content: space-between;
&:last-of-type {
border-bottom: none;
}
&:hover {
background: aliceblue;
cursor: pointer;
}
&__info {
display: flex;
flex-direction: column;
margin-left: 16px;
}
&__label {
@extend %header--18;
line-height: 25px;
color: #000000;
}
&__balance {
@extend %content-text;
line-height: 17px;
color: #6A737D;
}
&__last-connected {
@extend %content-text;
font-size: 10px;
line-height: 140.62%;
display: flex;
flex-direction: column;
align-items: flex-end;
color: #037DD6;
}
}
&__cancel {
color: $Red-400;
}
&__bottom-buttons {
display: flex;
justify-content: space-between;
width: 100%;
margin-top: 16px;
button {
width: 124px;
}
.btn-default {
background: white;
}
}
}