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
Showing
5 changed files
with
118 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
@use "_variables.scss" as *; | ||
|
||
@mixin kendo-scroller--layout() { | ||
|
||
// Layout | ||
.km-scrollview, | ||
.km-scroll-container { | ||
user-select: none; | ||
border-collapse: separate; | ||
} | ||
.km-scroll-wrapper { | ||
position: relative; | ||
} | ||
.km-scroll-header { | ||
position: absolute; | ||
z-index: 1001; | ||
width: 100%; | ||
top: 0; | ||
left: 0; | ||
} | ||
|
||
|
||
// Pull to refresh | ||
.km-scroller-pull { | ||
width: 100%; | ||
display: block; | ||
position: absolute; | ||
line-height: 3em; | ||
font-size: 1.4em; | ||
text-align: center; | ||
transform: translate3d(0, -3em, 0); | ||
} | ||
.km-scroller-pull .km-template { | ||
display: inline-block; | ||
min-width: 200px; | ||
text-align: left; | ||
} | ||
.km-load-more .km-icon, | ||
.km-widget .km-scroller-pull .km-icon { | ||
display: inline-block; | ||
height: 2rem; | ||
margin-right: 1rem; | ||
vertical-align: middle; | ||
width: 2rem; | ||
font-size: 2rem; | ||
transform: rotate(0deg); | ||
transition: transform 300ms linear; | ||
} | ||
.km-widget .km-scroller-release .km-icon { | ||
transform: rotate(180deg); | ||
} | ||
.km-widget .km-scroller-refresh .km-icon { | ||
transition: none; | ||
} | ||
|
||
|
||
// Scrollbar | ||
.km-touch-scrollbar { | ||
position: absolute; | ||
visibility: hidden; | ||
z-index: 200000; | ||
height: .4em; | ||
width: .4em; | ||
opacity: 0; | ||
transform-origin: 0 0; | ||
transition: opacity .3s linear; | ||
|
||
.k-map &, | ||
.k-diagram & { | ||
display: none; | ||
} | ||
} | ||
.km-vertical-scrollbar { | ||
height: 100%; | ||
right: 2px; | ||
top: 0; | ||
} | ||
.km-horizontal-scrollbar { | ||
width: 100%; | ||
left: 0; | ||
bottom: 2px; | ||
} | ||
|
||
} |
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,8 @@ | ||
@use "_variables.scss" as *; | ||
|
||
@mixin kendo-scroller--theme() { | ||
|
||
.km-touch-scrollbar { | ||
background-color: #333333; | ||
} | ||
} |
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 @@ | ||
@use "../core/color-system" as *; |
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,23 @@ | ||
// Module meta | ||
$_kendo-module-meta: ( | ||
name: "scroller", | ||
dependencies: () | ||
); | ||
|
||
|
||
// Component | ||
@forward "_variables.scss"; | ||
@use "_layout.scss" as *; | ||
@use "_theme.scss" as *; | ||
|
||
// Register | ||
@use "../core/module-system/" as module; | ||
@include module.register( $_kendo-module-meta... ); | ||
|
||
// Expose | ||
@mixin styles() { | ||
@include module.render( "scroller" ) { | ||
@include kendo-scroller--layout(); | ||
@include kendo-scroller--theme(); | ||
} | ||
} |