1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 11:01:41 +01:00
metamask-extension/ui/app/css/itcss/components/add-token.scss

344 lines
5.8 KiB
SCSS
Raw Normal View History

.add-token {
width: 498px;
display: flex;
flex-flow: column nowrap;
align-items: center;
position: relative;
z-index: 12;
font-family: 'DIN Next Light';
&__wrapper {
background-color: $white;
box-shadow: 0 2px 4px 0 rgba($black, .08);
display: flex;
flex-flow: column nowrap;
align-items: center;
flex: 0 0 auto;
}
&__title-container {
display: flex;
flex-flow: column nowrap;
align-items: center;
padding: 30px 60px 12px;
border-bottom: 1px solid $gallery;
flex: 0 0 auto;
}
&__title {
color: $scorpion;
font-size: 20px;
line-height: 26px;
text-align: center;
font-weight: 600;
margin-bottom: 12px;
}
&__description {
text-align: center;
}
&__description + &__description {
margin-top: 24px;
}
2017-09-22 03:44:52 +02:00
&__confirmation-description {
margin: 12px 0;
}
&__content-container {
width: 100%;
border-bottom: 1px solid $gallery;
}
&__input-container {
padding: 11px 0;
width: 263px;
margin: 0 auto;
2017-09-22 03:44:52 +02:00
position: relative;
}
&__search-input-error-message {
position: absolute;
bottom: -10px;
font-size: 12px;
width: 100%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: $red;
}
&__input {
width: 100%;
border: 2px solid $gallery;
border-radius: 4px;
padding: 5px 15px;
font-size: 14px;
line-height: 19px;
&::placeholder {
color: $silver;
}
}
&__footers {
width: 100%;
}
&__add-custom {
color: $scorpion;
font-size: 18px;
line-height: 24px;
text-align: center;
2017-09-22 03:44:52 +02:00
padding: 12px 0;
font-weight: 600;
cursor: pointer;
2018-01-13 01:16:28 +01:00
position: relative;
2017-09-22 03:44:52 +02:00
&:hover {
2017-10-24 09:38:39 +02:00
background-color: rgba(0, 0, 0, .05);
}
&:active {
background-color: rgba(0, 0, 0, .1);
}
.fa {
position: absolute;
right: 24px;
font-size: 24px;
line-height: 24px;
2017-09-22 03:44:52 +02:00
}
}
&__add-custom-form {
display: flex;
flex-flow: column nowrap;
margin: 8px 0 51px;
}
&__add-custom-field {
width: 290px;
margin: 0 auto;
2017-09-22 03:44:52 +02:00
position: relative;
&--error {
.add-token__add-custom-input {
border-color: $red;
}
}
}
&__add-custom-error-message {
position: absolute;
bottom: -21px;
font-size: 12px;
width: 100%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: $red;
}
&__add-custom-label {
font-size: 16px;
line-height: 21px;
margin-bottom: 8px;
}
&__add-custom-input {
width: 100%;
border: 1px solid $silver;
padding: 5px 15px;
font-size: 14px;
line-height: 19px;
&::placeholder {
color: $silver;
}
}
&__add-custom-field + &__add-custom-field {
margin-top: 21px;
}
&__buttons {
display: flex;
2018-01-13 01:16:28 +01:00
flex-flow: row nowrap;
margin: 30px 0 51px;
flex: 0 0 auto;
2018-01-13 01:16:28 +01:00
align-items: center;
justify-content: center;
}
&__button {
flex: 1 0 141px;
margin: 0 12px;
padding: 10px 22px;
height: 54px;
}
&__token-icons-container {
display: flex;
flex-flow: row wrap;
}
&__token-wrapper {
transition: 200ms ease-in-out;
display: flex;
flex-flow: row nowrap;
flex: 0 0 42.5%;
align-items: center;
padding: 12px;
margin: 2.5%;
box-sizing: border-box;
border-radius: 10px;
cursor: pointer;
border: 2px solid transparent;
position: relative;
2017-09-22 03:44:52 +02:00
&:hover {
border: 2px solid rgba($malibu-blue, .5);
}
&--selected {
2017-09-22 03:44:52 +02:00
border: 2px solid $malibu-blue !important;
}
&--disabled {
opacity: .4;
pointer-events: none;
}
}
&__token-data {
align-self: flex-start;
}
&__token-name {
font-size: 14px;
line-height: 19px;
}
&__token-symbol {
font-size: 22px;
line-height: 29px;
font-weight: 600;
}
&__token-icon {
width: 60px;
height: 60px;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
border-radius: 50%;
background-color: $white;
box-shadow: 0 2px 4px 0 rgba($black, .24);
margin-right: 12px;
flex: 0 0 auto;
}
2017-09-22 03:44:52 +02:00
&__token-message {
position: absolute;
color: $caribbean-green;
font-size: 11px;
bottom: 0;
left: 85px;
}
2017-09-22 03:44:52 +02:00
&__confirmation-token-list {
display: flex;
flex-flow: column nowrap;
.token-balance {
display: flex;
flex-flow: row nowrap;
align-items: flex-start;
&__amount {
color: $scorpion;
font-size: 43px;
font-weight: 300;
line-height: 43px;
margin-right: 8px;
}
&__symbol {
color: $scorpion;
font-size: 16px;
line-height: 24px;
}
}
}
&__confirmation-title {
padding: 30px 120px 12px;
2017-10-26 03:47:28 +02:00
@media screen and (max-width: $break-small) {
padding: 20px 0;
width: 100%;
}
2017-09-22 03:44:52 +02:00
}
&__confirmation-content {
padding-bottom: 60px;
}
&__confirmation-token-list-item {
display: flex;
flex-flow: row nowrap;
2017-10-26 03:47:28 +02:00
margin: 0 auto;
2017-09-22 03:44:52 +02:00
align-items: center;
}
&__confirmation-token-list-item + &__confirmation-token-list-item {
margin-top: 30px;
}
&__confirmation-token-icon {
margin-right: 18px;
}
@media screen and (max-width: $break-small) {
top: 0;
width: 100%;
2017-10-26 03:47:28 +02:00
overflow: hidden;
height: 100%;
&__wrapper {
box-shadow: none !important;
2017-10-26 03:47:28 +02:00
flex: 1 1 auto;
width: 100%;
overflow-y: auto;
}
&__footers {
border-bottom: 1px solid $gallery;
}
&__token-icon {
width: 50px;
height: 50px;
}
&__token-symbol {
font-size: 18px;
line-height: 24px;
}
&__token-name {
font-size: 12px;
line-height: 16px;
}
2017-10-26 03:47:28 +02:00
&__buttons {
padding: 12px 0;
margin: 0;
border-top: 1px solid $gallery;
2018-01-13 01:16:28 +01:00
width: 100%;
2017-10-26 03:47:28 +02:00
}
}
}