design-system #7
@@ -1,10 +1,10 @@
|
|||||||
<h1>{{title}}</h1>
|
<h1>{{title}}</h1>
|
||||||
<h2>{{description}}</h2>
|
<h2>{{description}}</h2>
|
||||||
<footer>
|
<footer>
|
||||||
<button type="button" class="cod-btn secondary" (click)="closeDialog()" matRipple i18n>
|
<button type="button" class="cod-button secondary" (click)="closeDialog()" matRipple i18n>
|
||||||
No
|
No
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="cod-btn" (click)="closeAndValidate()" matRipple i18n>
|
<button type="button" class="cod-button" (click)="closeAndValidate()" matRipple i18n>
|
||||||
Yes
|
Yes
|
||||||
</button>
|
</button>
|
||||||
</footer>
|
</footer>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="left">
|
<div class="left">
|
||||||
<button type="button"
|
<button type="button"
|
||||||
(click)="sideMenu.open()"
|
(click)="sideMenu.open()"
|
||||||
class="cod-btn icon"
|
class="cod-button icon"
|
||||||
matTooltip="Click to show side menu"
|
matTooltip="Click to show side menu"
|
||||||
matRipple
|
matRipple
|
||||||
i18n-matTooltip>
|
i18n-matTooltip>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<div class="right">
|
<div class="right">
|
||||||
@if (isAuthenticated) {
|
@if (isAuthenticated) {
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="cod-btn icon"
|
class="cod-button icon"
|
||||||
[matMenuTriggerFor]="authenticatedUserMenu"
|
[matMenuTriggerFor]="authenticatedUserMenu"
|
||||||
matRipple>
|
matRipple>
|
||||||
<mat-icon>more_vert</mat-icon>
|
<mat-icon>more_vert</mat-icon>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
} @else {
|
} @else {
|
||||||
<a [routerLink]="['/login']" class="cod-btn" matRipple i18n>Login</a>
|
<a [routerLink]="['/login']" class="cod-button" matRipple i18n>Login</a>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<app-side-menu #sideMenu></app-side-menu>
|
<app-side-menu #sideMenu></app-side-menu>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<button type="button"
|
<button type="button"
|
||||||
(click)="closeDialog()"
|
(click)="closeDialog()"
|
||||||
class="cod-btn icon secondary close"
|
class="cod-button icon secondary close"
|
||||||
matTooltip="Close"
|
matTooltip="Close"
|
||||||
matRipple
|
matRipple
|
||||||
i18n-matTooltip>
|
i18n-matTooltip>
|
||||||
@@ -27,10 +27,10 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions reversed">
|
<div class="actions reversed">
|
||||||
<button type="submit" class="cod-btn" matRipple i18n>
|
<button type="submit" class="cod-button" matRipple i18n>
|
||||||
Validate
|
Validate
|
||||||
</button>
|
</button>
|
||||||
<button type="button" (click)="closeDialog()" class="cod-btn secondary" matRipple i18n>
|
<button type="button" (click)="closeDialog()" class="cod-button secondary" matRipple i18n>
|
||||||
Cancel
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<button type="button"
|
<button type="button"
|
||||||
(click)="closeDialog()"
|
(click)="closeDialog()"
|
||||||
class="cod-btn icon secondary close"
|
class="cod-button icon secondary close"
|
||||||
matTooltip="Close"
|
matTooltip="Close"
|
||||||
matRipple
|
matRipple
|
||||||
i18n-matTooltip>
|
i18n-matTooltip>
|
||||||
@@ -26,14 +26,14 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
(click)="closeDialog()"
|
(click)="closeDialog()"
|
||||||
class="cod-btn secondary"
|
class="cod-button secondary"
|
||||||
matRipple
|
matRipple
|
||||||
i18n>
|
i18n>
|
||||||
Cancel
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
(click)="fileUpload.click()"
|
(click)="fileUpload.click()"
|
||||||
class="cod-btn"
|
class="cod-button"
|
||||||
matRipple
|
matRipple
|
||||||
i18n>
|
i18n>
|
||||||
<mat-icon>upload_file</mat-icon>
|
<mat-icon>upload_file</mat-icon>
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<app-submit-button [requestPending]="!!(isSaving$ | async)" i18n>Save</app-submit-button>
|
<app-submit-button [requestPending]="!!(isSaving$ | async)" i18n>Save</app-submit-button>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="cod-btn secondary"
|
class="cod-button secondary"
|
||||||
(click)="goPreviousLocation()"
|
(click)="goPreviousLocation()"
|
||||||
matRipple
|
matRipple
|
||||||
i18n>
|
i18n>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
(click)="close()"
|
(click)="close()"
|
||||||
class="cod-btn icon"
|
class="cod-button icon"
|
||||||
matTooltip="Close the menu"
|
matTooltip="Close the menu"
|
||||||
matRipple
|
matRipple
|
||||||
i18n-matTooltip>
|
i18n-matTooltip>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<button type="submit"
|
<button type="submit"
|
||||||
class="cod-btn {{color}}"
|
class="cod-button {{color}}"
|
||||||
[disabled]="disabled || requestPending"
|
[disabled]="disabled || requestPending"
|
||||||
(click)="click.emit()"
|
(click)="click.emit()"
|
||||||
matRipple>
|
matRipple>
|
||||||
|
|||||||
@@ -18,6 +18,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="actions reversed">
|
<div class="actions reversed">
|
||||||
<app-submit-button [requestPending]="false" [disabled]="false" i18n>Send</app-submit-button>
|
<app-submit-button [requestPending]="false" [disabled]="false" i18n>Send</app-submit-button>
|
||||||
<a [routerLink]="['/signin']" class="cod-btn secondary" matRipple i18n>Create an account</a>
|
<a [routerLink]="['/signin']" class="cod-button secondary" matRipple i18n>Create an account</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -34,6 +34,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="actions reversed">
|
<div class="actions reversed">
|
||||||
<app-submit-button [requestPending]="false" [disabled]="false" i18n>Send</app-submit-button>
|
<app-submit-button [requestPending]="false" [disabled]="false" i18n>Send</app-submit-button>
|
||||||
<a [routerLink]="['/login']" class="cod-btn secondary" matRipple i18n>I already have an account</a>
|
<a [routerLink]="['/login']" class="cod-button secondary" matRipple i18n>I already have an account</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
button.cod-btn, a.cod-btn {
|
button.cod-button, a.cod-button {
|
||||||
padding: .8em 1.2em;
|
padding: .8em 1.2em;
|
||||||
border-radius: 10em;
|
border-radius: 10em;
|
||||||
border: none;
|
border: none;
|
||||||
@@ -38,6 +38,6 @@ button.cod-btn, a.cod-btn {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a.cod-btn {
|
a.cod-button {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user