1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00
This commit is contained in:
Kyle Spearrin
2018-04-09 22:53:46 -04:00
parent b1ac825eba
commit 8f556cc56f
7 changed files with 33 additions and 16 deletions

View File

@@ -42,7 +42,7 @@ import { routerTransition } from './app-routing.animations';
}) })
export class AppComponent implements OnInit { export class AppComponent implements OnInit {
toasterConfig: ToasterConfig = new ToasterConfig({ toasterConfig: ToasterConfig = new ToasterConfig({
showCloseButton: true, showCloseButton: false,
mouseoverTimerStop: true, mouseoverTimerStop: true,
animation: 'slideUp', animation: 'slideUp',
limit: 2, limit: 2,

View File

@@ -1,3 +1,3 @@
<button (click)="expand()" title="{{'popOutNewWindow' | i18n}}"> <button (click)="expand()" title="{{'popOutNewWindow' | i18n}}">
<i class="fa fa-external-link fa-rotate-270 fa-lg"></i> <i class="fa fa-external-link fa-rotate-270 fa-lg fa-fw"></i>
</button> </button>

View File

@@ -1,7 +1,7 @@
<header> <header>
<div class="left"> <div class="left">
<button appBlurClick type="button" (click)="close()"> <button appBlurClick type="button" (click)="close()">
<i class="fa fa-chevron-left"></i> <span class="header-icon"><i class="fa fa-chevron-left"></i></span>
<span>{{'back' | i18n}}</span> <span>{{'back' | i18n}}</span>
</button> </button>
</div> </div>
@@ -19,11 +19,13 @@
<div class="box-content"> <div class="box-content">
<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">
<div class="row-main-content">
<span class="text monospaced no-ellipsis"> <span class="text monospaced no-ellipsis">
{{h.password}} {{h.password}}
</span> </span>
<span class="detail">{{h.date | date:'medium'}}</span> <span class="detail">{{h.date | date:'medium'}}</span>
</div> </div>
</div>
<div class="action-buttons"> <div class="action-buttons">
<a class="row-btn" href="#" appStopClick title="{{'copyPassword' | i18n}}" <a class="row-btn" href="#" appStopClick title="{{'copyPassword' | i18n}}"
(click)="copy(h.password)"> (click)="copy(h.password)">

View File

@@ -1,7 +1,7 @@
<header> <header>
<div class="left"> <div class="left">
<button type="button" appBlurClick (click)="back()"> <button type="button" appBlurClick (click)="back()">
<i class="fa fa-chevron-left"></i> <span class="header-icon"><i class="fa fa-chevron-left"></i></span>
<span>{{'back' | i18n}}</span> <span>{{'back' | i18n}}</span>
</button> </button>
</div> </div>
@@ -10,9 +10,9 @@
[(ngModel)]="searchText" appAutofocus> [(ngModel)]="searchText" appAutofocus>
<i class="fa fa-search"></i> <i class="fa fa-search"></i>
</div> </div>
<div class="right"> <div class="right" *ngIf="showAdd">
<button type="button" appBlurClick (click)="addCipher()" title="{{'addItem' | i18n}}" *ngIf="showAdd"> <button type="button" appBlurClick (click)="addCipher()" title="{{'addItem' | i18n}}">
<i class="fa fa-plus fa-lg"></i> <i class="fa fa-plus fa-lg fa-fw"></i>
</button> </button>
</div> </div>
</header> </header>

View File

@@ -2,7 +2,7 @@
<div class="left"> <div class="left">
<app-pop-out *ngIf="showPopout"></app-pop-out> <app-pop-out *ngIf="showPopout"></app-pop-out>
<button type="button" appBlurClick (click)="refresh()" title="{{'refresh' | i18n}}" *ngIf="inSidebar"> <button type="button" appBlurClick (click)="refresh()" title="{{'refresh' | i18n}}" *ngIf="inSidebar">
<i class="fa fa-refresh fa-lg"></i> <i class="fa fa-refresh fa-lg fa-fw"></i>
</button> </button>
</div> </div>
<div class="search"> <div class="search">
@@ -12,7 +12,7 @@
</div> </div>
<div class="right"> <div class="right">
<button type="button" appBlurClick (click)="addCipher()" title="{{'addItem' | i18n}}"> <button type="button" appBlurClick (click)="addCipher()" title="{{'addItem' | i18n}}">
<i class="fa fa-plus fa-lg"></i> <i class="fa fa-plus fa-lg fa-fw"></i>
</button> </button>
</div> </div>
</header> </header>

View File

@@ -9,7 +9,7 @@
</div> </div>
<div class="right"> <div class="right">
<button appBlurClick (click)="addCipher()" title="{{'addItem' | i18n}}"> <button appBlurClick (click)="addCipher()" title="{{'addItem' | i18n}}">
<i class="fa fa-plus fa-lg"></i> <i class="fa fa-plus fa-lg fa-fw"></i>
</button> </button>
</div> </div>
</header> </header>

View File

@@ -106,6 +106,9 @@ header {
flex: 1; flex: 1;
display: flex; display: flex;
min-width: -webkit-min-content; /* Workaround to Chrome bug */ min-width: -webkit-min-content; /* Workaround to Chrome bug */
.header-icon {
margin-right: 5px;
}
} }
.right { .right {
@@ -116,6 +119,7 @@ header {
display: flex; display: flex;
align-items: center; align-items: center;
text-align: center; text-align: center;
min-width: 0;
} }
app-pop-out > button, div > button, div > a { app-pop-out > button, div > button, div > a {
@@ -149,10 +153,13 @@ header {
.title { .title {
font-weight: bold; font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.search { .search {
padding: 7px; padding: 7px 10px;
width: 100%; width: 100%;
text-align: left; text-align: left;
position: relative; position: relative;
@@ -161,7 +168,7 @@ header {
.fa { .fa {
position: absolute; position: absolute;
top: 15px; top: 15px;
left: 15px; left: 10px;
color: lighten($brand-primary, 30%); color: lighten($brand-primary, 30%);
} }
@@ -185,6 +192,14 @@ header {
} }
} }
} }
.left + .search {
padding-left: 0;
}
.search + .right {
margin-left: -10px;
}
} }
.content { .content {