Skip to content

Commit

Permalink
fix(filter): adjust styles for angular rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
JoomFX authored and joneff committed Dec 16, 2021
1 parent fe81320 commit 971f6cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 9 additions & 2 deletions packages/default/scss/filter/_layout.scss
Expand Up @@ -58,7 +58,9 @@
}
}

.k-filter-lines .k-filter-item:last-child > .k-filter-toolbar::after {
// The second selector targets the Angular rendering
.k-filter-lines .k-filter-item:last-child > .k-filter-toolbar::after,
.k-filter-lines .k-filter-item:last-child > * > .k-filter-toolbar::after {
content: "";
position: absolute;
width: $filter-line-size;
Expand All @@ -67,9 +69,12 @@
left: -$filter-padding-x;
}

// The forth and fifth selectors targets the Angular rendering
.k-filter-group-main::before,
.k-filter-group-main > .k-filter-toolbar::before,
.k-filter-group-main > .k-filter-toolbar::after,
.k-filter-group-main > * > .k-filter-toolbar::before,
.k-filter-group-main > * > .k-filter-toolbar::after,
.k-filter-lines .k-filter-item:last-child::before {
display: none;
}
Expand Down Expand Up @@ -99,7 +104,9 @@
}
}

.k-filter-lines .k-filter-item:last-child > .k-filter-toolbar::after {
// The second selector targets the Angular rendering
.k-filter-lines .k-filter-item:last-child > .k-filter-toolbar::after,
.k-filter-lines .k-filter-item:last-child > * > .k-filter-toolbar::after {
left: auto;
right: -$filter-padding-x;
}
Expand Down
4 changes: 3 additions & 1 deletion packages/default/scss/filter/_theme.scss
Expand Up @@ -11,9 +11,11 @@
color: $filter-preview-operator-text;
}

// The last selector targets the Angular rendering
.k-filter-item::before,
.k-filter-toolbar::before,
.k-filter-lines .k-filter-item:last-child > .k-filter-toolbar::after {
.k-filter-lines .k-filter-item:last-child > .k-filter-toolbar::after,
.k-filter-lines .k-filter-item:last-child > * > .k-filter-toolbar::after {
background-color: $component-border;
}
}
Expand Down

0 comments on commit 971f6cb

Please sign in to comment.