Skip to content

Commit

Permalink
fix(search-bar): adjust the density
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Caron <[email protected]>
  • Loading branch information
aziz-access and alecarn authored Jan 18, 2024
1 parent e89216d commit 5ae96f9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/pages/portal/portal.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
left: $navbarSpacer;
top: $navbarSpacer;
display: flex;
align-items: center;
width: $search-bar-width;
max-width: $search-bar-width;
z-index: 4;
Expand Down
24 changes: 24 additions & 0 deletions src/style/igo2-lib.override.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@use 'sass:map';
@use '@angular/material' as mat;
@use '@igo2/geo' as igo2-geo;

@mixin theme($theme) {
@include color($theme);
@include density($theme);
}

@mixin color($theme) {
}

@mixin density($theme) {
$density: mat.get-density-config($theme);

$theme: map.merge(
$theme,
(
density: $density - 2
)
);

@include igo2-geo.search-bar-density($theme);
}
2 changes: 2 additions & 0 deletions src/style/theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@use '@angular/material' as mat;
@use '../app/app.theme' as app;
@use './igo2-lib.override' as igo2-lib;

/*
* Define a default theme for styling some part of the app
Expand All @@ -21,3 +22,4 @@ $theme: mat.define-light-theme(
);

@include app.themes($theme);
@include igo2-lib.theme($theme);

0 comments on commit 5ae96f9

Please sign in to comment.