-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(atlas-core): adding 3 state checkbox
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
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
35 changes: 35 additions & 0 deletions
35
packages/atlas/src/themesource/atlas_core/web/core/helpers/_three-state-checkbox.scss
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,35 @@ | ||
// | ||
// DISCLAIMER: | ||
// Do not change this file because it is core styling. | ||
// Customizing core files will make updating Atlas much more difficult in the future. | ||
// To customize any core styling, copy the part you want to customize to styles/web/sass/app/ so the core styling is overwritten. | ||
// | ||
|
||
@mixin three-state-checkbox() { | ||
/* ========================================================================== | ||
Three state check box | ||
Default Mendix three state check box widget | ||
========================================================================== */ | ||
|
||
input[type="checkbox"].three-state-checkbox { | ||
&:indeterminate:after { | ||
// Checkmark | ||
width: 8px; | ||
height: 4px; | ||
margin: 5px 4px; | ||
transform: rotate(0deg); | ||
pointer-events: none; | ||
border: 0 solid #ffffff; | ||
border-bottom-width: 2px; | ||
transition: border 0s; | ||
} | ||
&:indeterminate:before { | ||
border-color: $form-input-border-focus-color; | ||
background-color: $form-input-border-focus-color; | ||
} | ||
&:indeterminate:after { | ||
content: ""; | ||
} | ||
} | ||
} |
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