2024-11-05 19:02:31 +01:00
|
|
|
@import 'colors';
|
|
|
|
@import 'constants';
|
2021-08-31 18:14:32 +02:00
|
|
|
|
2024-11-05 19:02:31 +01:00
|
|
|
$complexity-bg: #eeeeee;
|
2021-08-31 18:14:32 +02:00
|
|
|
$complexity-color-0: $lighter-red;
|
2024-11-05 19:02:31 +01:00
|
|
|
$complexity-color-1: #ff5000;
|
2021-08-31 18:14:32 +02:00
|
|
|
$complexity-color-2: $orange;
|
2024-11-05 19:02:31 +01:00
|
|
|
$complexity-color-3: #ffd000;
|
2021-08-31 18:14:32 +02:00
|
|
|
$complexity-color-4: $green;
|
|
|
|
|
|
|
|
.password-complexity {
|
|
|
|
width: 100%;
|
|
|
|
height: 12px;
|
|
|
|
background: $complexity-bg;
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
|
|
&.complexity-0 {
|
2024-11-05 19:02:31 +01:00
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
|
|
|
$complexity-color-0 00%,
|
|
|
|
$complexity-bg 20%
|
|
|
|
);
|
2021-08-31 18:14:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.complexity-1 {
|
2024-11-05 19:02:31 +01:00
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
|
|
|
$complexity-color-1 20%,
|
|
|
|
$complexity-bg 40%
|
|
|
|
);
|
2021-08-31 18:14:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.complexity-2 {
|
2024-11-05 19:02:31 +01:00
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
|
|
|
$complexity-color-2 40%,
|
|
|
|
$complexity-bg 60%
|
|
|
|
);
|
2021-08-31 18:14:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.complexity-3 {
|
2024-11-05 19:02:31 +01:00
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
|
|
|
$complexity-color-3 60%,
|
|
|
|
$complexity-bg 80%
|
|
|
|
);
|
2021-08-31 18:14:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.complexity-4 {
|
|
|
|
background: $complexity-color-4;
|
|
|
|
}
|
|
|
|
}
|