Skip to content

Commit

Permalink
refactor(samples): new styles for the query builder styling sample
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianptrv committed Feb 11, 2025
1 parent 1d4ca37 commit 7b0f1e3
Showing 1 changed file with 17 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ $black: #292826;
$muted-yellow: #ffe482;

$custom-query-builder: query-builder-theme(
$schema: $dark-material-schema,
$background: $black,
$subquery-background: #373532,
$subquery-border-color: #4e4d4a,
$header-background: $black,
$header-foreground: $yellow
$header-foreground: $yellow,
$color-expression-group-and: #4e78ea,
$color-expression-group-or: #b64fcb
);

$custom-button: button-theme(
Expand All @@ -22,70 +27,34 @@ $custom-button: button-theme(
$border-color: $yellow
);

$custom-contained-button: button-theme(
$schema: $dark-material-schema,
$background: $yellow,
$foreground: $black,
$active-background: $muted-yellow,
$active-foreground: $black,
$hover-background: $muted-yellow,
$hover-foreground: $black,
$border-color: $yellow,
$active-border-color: $muted-yellow,
$hover-border-color: $muted-yellow,
$focus-border-color: $yellow
);

$custom-button-group: button-group-theme(
$schema: $dark-material-schema,
$item-background: $black,
$item-text-color: $yellow,
$item-border-color: $yellow,
$item-selected-background: $yellow,
$item-hover-background: $yellow,
$item-selected-hover-background: $yellow
);

$custom-input-group: input-group-theme(
$schema: $dark-material-schema,
$idle-text-color: $yellow,
$focused-text-color: $yellow,
$filled-text-color: $yellow,
$idle-bottom-line-color: $muted-yellow,
$focused-secondary-color: $yellow
);

$custom-chip: chip-theme(
$schema: $dark-material-schema,
$background: $yellow,
$text-color: $black
$text-color: $black,
$ghost-background: $yellow
);

$custom-drop-down: drop-down-theme(
$custom-icon-button: icon-button-theme(
$schema: $dark-material-schema,
$background-color: $black,
$item-text-color: $yellow,
$hover-item-background: $yellow,
$hover-item-text-color: $black,
$focused-item-background: $yellow,
$focused-item-text-color: $black,
$selected-item-background: $yellow,
$selected-item-text-color: $black,
$selected-focus-item-background: $yellow,
$selected-focus-item-text-color: $black,
$selected-hover-item-background: $yellow,
$selected-hover-item-text-color: $black
$background: $yellow,
$foreground: $black
);

@include css-vars($custom-query-builder);

:host {
::ng-deep {
@include css-vars($custom-drop-down);
@include css-vars($custom-button);
@include css-vars($custom-button-group);
@include css-vars($custom-input-group);
@include css-vars($custom-chip);
@include css-vars($custom-icon-button);

.igx-filter-tree__buttons {
@include css-vars($custom-button);
}
}
}

0 comments on commit 7b0f1e3

Please sign in to comment.