2e35e9578c
* new font and add as font-family to be used in masked-input * clean up logic * refactor for displayOnly * start cert masking * work on certificates * upload cert work * fix global styling * fix styling for class no longer used * make mask by default and remove option * glimmerize start and certificate on LDAP a file field * glimmerize actions * first part of glimmerizing text-file still need to do some clean up * not doing awesome over here * getting ready to un-glimmer * unglimmerize * remove placeholder based on conversations with design * clean up text-file * cleanup * fix class bindings * handle class binding * set up for test * fix elementId * track down index * update masked-input test * add more to the masked-input test * test-file test * fix broken test * clear old style * clean up * remove pgp key masked font, this really needs to be refactored to text-file component * changelog * cover other certificate view * add allowCopy * address some pr styling comments * improve test coverage * fix some issues * add attr.options.masked
96 lines
1.7 KiB
SCSS
96 lines
1.7 KiB
SCSS
.masked-font {
|
|
color: $ui-gray-300;
|
|
}
|
|
|
|
.masked-input {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.has-label .masked-input {
|
|
padding-top: $spacing-s;
|
|
}
|
|
|
|
.has-padding {
|
|
padding: $size-10 $size-8;
|
|
}
|
|
|
|
// 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;
|
|
line-height: 2.5;
|
|
}
|
|
|
|
.masked-input.display-only .masked-value {
|
|
order: 1;
|
|
}
|
|
|
|
// aligns the boxes on the input page
|
|
.masked-input.masked:not(.display-only) .masked-value {
|
|
line-height: 3;
|
|
border-radius: $radius 0 0 $radius;
|
|
}
|
|
|
|
//override bulma's pre styling
|
|
.masked-input .display-only {
|
|
line-height: 1.5;
|
|
font-size: 1rem;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
padding-left: $spacing-s;
|
|
background-color: transparent;
|
|
}
|
|
|
|
.button.masked-input-toggle,
|
|
.button.copy-button {
|
|
min-width: $spacing-xl;
|
|
border-left: 0;
|
|
color: $grey;
|
|
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;
|
|
}
|
|
|
|
.display-only {
|
|
.button.masked-input-toggle,
|
|
.button.copy-button {
|
|
background: transparent;
|
|
height: auto;
|
|
line-height: 1rem;
|
|
min-width: $spacing-l;
|
|
z-index: 100;
|
|
border: 0;
|
|
box-shadow: none;
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
|
|
.masked-input.masked .masked-value {
|
|
color: $grey-light;
|
|
}
|
|
|
|
.masked-input .input:focus + .masked-input-toggle {
|
|
background: rgba($white, 0.95);
|
|
}
|