Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
4505b788
Commit
4505b788
authored
Aug 13, 2014
by
alexpott
Browse files
Issue
#2311279
by emma.maria | LewisNyman: Tweak the colours of the password indicator.
parent
7f4876c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/user/css/user.module.css
View file @
4505b788
...
...
@@ -25,13 +25,15 @@
display
:
inline
;
}
.password-strength__meter
{
background-color
:
#
c4c4c
4
;
background-color
:
#
ebeae
4
;
height
:
0.5em
;
}
.password-strength__indicator
{
height
:
100%
;
width
:
0%
;
background-color
:
#47c965
;
background-color
:
#77b259
;
-webkit-transition
:
width
0.5s
ease-out
;
transition
:
width
0.5s
ease-out
;
}
input
.password-confirm
,
input
.password-field
,
...
...
core/modules/user/user.js
View file @
4505b788
...
...
@@ -152,19 +152,19 @@
// Based on the strength, work out what text should be shown by the password strength meter.
if
(
strength
<
60
)
{
indicatorText
=
translate
.
weak
;
indicatorColor
=
'
#
bb5555
'
;
indicatorColor
=
'
#
e62600
'
;
}
else
if
(
strength
<
70
)
{
indicatorText
=
translate
.
fair
;
indicatorColor
=
'
#
bbbb55
'
;
indicatorColor
=
'
#
e09600
'
;
}
else
if
(
strength
<
80
)
{
indicatorText
=
translate
.
good
;
indicatorColor
=
'
#
4863a0
'
;
indicatorColor
=
'
#
0074bd
'
;
}
else
if
(
strength
<=
100
)
{
indicatorText
=
translate
.
strong
;
indicatorColor
=
'
#
47c965
'
;
indicatorColor
=
'
#
77b259
'
;
}
// Assemble the final message.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment