2021-04-22 14:58:37 +00:00
|
|
|
.masked-font {
|
|
|
|
color: $ui-gray-300;
|
|
|
|
}
|
|
|
|
|
2018-06-14 18:52:00 +00:00
|
|
|
.masked-input {
|
2018-10-31 17:13:57 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-06-14 18:52:00 +00:00
|
|
|
}
|
|
|
|
|
2018-10-31 21:41:21 +00:00
|
|
|
.has-label .masked-input {
|
|
|
|
padding-top: $spacing-s;
|
|
|
|
}
|
|
|
|
|
2018-11-12 16:27:06 +00:00
|
|
|
.has-padding {
|
|
|
|
padding: $size-10 $size-8;
|
|
|
|
}
|
|
|
|
|
2018-06-14 18:52:00 +00:00
|
|
|
// we want to style the boxes the same everywhere so they
|
|
|
|
// need to be the same font and small
|
|
|
|
.masked-input.masked .masked-value {
|
|
|
|
font-size: 9px;
|
|
|
|
font-family: $family-primary;
|
2018-10-31 17:13:57 +00:00
|
|
|
line-height: 2.5;
|
2018-06-14 18:52:00 +00:00
|
|
|
}
|
|
|
|
|
2018-10-31 17:13:57 +00:00
|
|
|
.masked-input.display-only .masked-value {
|
|
|
|
order: 1;
|
2018-06-14 18:52:00 +00:00
|
|
|
}
|
2018-10-31 17:13:57 +00:00
|
|
|
|
2018-06-14 18:52:00 +00:00
|
|
|
// aligns the boxes on the input page
|
|
|
|
.masked-input.masked:not(.display-only) .masked-value {
|
|
|
|
line-height: 3;
|
2018-10-31 17:13:57 +00:00
|
|
|
border-radius: $radius 0 0 $radius;
|
2018-06-14 18:52:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//override bulma's pre styling
|
|
|
|
.masked-input .display-only {
|
|
|
|
line-height: 1.5;
|
|
|
|
font-size: 1rem;
|
2018-10-10 04:45:53 +00:00
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
2018-10-31 17:13:57 +00:00
|
|
|
padding-left: $spacing-s;
|
2018-10-31 21:41:21 +00:00
|
|
|
background-color: transparent;
|
2018-06-14 18:52:00 +00:00
|
|
|
}
|
|
|
|
|
2018-10-31 17:13:57 +00:00
|
|
|
.button.masked-input-toggle,
|
|
|
|
.button.copy-button {
|
|
|
|
min-width: $spacing-xl;
|
|
|
|
border-left: 0;
|
|
|
|
color: $grey;
|
2018-12-07 21:23:42 +00:00
|
|
|
box-shadow: 0 3px 1px 0px rgba(10, 10, 10, 0.12);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button.copy-button {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button.masked-input-toggle {
|
|
|
|
border-radius: 0 $radius $radius 0;
|
2018-10-31 17:13:57 +00:00
|
|
|
}
|
2018-06-14 18:52:00 +00:00
|
|
|
|
2018-10-31 17:13:57 +00:00
|
|
|
.display-only {
|
|
|
|
.button.masked-input-toggle,
|
|
|
|
.button.copy-button {
|
|
|
|
background: transparent;
|
|
|
|
height: auto;
|
|
|
|
line-height: 1rem;
|
|
|
|
min-width: $spacing-l;
|
2018-06-14 18:52:00 +00:00
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
2018-10-31 17:13:57 +00:00
|
|
|
color: $grey-light;
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&.is-active,
|
|
|
|
&:focus,
|
|
|
|
&.is-focused,
|
|
|
|
&:hover,
|
|
|
|
&:focus:not(:active) {
|
|
|
|
color: $blue;
|
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2018-06-14 18:52:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-31 17:13:57 +00:00
|
|
|
.masked-input.masked .masked-value {
|
|
|
|
color: $grey-light;
|
2018-06-14 18:52:00 +00:00
|
|
|
}
|
|
|
|
|
2018-10-31 17:13:57 +00:00
|
|
|
.masked-input .input:focus + .masked-input-toggle {
|
|
|
|
background: rgba($white, 0.95);
|
2018-06-14 18:52:00 +00:00
|
|
|
}
|