1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

style fixes for colorized passwords

This commit is contained in:
Kyle Spearrin
2018-12-08 13:48:30 -05:00
parent 4597390166
commit 865658734a
6 changed files with 36 additions and 30 deletions

2
jslib

Submodule jslib updated: 1da72b9a97...9694d2922e

View File

@@ -9,9 +9,8 @@
<div class="box-content condensed"> <div class="box-content condensed">
<div class="box-content-row box-content-row-flex" *ngFor="let h of history"> <div class="box-content-row box-content-row-flex" *ngFor="let h of history">
<div class="row-main"> <div class="row-main">
<span class="text monospaced"> <div class="text password-wrapper monospaced"
{{h.password}} [innerHTML]="h.password | colorPassword"></div>
</span>
<span class="detail">{{h.date | date:'medium'}}</span> <span class="detail">{{h.date | date:'medium'}}</span>
</div> </div>
<div class="action-buttons"> <div class="action-buttons">

View File

@@ -26,8 +26,10 @@
<div class="box-content-row box-content-row-flex" *ngIf="cipher.login.password"> <div class="box-content-row box-content-row-flex" *ngIf="cipher.login.password">
<div class="row-main"> <div class="row-main">
<span class="row-label">{{'password' | i18n}}</span> <span class="row-label">{{'password' | i18n}}</span>
<span [hidden]="showPassword" class="monospaced">{{cipher.login.maskedPassword}}</span> <div [hidden]="showPassword" class="monospaced password-wrapper">
<span [hidden]="!showPassword" class="monospaced" [innerHTML]="cipher.login.password | colorPassword"></span> {{cipher.login.maskedPassword}}</div>
<div [hidden]="!showPassword" class="monospaced password-wrapper"
[innerHTML]="cipher.login.password | colorPassword"></div>
</div> </div>
<div class="action-buttons"> <div class="action-buttons">
<button type="button" #checkPasswordBtn class="row-btn btn" appBlurClick <button type="button" #checkPasswordBtn class="row-btn btn" appBlurClick

View File

@@ -64,18 +64,6 @@ input, select, textarea {
} }
} }
.passwordNumber {
@include themify($themes) {
color: themed('passwordNumberColor');
}
}
.passwordSpecial {
@include themify($themes) {
color: themed('passwordSpecialColor');
}
}
input, select, textarea, button { input, select, textarea, button {
font-size: $font-size-base; font-size: $font-size-base;
font-family: $font-family-sans-serif; font-family: $font-family-sans-serif;

View File

@@ -88,10 +88,6 @@ p.lead {
font-weight: normal; font-weight: normal;
} }
[hidden] {
display: none !important;
}
.monospaced { .monospaced {
font-family: $font-family-monospace; font-family: $font-family-monospace;
} }
@@ -170,10 +166,10 @@ p.lead {
.password-block { .password-block {
font-size: $font-size-large; font-size: $font-size-large;
word-break: break-all;
font-family: $font-family-monospace; font-family: $font-family-monospace;
min-height: 60px; min-height: 50px;
display: flex; display: flex;
flex-wrap: wrap;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
@@ -183,6 +179,23 @@ p.lead {
} }
} }
.password-wrapper {
display: flex !important;
flex-wrap: wrap;
}
.password-number {
@include themify($themes) {
color: themed('passwordNumberColor');
}
}
.password-special {
@include themify($themes) {
color: themed('passwordSpecialColor');
}
}
#duo-frame { #duo-frame {
background: url('../images/loading.svg') 0 0 no-repeat; background: url('../images/loading.svg') 0 0 no-repeat;
height: 330px; height: 330px;
@@ -264,3 +277,7 @@ app-root > #loading {
content: url('../images/logo-' + themed('logoSuffix') + '@2x.png'); content: url('../images/logo-' + themed('logoSuffix') + '@2x.png');
} }
} }
[hidden] {
display: none !important;
}

View File

@@ -41,8 +41,6 @@ $button-color-danger: darken($brand-danger, 10%);
$themes: ( $themes: (
light: ( light: (
textColor: $text-color, textColor: $text-color,
passwordNumberColor: #007fde,
passwordSpecialColor: #c40800,
borderColor: $border-color-dark, borderColor: $border-color-dark,
backgroundColor: $background-color, backgroundColor: $background-color,
backgroundColorAlt: $background-color-alt, backgroundColorAlt: $background-color-alt,
@@ -86,11 +84,11 @@ $themes: (
infoColor: $brand-info, infoColor: $brand-info,
warningColor: $brand-warning, warningColor: $brand-warning,
logoSuffix: 'dark', logoSuffix: 'dark',
passwordNumberColor: #007fde,
passwordSpecialColor: #c40800,
), ),
dark: ( dark: (
textColor: #ffffff, textColor: #ffffff,
passwordNumberColor: #9fd9ff,
passwordSpecialColor: #ff7c70,
borderColor: #2f2f2f, borderColor: #2f2f2f,
backgroundColor: #363636, backgroundColor: #363636,
backgroundColorAlt: #3d3d3d, backgroundColorAlt: #3d3d3d,
@@ -134,11 +132,11 @@ $themes: (
infoColor: $brand-info, infoColor: $brand-info,
warningColor: $brand-warning, warningColor: $brand-warning,
logoSuffix: 'white', logoSuffix: 'white',
passwordNumberColor: #52bdfb,
passwordSpecialColor: #ff7c70,
), ),
nord: ( nord: (
textColor: $nord5, textColor: $nord5,
passwordNumberColor: $nord8,
passwordSpecialColor: $nord12,
borderColor: $nord0, borderColor: $nord0,
backgroundColor: $nord2, backgroundColor: $nord2,
backgroundColorAlt: $nord1, backgroundColorAlt: $nord1,
@@ -182,6 +180,8 @@ $themes: (
infoColor: $nord9, infoColor: $nord9,
warningColor: $nord12, warningColor: $nord12,
logoSuffix: 'white', logoSuffix: 'white',
passwordNumberColor: $nord8,
passwordSpecialColor: $nord12,
), ),
); );