1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-15 12:59:09 +00:00
trezor-wallet/src/styles/modal.less

311 lines
6.6 KiB
Plaintext
Raw Normal View History

2017-12-13 11:01:37 +00:00
.modal-container {
position: fixed;
z-index: 10000;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
2018-02-20 09:30:36 +00:00
background: rgba(0, 0, 0, 0.35);
display: flex;
flex-direction: column;
align-items: center;
overflow: auto;
padding: 20px;
2017-12-13 11:01:37 +00:00
.modal-window {
2018-02-20 09:30:36 +00:00
margin: auto;
// padding: 24px 48px;
2017-12-13 11:01:37 +00:00
position: relative;
2018-02-20 09:30:36 +00:00
border-radius: 4px;
background-color: @color_white;
2017-12-13 11:01:37 +00:00
text-align: center;
2018-03-08 16:10:53 +00:00
// overflow: hidden;
2017-12-13 11:01:37 +00:00
}
2018-02-20 09:30:36 +00:00
h3 {
color: @color_text_primary;
font-size: 16px;
font-weight: 500;
margin-top: 14px;
}
p {
margin: 5px 0px;
font-weight: normal;
color: @color_text_secondary;
font-size: 12px;
}
.confirm-tx {
width: 390px; // address overflow
.header {
padding: 24px 48px;
&:before {
.icomoon-T1;
font-size: 52px;
color: @color_text_secondary;
}
h3 {
margin: 0;
}
}
.content {
border-top: 1px solid @color_divider;
background: @color_main;
padding: 24px 48px;
label {
font-size: 10px;
color: @color_text_secondary;
}
p {
font-size: 12px;
font-weight: 400;
color: @color_text_primary;
}
}
}
.confirm-address {
width: 390px; // address overflow
.header {
padding: 24px 48px;
&:before {
.icomoon-T1;
font-size: 52px;
color: @color_text_secondary;
}
h3 {
margin: 0;
}
}
.content {
border-top: 1px solid @color_divider;
background: @color_main;
padding: 24px 48px;
label {
font-size: 12px;
color: @color_text_secondary;
}
p {
font-size: 12px;
font-weight: 400;
color: @color_text_primary;
}
}
}
.confirm-address-unverified {
width: 370px;
padding: 24px 48px;
2018-05-15 14:53:19 +00:00
h3 {
word-break: break-all;
}
2018-05-15 17:47:24 +00:00
2018-02-20 09:30:36 +00:00
button:not(.close-modal) {
width: 100%;
margin-top: 12px;
}
}
.duplicate,
2018-02-20 09:30:36 +00:00
.remember {
width: 360px;
padding: 24px 48px;
2018-05-15 14:53:19 +00:00
h3 {
word-break: break-all;
}
2018-02-20 09:30:36 +00:00
p {
padding: 14px 0px;
}
2018-05-15 17:47:24 +00:00
.row {
position: relative;
2018-05-15 14:53:19 +00:00
text-align: left;
2018-05-15 17:47:24 +00:00
padding-bottom: 20px;
label {
display: block;
padding-bottom: 6px;
text-align: left;
color: @color_text_secondary;
}
.error {
position: absolute;
left: 0px;
bottom: 0px;
font-size: 12px;
color: @color_error_primary;
}
2018-05-15 14:53:19 +00:00
}
2018-05-15 17:47:24 +00:00
button:not(.close-modal) {
2018-02-20 09:30:36 +00:00
width: 100%;
margin-top: 12px;
span {
position: relative;
}
2017-12-13 11:01:37 +00:00
}
2018-02-20 09:30:36 +00:00
.loader-circle {
position: absolute;
top: 0;
bottom: 0;
left: -36px;
margin: auto;
p {
margin: 0;
padding: 0;
2018-05-22 09:47:28 +00:00
color: @color_white;
2018-02-20 09:30:36 +00:00
}
}
}
.close-modal {
position: absolute;
top: 0;
right: 0;
padding: 12px;
&:after {
.icomoon-close;
}
}
.pin {
padding: 24px 48px;
.pin-row {
2017-12-13 11:01:37 +00:00
button {
2018-02-20 09:30:36 +00:00
width: 80px;
height: 80px;
margin-top: 15px;
margin-left: 10px;
2018-03-08 16:10:53 +00:00
font-size: 22px;
font-weight: 600;
2018-02-20 09:30:36 +00:00
color: @color_text_primary;
border: 1px solid @color_divider;
background: @color_white;
transition: all 0.3s;
2017-12-13 11:01:37 +00:00
&:first-child {
margin-left: 0px;
}
2018-02-20 09:30:36 +00:00
&:hover {
color: @color_text_primary;
border-color: @color_text_secondary;
}
&:active {
color: @color_text_primary;
background: @color_divider;
border-color: @color_divider;
}
2017-12-13 11:01:37 +00:00
}
}
2018-02-20 09:30:36 +00:00
.pin-input-row {
margin-top: 24px;
2017-12-13 11:01:37 +00:00
display: inline-block;
position: relative;
}
input {
2018-02-20 09:30:36 +00:00
letter-spacing: 6px;
line-height: 48px;
2018-03-08 16:10:53 +00:00
font-weight: 600;
font-size: 32px;
2018-02-20 09:30:36 +00:00
height: auto;
2018-03-08 16:10:53 +00:00
padding: 0px 31px;
2018-02-20 09:30:36 +00:00
color: @color_text_primary;
background: transparent;
2017-12-13 11:01:37 +00:00
}
2018-02-20 09:30:36 +00:00
.pin-backspace {
2017-12-13 11:01:37 +00:00
position: absolute;
2018-02-20 09:30:36 +00:00
right: 14px;
top: 0;
bottom: 0;
margin: auto 0;
padding: 0;
&:after {
2018-03-08 16:10:53 +00:00
.icomoon-back;
2017-12-13 11:01:37 +00:00
}
}
2018-02-20 09:30:36 +00:00
a {
color: @color_green_primary;
2017-12-13 11:01:37 +00:00
}
}
.passphrase {
2018-02-20 09:30:36 +00:00
padding: 24px 48px;
2018-05-15 14:53:19 +00:00
h3 {
max-width: 260px;
word-break: break-all;
}
2018-02-20 09:30:36 +00:00
.row {
position: relative;
text-align: left;
padding-top: 24px;
label:not(.custom-checkbox) {
display: block;
padding-bottom: 6px;
color: @color_text_secondary;
2017-12-13 11:01:37 +00:00
}
2018-02-20 09:30:36 +00:00
.error {
position: absolute;
left: 0px;
bottom: -19px;
font-size: 12px;
color: @color_error_primary;
}
}
2017-12-13 11:01:37 +00:00
}
input[type="text"],
input[type="password"] {
2018-02-20 09:30:36 +00:00
width: 260px;
2018-05-15 17:47:24 +00:00
// box-shadow: none;
// border-radius: 0px;
// border: 1px solid @color_divider;
2018-02-20 09:30:36 +00:00
height: auto;
2017-12-13 11:01:37 +00:00
2018-02-20 09:30:36 +00:00
.placeholder({
color: @color_divider;
});
2017-12-13 11:01:37 +00:00
}
2018-02-20 09:30:36 +00:00
.submit {
width: 100%;
margin-top: 24px;
margin-bottom: 14px;
2017-12-13 11:01:37 +00:00
}
}
.fade-enter {
opacity: 0.01;
}
.fade-enter.fade-enter-active {
opacity: 1;
transition: opacity 1000ms ease-in;
}
.fade-exit {
opacity: 1;
}
.fade-exit.fade-exit-active {
opacity: 0.01;
transition: opacity 800ms ease-in;
}