1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/ui/components/app/signature-request-original/index.scss
Ariella Vu 34eeea26f3
Fix Signature Request styles (#15621)
* SignatureRequestOriginal: fix collapsing ui

* SignatureRequestOrigin: fix collapsing icon
2022-08-18 23:54:44 +08:00

261 lines
4.2 KiB
SCSS

.request-signature {
&__container {
width: 380px;
border-radius: 8px;
background-color: var(--color-background-default);
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
display: flex;
flex-flow: column nowrap;
z-index: 25;
align-items: center;
position: relative;
height: 100%;
@include screen-sm-max {
width: 100%;
top: 0;
box-shadow: none;
}
@include screen-sm-min {
height: 620px;
}
&__reject {
padding-bottom: 20px;
}
}
&__typed-container {
padding: 17px;
h1 {
font-weight: 900;
margin-bottom: 5px;
}
* {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
> div {
margin-bottom: 10px;
}
}
&__header {
height: 64px;
width: 100%;
position: relative;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
flex: 0 0 auto;
}
&__header-background {
position: absolute;
background-color: var(--color-background-alternative);
z-index: 2;
width: 100%;
height: 100%;
}
&__header__text {
@include H3;
color: var(--color-default-text);
z-index: 3;
}
&__header__tip-container {
width: 100%;
display: flex;
justify-content: center;
}
&__header__tip {
height: 25px;
width: 25px;
background: var(--color-background-alternative);
transform: rotate(45deg);
position: absolute;
bottom: -8px;
z-index: 1;
}
&__account-info {
display: flex;
justify-content: space-between;
margin-top: 18px;
margin-bottom: 20px;
}
&__account {
color: var(--color-text-alternative);
margin-left: 17px;
}
&__account-text {
@include H6;
}
&__account-item {
@include H7;
height: 22px;
background-color: var(--color-background-default);
width: 124px;
.account-list-item {
margin-top: 6px;
}
.account-list-item__account-name {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 80px;
}
.account-list-item__top-row {
margin: 0;
}
}
&__balance {
color: var(--color-text-alternative);
margin-right: 17px;
width: 124px;
}
&__balance-text {
@include H6;
text-align: right;
}
&__balance-value {
text-align: right;
margin-top: 2.5px;
}
&__request-icon {
margin-top: 25px;
}
&__body {
width: 100%;
height: 100%;
display: flex;
flex-flow: column;
flex: 1 1 auto;
}
&__origin-row {
@include Paragraph;
display: flex;
margin: 0 15px;
}
&__origin-label {
flex-grow: 1;
margin-right: 5px;
}
&__origin-icon {
flex: 0 0 24px;
}
&__origin {
margin-left: 5px;
}
&__notice,
&__warning {
@include H6;
text-align: center;
margin-top: 41px;
margin-bottom: 11px;
width: 100%;
}
&__notice {
color: var(--color-text-alternative);
padding: 0 10px;
}
&__warning {
color: var(--color-error-default);
}
&__rows {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
border-top: 1px solid var(--color-border-default);
display: flex;
flex-flow: column;
}
&__row {
display: flex;
flex-flow: column;
flex: 1 0 auto;
}
&__row-title {
@include H5;
width: 80px;
color: var(--color-text-alternative);
margin-top: 12px;
margin-left: 18px;
width: 100%;
}
&__row-value {
@include H6;
color: var(--color-text-alternative);
width: 100%;
overflow-wrap: break-word;
border-bottom: 1px solid var(--color-border-default);
padding: 6px 18px 15px;
white-space: pre-wrap;
}
&__help-link {
cursor: pointer;
text-decoration: underline;
color: var(--color-primary-default);
margin-inline-start: 3px;
}
&__footer {
@include H3;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
flex: 0 0 auto;
border-top: 1px solid var(--color-border-default);
padding: 1.6rem;
button {
width: 165px;
}
&__cancel-button {
margin-right: 1.2rem;
}
}
}