Skip to content

Commit efdb6e0

Browse files
committed
Extract PasswordInput styles into standalone stylesheet
Move .password-input-wrapper styles out of debug_authentication.scss into their own password_input.scss so the component is styled correctly when reused outside of the debug authentication context.
1 parent 51b6763 commit efdb6e0

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

src/stylesheets/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ $fontfamily: 'Open Sans', sans-serif;
4949
@import "library_registration";
5050
@import "manage_patrons";
5151
@import "paired_menu";
52+
@import "password_input";
5253
@import "protocol_form_field";
5354
@import "self_tests";
5455
@import "set_up";

src/stylesheets/debug_authentication.scss

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -102,31 +102,4 @@
102102
.panel-success > .panel-heading {
103103
background: $green-muted;
104104
}
105-
106-
.password-input-wrapper {
107-
position: relative;
108-
109-
input {
110-
padding-right: 40px;
111-
}
112-
113-
.password-toggle-btn {
114-
display: flex;
115-
align-items: center;
116-
justify-content: center;
117-
position: absolute;
118-
top: 50%;
119-
right: 6px;
120-
background: none;
121-
border: none;
122-
padding: 4px;
123-
cursor: pointer;
124-
transform: translateY(-50%);
125-
126-
svg {
127-
width: 20px;
128-
height: auto;
129-
}
130-
}
131-
}
132105
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.password-input-wrapper {
2+
position: relative;
3+
4+
input {
5+
padding-right: 40px;
6+
}
7+
8+
.password-toggle-btn {
9+
display: flex;
10+
align-items: center;
11+
justify-content: center;
12+
position: absolute;
13+
top: 50%;
14+
right: 6px;
15+
background: none;
16+
border: none;
17+
padding: 4px;
18+
cursor: pointer;
19+
transform: translateY(-50%);
20+
21+
svg {
22+
width: 20px;
23+
height: auto;
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)