-
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.
- Loading branch information
1 parent
cbd98bf
commit 21cd0ed
Showing
21 changed files
with
484 additions
and
377 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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/** | ||
* Admin card overrides | ||
* | ||
* Use RGBA to fit template style | ||
*/ | ||
|
||
.k-card__body { | ||
|
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,195 @@ | ||
/** | ||
* CSS only dropdown | ||
* | ||
* Best to use with the card molecule to separate label from content | ||
*/ | ||
|
||
.k-checkbox-dropdown-toggle-container { | ||
@include content-block($section-spacing); | ||
overflow: hidden; | ||
|
||
|
||
/** | ||
* Override for search styling | ||
*/ | ||
|
||
input[type="search"] { | ||
box-sizing: border-box; | ||
height: 34px; | ||
} | ||
|
||
|
||
/** | ||
* By default hide the filter toggle | ||
*/ | ||
|
||
.k-checkbox-dropdown-toggle, | ||
.k-checkbox-dropdown-label { | ||
display: none; | ||
} | ||
|
||
|
||
/** | ||
* Accessible hide the toggle box | ||
*/ | ||
|
||
.k-checkbox-dropdown-toggle { | ||
position: absolute; | ||
left: -10000px; | ||
top: auto; | ||
width: 1px; | ||
height: 1px; | ||
overflow: hidden; | ||
|
||
@include rtl { | ||
left: auto; | ||
right: -10000px; | ||
} | ||
} | ||
|
||
|
||
/** | ||
* Label | ||
*/ | ||
|
||
.k-checkbox-dropdown-label { | ||
position: relative; | ||
margin: 0; | ||
padding: 8px 25px; | ||
font-weight: inherit; | ||
|
||
&:focus, | ||
&:hover { | ||
text-decoration: underline; | ||
cursor: pointer; | ||
|
||
|
||
/* Highlight arrow and close button on hover */ | ||
|
||
&:before, | ||
&:after { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
|
||
/** | ||
* The toggle arrow | ||
*/ | ||
|
||
&:before { | ||
display: block; | ||
content: " "; | ||
border-top: 5px solid; | ||
border-left: 5px solid transparent; | ||
border-right: 5px solid transparent; | ||
position: absolute; | ||
top: 1.1em; | ||
left: 0.5em; | ||
margin: 0; | ||
transition: transform 0.3s ease-in-out; | ||
opacity: 0.6; | ||
transform: rotate(-90deg); | ||
backface-visibility: hidden; | ||
|
||
@include rtl { | ||
left: auto; | ||
right: 0.5em; | ||
transform: rotate(90deg); | ||
} | ||
} | ||
|
||
|
||
/** | ||
* The close button | ||
*/ | ||
|
||
&:after { | ||
display: block; | ||
font-family: sans-serif; | ||
content: "✖"; | ||
font-size: 16px; | ||
line-height: 16px; | ||
position: absolute; | ||
top: 0.35em; | ||
right: 0.35em; | ||
margin: 8px; | ||
transition: all 0.3s ease-in-out; | ||
transform: translate(0, -50px); | ||
opacity: 0.6; | ||
|
||
@include rtl { | ||
right: auto; | ||
left: 0.2em; | ||
} | ||
} | ||
} | ||
|
||
|
||
/** | ||
* For non ancient browsers display the inout and label again | ||
*/ | ||
|
||
&:not(ancient) { | ||
.k-checkbox-dropdown-toggle, | ||
.k-checkbox-dropdown-label { | ||
display: block; | ||
} | ||
} | ||
|
||
|
||
/** | ||
* Hide the toggleable content by setting max-height to 0 and make sure it's transitionable | ||
*/ | ||
|
||
.k-checkbox-dropdown-content:not(ancient) { | ||
overflow: hidden; | ||
max-height: 0; | ||
opacity: 0; | ||
transition: opacity 0.3s ease-out; | ||
} | ||
|
||
|
||
/** | ||
* Remove styling when unchecked | ||
*/ | ||
|
||
.k-checkbox-dropdown-toggle:not(:checked) { | ||
& ~ * .k-checkbox-dropdown-content, | ||
& ~ .k-checkbox-dropdown-content { | ||
@include reset; | ||
} | ||
} | ||
|
||
|
||
/** | ||
* Styling when checked | ||
*/ | ||
|
||
.k-checkbox-dropdown-toggle:checked { | ||
|
||
/* Set max-height to slide down smoothly with CSS */ | ||
|
||
& ~ * .k-checkbox-dropdown-content, | ||
& ~ .k-checkbox-dropdown-content { | ||
max-height: 9999px; | ||
opacity: 1; | ||
} | ||
|
||
|
||
/* Rotate the toggle arrow */ | ||
|
||
& ~ * .k-checkbox-dropdown-label:before, | ||
& ~ .k-checkbox-dropdown-label:before { | ||
transform: rotate(0deg); | ||
} | ||
|
||
|
||
/* Position the close button */ | ||
|
||
& ~ * .k-checkbox-dropdown-label:after, | ||
& ~ .k-checkbox-dropdown-label:after { | ||
transform: translate(0, 0); | ||
} | ||
} | ||
} |
Oops, something went wrong.