Skip to content

Commit

Permalink
Use SASS placeholder for common ID card padded styles
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Oct 22, 2020
1 parent ca24cc7 commit 2df9969
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
#document-capture-form .document-capture-acuant-capture { // scss-lint:disable IdSelector
max-width: 375px;

%pad-common-id-card {
display: block;
// 2.125" x 3.375" are common standard ID dimensions
padding-bottom: ((2.125 / 3.375) * 100) + unquote('%');
}

.usa-file-input:not(.usa-file-input--has-value) {
@include u-margin-top(1);
position: relative;
Expand All @@ -22,16 +28,12 @@
}

&::after {
@extend %pad-common-id-card;
content: '';
display: block;
// 2.125" x 3.375" are common standard ID dimensions
padding-bottom: ((2.125 / 3.375) * 100) + unquote('%');
}
}

.document-capture-file-image--loading {
display: block;
// 2.125" x 3.375" are common standard ID dimensions
padding-bottom: ((2.125 / 3.375) * 100) + unquote('%');
@extend %pad-common-id-card;
}
}

0 comments on commit 2df9969

Please sign in to comment.