This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: UiFilter reset button only shows when there is something to reset
- Loading branch information
1 parent
563de37
commit cb406f9
Showing
5 changed files
with
74 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
@use "../functions/logic"; | ||
|
||
$-input-border-radius: 4px; | ||
$-input-background-color: #fff; | ||
$-input-danger-color: #d9534f; | ||
|
||
/** | ||
* Configuration for the UiFilter module. | ||
*/ | ||
@mixin configure( | ||
$input-border-radius: null, | ||
$input-background-color: null, | ||
$input-danger-color: null, | ||
) { | ||
$-input-border-radius: logic.truthy($input-border-radius, $-input-border-radius) !global; | ||
$-input-background-color: logic.truthy($input-background-color, $-input-background-color) !global; | ||
$-input-danger-color: logic.truthy($input-danger-color, $-input-danger-color) !global; | ||
} | ||
|
||
/** | ||
* UiFilter Styling. | ||
*/ | ||
@mixin style() { | ||
.ui-filter { | ||
&.ui-filter-input { | ||
position: relative; | ||
|
||
input { | ||
border-top-right-radius: $-input-border-radius !important; | ||
border-bottom-right-radius: $-input-border-radius !important; | ||
} | ||
|
||
input + button { | ||
position: absolute; | ||
top: 1px; | ||
right: 1px; | ||
bottom: 1px; | ||
z-index: 2; | ||
border: none; | ||
background: $-input-background-color; | ||
|
||
&:hover, &:focus, &:active { | ||
background: $-input-background-color; | ||
} | ||
|
||
&.btn-danger { | ||
color: $-input-danger-color; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters