1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/ui/pages/confirm-decrypt-message/confirm-decrypt-message.scss

278 lines
4.7 KiB
SCSS
Raw Normal View History

.request-decrypt-message {
&__container {
width: 380px;
border-radius: 8px;
2022-03-23 16:40:07 +01:00
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%;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
width: 100%;
top: 0;
box-shadow: none;
}
2022-08-04 16:03:02 +02:00
@include screen-sm-min {
height: 620px;
}
}
&__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;
2022-03-23 16:40:07 +01:00
background-color: var(--color-background-alternative);
z-index: 2;
width: 100%;
height: 100%;
}
&__header__text {
2020-10-29 17:31:48 +01:00
@include H3;
2022-03-23 16:40:07 +01:00
color: var(--color-text-alternative);
z-index: 3;
text-align: center;
}
&__header__tip-container {
width: 100%;
display: flex;
justify-content: center;
}
&__header__tip {
height: 25px;
width: 25px;
2022-03-23 16:40:07 +01:00
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 {
2020-10-29 17:31:48 +01:00
@include H6;
}
&__account-item {
2020-10-29 17:31:48 +01:00
@include H7;
height: 22px;
2022-03-23 16:40:07 +01:00
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 {
2020-10-29 17:31:48 +01:00
@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;
height: 0;
}
&__notice {
2020-10-29 17:31:48 +01:00
@include H6;
text-align: center;
margin-top: 15px;
margin-bottom: 11px;
width: 100%;
}
&__message {
overflow-wrap: break-word;
margin: 20px;
overflow: hidden;
2022-03-23 16:40:07 +01:00
border: 1px solid var(--color-border-alternative);
padding: 5px;
border-radius: 5px;
position: relative;
&-text {
2020-10-29 17:31:48 +01:00
@include H7;
height: 115px;
}
&-cover {
2022-03-23 16:40:07 +01:00
background-color: var(--color-background-default);
opacity: 0.75;
position: absolute;
height: 100%;
width: 100%;
top: 0;
}
&-lock {
position: absolute;
height: 100%;
width: 100%;
top: 0;
cursor: pointer;
&__container {
padding: 16px;
2022-03-23 16:40:07 +01:00
background-color: var(--color-background-default);
position: absolute;
left: 50%;
top: 50%;
border-radius: 3px;
transform: translate(-50%, calc(-50%));
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
&__icon {
color: var(--color-icon-default);
display: flex;
margin-bottom: 16px;
}
&__text {
@include H7;
}
}
&--pressed {
display: none;
}
}
&-copy {
2020-10-29 17:31:48 +01:00
@include H7;
justify-content: space-evenly;
margin-left: 20px;
margin-right: 20px;
display: flex;
cursor: pointer;
}
&-copy-text {
margin-right: 10px;
display: inline;
}
&-copy-tooltip {
float: right;
}
}
&__visual {
display: flex;
flex-direction: row;
justify-content: space-evenly;
position: relative;
margin: 0 20px;
section {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
}
&-identicon {
width: 48px;
height: 48px;
&--default {
2022-03-23 16:40:07 +01:00
background-color: var(--color-background-alternative);
color: var(--color-text-default);
width: 48px;
height: 48px;
border-radius: 24px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}
}
}
}