Skip to content

Commit

Permalink
Move 'Reveal Passwords' toggle styles to dedicated file
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed Dec 18, 2023
1 parent 6e6c4ff commit 2d20019
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/styles/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,6 @@ form {
font-size: inherit;
}

.field[data-field-id='reveal-passwords'] {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
margin-top: var(--font-size-xl);
margin-bottom: 5px;
label {
font-size: var(--font-size-reveal-passwords);
}
}

label {
font-size: var(--font-size-password-label);
}

label[for='reveal-passwords'] {
margin-right: 0;
font-size: 1rem;
}
input#reveal-passwords {
margin-right: 0;
}
19 changes: 19 additions & 0 deletions src/styles/_reveal-passwords-toggle.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.field[data-field-id='reveal-passwords'] {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
margin-top: var(--font-size-xl);
margin-bottom: 5px;
label {
font-size: var(--font-size-reveal-passwords);
}
}

label[for='reveal-passwords'] {
margin-right: 0;
font-size: 1rem;
}
input#reveal-passwords {
margin-right: 0;
}
1 change: 1 addition & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
@import 'fonts';
@import 'app';
@import 'form';
@import 'reveal-passwords-toggle';
@import 'password';
@import 'match-status';

0 comments on commit 2d20019

Please sign in to comment.