72 lines
1.2 KiB
SCSS
72 lines
1.2 KiB
SCSS
@import 'common/sass/variables';
|
|
|
|
$width: 320px;
|
|
$number-width: 40px;
|
|
$number-margin: 6px;
|
|
|
|
@keyframes word-fade {
|
|
0% {
|
|
color: rgba($text-color, 0);
|
|
}
|
|
100% {
|
|
color: rgba($text-color, 1);
|
|
}
|
|
}
|
|
|
|
.MnemonicWord {
|
|
display: flex;
|
|
width: $width;
|
|
margin-bottom: $space-xs;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
& .input-group-addon {
|
|
margin-bottom: $space-md;
|
|
}
|
|
|
|
&-word {
|
|
width: $width - $number-width - $number-margin;
|
|
|
|
&-input {
|
|
animation: word-fade 400ms ease 1;
|
|
animation-fill-mode: both;
|
|
transition: border 0.2s ease-in;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
&-button {
|
|
position: relative;
|
|
width: 300px;
|
|
margin-bottom: $space-sm;
|
|
|
|
&-index {
|
|
position: absolute;
|
|
top: -4px;
|
|
left: -7px;
|
|
z-index: 1;
|
|
color: #fff;
|
|
width: 26px;
|
|
height: 26px;
|
|
border-radius: 100%;
|
|
background: linear-gradient(
|
|
to top,
|
|
lighten($brand-success, 10%),
|
|
lighten($brand-success, 5%)
|
|
);
|
|
line-height: 24px;
|
|
}
|
|
}
|
|
|
|
// Fade-in animation
|
|
@for $i from 1 to 12 {
|
|
&:nth-child(#{$i}) {
|
|
.MnemonicWord-word-input {
|
|
animation-delay: $i * 50ms;
|
|
}
|
|
}
|
|
}
|
|
}
|