Skip to content

Commit

Permalink
style refact
Browse files Browse the repository at this point in the history
  • Loading branch information
alecarn committed Aug 2, 2023
1 parent ba1f53f commit 440a4cb
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 34 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@use '@igo2/core/all-style';
@use '@igo2/core/layout';
@use '@igo2/core/layout' as igo-layout;
@use 'style/layout';

@use 'theme/theme.scss';
@use 'variables';
Expand Down
25 changes: 25 additions & 0 deletions src/theme/igo-override.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,31 @@
@use 'variables';
@use './palette';

@mixin themes($theme) {
@include search-bar-density($theme);
}

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

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

$theme2: map.merge(
$theme,
(
density: $density - 2
)
);
igo-search-bar {
@include mat.form-field-density($theme4);
@include mat.icon-button-density($theme2);
}
}

$color-500: map.get(palette.$palette, 500);
$color-500-contrast: map.get(palette.$palette, contrast, 500);
Expand Down
30 changes: 0 additions & 30 deletions src/theme/igo-theme-override.scss

This file was deleted.

4 changes: 1 addition & 3 deletions src/theme/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
@use '@igo2/core' as igo;
@use './palette';
@use './typography';
@use './layout';
@use './igo-override';
@use './igo-theme-override';
@use './material-override/index';
@use '../app/app.theming' as app;

Expand Down Expand Up @@ -43,7 +41,7 @@ $theme: map.merge(
@include mat.all-component-themes($theme);

@include igo.all-component-themes($theme);
@include igo-theme-override.themes($theme);
@include igo-override.themes($theme);

@include app.themes($theme);

Expand Down

0 comments on commit 440a4cb

Please sign in to comment.