Browse Source

Harmonize style of various buttons

pull/8389/head
Thomas Kaul 4 weeks ago
parent
commit
0df7a3fe13
  1. 4
      apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html
  2. 8
      apps/client/src/app/components/subscription-interstitial-dialog/subscription-interstitial-dialog.html
  3. 4
      apps/client/src/app/pages/about/overview/about-overview-page.html
  4. 1
      apps/client/src/app/pages/pricing/pricing-page.html
  5. 4
      apps/client/src/app/pages/register/register-page.html
  6. 12
      apps/client/src/styles.scss

4
apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html

@ -36,7 +36,7 @@
@if (data.hasPermissionToUseAuthGoogle) { @if (data.hasPermissionToUseAuthGoogle) {
<div class="d-flex flex-column"> <div class="d-flex flex-column">
<a <a
class="px-4 py-3 rounded-pill" class="gf-button-large px-4 rounded-pill"
href="../api/v1/auth/google" href="../api/v1/auth/google"
mat-stroked-button mat-stroked-button
><img ><img
@ -52,7 +52,7 @@
@if (data.hasPermissionToUseAuthOidc) { @if (data.hasPermissionToUseAuthOidc) {
<div class="d-flex flex-column mt-2"> <div class="d-flex flex-column mt-2">
<a <a
class="px-4 py-3 rounded-pill" class="gf-button-large px-4 rounded-pill"
href="../api/auth/oidc" href="../api/auth/oidc"
mat-stroked-button mat-stroked-button
><ng-container i18n>Sign in with OpenID Connect</ng-container></a ><ng-container i18n>Sign in with OpenID Connect</ng-container></a

8
apps/client/src/app/components/subscription-interstitial-dialog/subscription-interstitial-dialog.html

@ -133,7 +133,7 @@
</div> </div>
<div class="flex-column" mat-dialog-actions> <div class="flex-column" mat-dialog-actions>
<button <button
class="mb-2 py-4 w-100" class="gf-button-large mb-2 w-100"
mat-button mat-button
[disabled]="remainingSkipButtonDelay > 0" [disabled]="remainingSkipButtonDelay > 0"
(click)="closeDialog()" (click)="closeDialog()"
@ -144,7 +144,7 @@
} }
</button> </button>
<a <a
class="m-0 py-4 w-100" class="gf-button-large m-0 w-100"
color="primary" color="primary"
mat-flat-button mat-flat-button
[routerLink]="routerLinkPricing" [routerLink]="routerLinkPricing"
@ -173,7 +173,7 @@
</div> </div>
<div class="flex-column" mat-dialog-actions> <div class="flex-column" mat-dialog-actions>
<button <button
class="mb-2 py-4 w-100" class="gf-button-large mb-2 w-100"
mat-button mat-button
[disabled]="remainingSkipButtonDelay > 0" [disabled]="remainingSkipButtonDelay > 0"
(click)="closeDialog()" (click)="closeDialog()"
@ -184,7 +184,7 @@
} }
</button> </button>
<a <a
class="m-0 py-4 w-100" class="gf-button-large m-0 w-100"
color="primary" color="primary"
mat-flat-button mat-flat-button
[routerLink]="routerLinkPricing" [routerLink]="routerLinkPricing"

4
apps/client/src/app/pages/about/overview/about-overview-page.html

@ -186,7 +186,7 @@
[class.offset-md-3]="hasPermissionForSubscription === false" [class.offset-md-3]="hasPermissionForSubscription === false"
> >
<a <a
class="py-4 w-100" class="gf-button-large w-100"
color="primary" color="primary"
i18n i18n
mat-flat-button mat-flat-button
@ -197,7 +197,7 @@
@if (hasPermissionForSubscription) { @if (hasPermissionForSubscription) {
<div class="col-md-6 my-2"> <div class="col-md-6 my-2">
<a <a
class="py-4 w-100" class="gf-button-large w-100"
color="primary" color="primary"
mat-flat-button mat-flat-button
[routerLink]="routerLinkBlog" [routerLink]="routerLinkBlog"

1
apps/client/src/app/pages/pricing/pricing-page.html

@ -339,6 +339,7 @@
<div class="row"> <div class="row">
<div class="col mb-3 mt-2 text-center"> <div class="col mb-3 mt-2 text-center">
<a <a
class="gf-button-large"
color="primary" color="primary"
i18n i18n
mat-flat-button mat-flat-button

4
apps/client/src/app/pages/register/register-page.html

@ -18,7 +18,7 @@
<div class="py-5 text-center"> <div class="py-5 text-center">
@if (hasPermissionForAuthToken) { @if (hasPermissionForAuthToken) {
<button <button
class="py-3" class="gf-button-large"
color="primary" color="primary"
mat-flat-button mat-flat-button
(click)="openShowAccessTokenDialog()" (click)="openShowAccessTokenDialog()"
@ -31,7 +31,7 @@
} }
@if (hasPermissionForAuthGoogle) { @if (hasPermissionForAuthGoogle) {
<a <a
class="px-4 py-3 rounded-pill w-100" class="gf-button-large px-4 rounded-pill w-100"
href="../api/v1/auth/google" href="../api/v1/auth/google"
mat-stroked-button mat-stroked-button
><img ><img

12
apps/client/src/styles.scss

@ -346,6 +346,18 @@ ngx-skeleton-loader {
cursor: pointer; cursor: pointer;
} }
.gf-button-large {
@include mat.button-overrides(
(
filled-container-height: 3rem,
outlined-container-height: 3rem,
protected-container-height: 3rem,
text-container-height: 3rem,
tonal-container-height: 3rem
)
);
}
.gf-mobile-dialog { .gf-mobile-dialog {
.mat-mdc-dialog-surface { .mat-mdc-dialog-surface {
padding-bottom: max(0px, env(safe-area-inset-bottom) - 1dvh); padding-bottom: max(0px, env(safe-area-inset-bottom) - 1dvh);

Loading…
Cancel
Save