Browse Source

Feature/decrease border radius and margin of dialogs on mobile (#5341)

* Decrease border radius and margin of dialogs on mobile
pull/3661/head
Kenrick Tandrian 1 week ago
committed by GitHub
parent
commit
1c76475d95
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 38
      apps/client/src/styles/theme.scss

38
apps/client/src/styles/theme.scss

@ -206,30 +206,62 @@ $_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);
.theme-dark, .theme-dark,
.theme-light { .theme-light {
@media (max-width: 575.98px) { @media (max-width: 575.98px) {
@include mat.dialog-overrides(
(
container-shape: 4px
)
);
.page.has-tabs {
@include mat.tabs-overrides( @include mat.tabs-overrides(
( (
container-height: 3rem container-height: 3rem
) )
); );
} }
}
@media (min-width: 576px) {
.page.has-tabs {
@include mat.tabs-overrides(
(
container-height: 2rem
)
);
}
}
@include mat.dialog-overrides(
(
container-max-width: 80vw,
container-small-max-width: 96vw
)
);
@include mat.fab-overrides( @include mat.fab-overrides(
( (
container-color: var(--gf-theme-primary-500) container-color: var(--gf-theme-primary-500)
) )
); );
@include mat.tabs-overrides( @include mat.tabs-overrides(
( (
active-focus-label-text-color: var(--gf-theme-primary-500), active-focus-label-text-color: var(--gf-theme-primary-500),
active-hover-label-text-color: var(--gf-theme-primary-500), active-hover-label-text-color: var(--gf-theme-primary-500),
active-indicator-height: 0,
active-label-text-color: var(--gf-theme-primary-500), active-label-text-color: var(--gf-theme-primary-500),
active-ripple-color: var(--gf-theme-primary-500), active-ripple-color: var(--gf-theme-primary-500),
container-height: 2rem, inactive-ripple-color: var(--gf-theme-primary-500)
inactive-ripple-color: var(--gf-theme-primary-500), )
);
.page.has-tabs {
@include mat.tabs-overrides(
(
active-indicator-height: 0,
label-text-tracking: normal label-text-tracking: normal
) )
); );
}
} }
:root { :root {

Loading…
Cancel
Save