-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(action-sheet): add styles for action sheet
- Loading branch information
Showing
20 changed files
with
550 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@import "../_variables.scss"; | ||
@import "../mixins/_index.scss"; | ||
|
||
|
||
// Dependencies | ||
@import "../common/_index.scss"; | ||
@import "../styling/_index.scss"; | ||
@import "../icons/_index.scss"; | ||
@import "../listgroup/_index.scss"; | ||
@import "../popup/_index.scss"; | ||
|
||
|
||
// Component | ||
@import "_variables.scss"; | ||
@import "_layout.scss"; | ||
@import "_theme.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 @@ | ||
@import "~@progress/kendo-theme-default/scss/action-sheet/_layout.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 @@ | ||
@import "~@progress/kendo-theme-default/scss/action-sheet/_theme.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,66 @@ | ||
// Action sheet | ||
$actionsheet-padding-x: null !default; | ||
$actionsheet-padding-y: null !default; | ||
$actionsheet-width: 360px !default; | ||
$actionsheet-max-width: 100% !default; | ||
$actionsheet-max-height: 50vh !default; | ||
|
||
$actionsheet-border-width: 0px !default; | ||
$actionsheet-border-radius: 0px !default; | ||
|
||
$actionsheet-font-size: $font-size !default; | ||
$actionsheet-font-family: $font-family !default; | ||
$actionsheet-line-height: $line-height !default; | ||
|
||
$actionsheet-bg: $component-bg !default; | ||
$actionsheet-text: $component-text !default; | ||
$actionsheet-border: $component-border !default; | ||
$actionsheet-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2), 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12) !default; | ||
|
||
|
||
// Actionsheet header | ||
$actionsheet-header-padding-x: map-get( $spacing, 4 ) !default; | ||
$actionsheet-header-padding-y: map-get( $spacing, 2 ) !default; | ||
$actionsheet-header-border-width: null !default; | ||
$actionsheet-header-font-size: null !default; | ||
$actionsheet-header-font-family: null !default; | ||
$actionsheet-header-line-height: null !default; | ||
|
||
$actionsheet-header-bg: null !default; | ||
$actionsheet-header-text: null !default; | ||
$actionsheet-header-border: null !default; | ||
$actionsheet-header-gradient: null !default; | ||
$actionsheet-header-shadow: null !default; | ||
|
||
|
||
// Actionsheet item | ||
$actionsheet-item-min-height: 40px !default; | ||
$actionsheet-item-padding-x: map-get( $spacing, 4 ) !default; | ||
$actionsheet-item-padding-y: map-get( $spacing, 2 ) !default; | ||
$actionsheet-item-border-width: 1px !default; | ||
$actionsheet-item-spacing: 12px !default; | ||
|
||
$actionsheet-item-icon-size: null !default; | ||
|
||
$actionsheet-item-title-font-weight: null !default; | ||
$actionsheet-item-title-text-transform: null !default; | ||
$actionsheet-item-description-font-size: .875em !default; | ||
$actionsheet-item-description-opacity: .75 !default; | ||
|
||
$actionsheet-item-hover-bg: $gray-100 !default; | ||
$actionsheet-item-hover-text: null !default; | ||
$actionsheet-item-hover-border: null !default; | ||
$actionsheet-item-hover-gradient: null !default; | ||
$actionsheet-item-hover-shadow: null !default; | ||
|
||
$actionsheet-item-focus-bg: null !default; | ||
$actionsheet-item-focus-text: null !default; | ||
$actionsheet-item-focus-border: null !default; | ||
$actionsheet-item-focus-gradient: null !default; | ||
$actionsheet-item-focus-shadow: inset 0 0 0 2px rgba(0, 0, 0, .13) !default; | ||
|
||
$actionsheet-item-disabled-bg: null !default; | ||
$actionsheet-item-disabled-text: null !default; | ||
$actionsheet-item-disabled-border: null !default; | ||
$actionsheet-item-disabled-gradient: null !default; | ||
$actionsheet-item-disabled-shadow: null !default; |
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,16 @@ | ||
@import "../_variables.scss"; | ||
@import "../mixins/_index.scss"; | ||
|
||
|
||
// Dependencies | ||
@import "../common/_index.scss"; | ||
@import "../styling/_index.scss"; | ||
@import "../icons/_index.scss"; | ||
@import "../listgroup/_index.scss"; | ||
@import "../popup/_index.scss"; | ||
|
||
|
||
// Component | ||
@import "_variables.scss"; | ||
@import "_layout.scss"; | ||
@import "_theme.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 @@ | ||
@import "~@progress/kendo-theme-default/scss/action-sheet/_layout.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 @@ | ||
@import "~@progress/kendo-theme-default/scss/action-sheet/_theme.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,66 @@ | ||
// Action sheet | ||
$actionsheet-padding-x: null !default; | ||
$actionsheet-padding-y: null !default; | ||
$actionsheet-width: 360px !default; | ||
$actionsheet-max-width: 100% !default; | ||
$actionsheet-max-height: 50vh !default; | ||
|
||
$actionsheet-border-width: 0px !default; | ||
$actionsheet-border-radius: 0px !default; | ||
|
||
$actionsheet-font-size: $font-size !default; | ||
$actionsheet-font-family: $font-family !default; | ||
$actionsheet-line-height: $line-height !default; | ||
|
||
$actionsheet-bg: $component-bg !default; | ||
$actionsheet-text: $component-text !default; | ||
$actionsheet-border: $component-border !default; | ||
$actionsheet-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2), 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12) !default; | ||
|
||
|
||
// Actionsheet header | ||
$actionsheet-header-padding-x: map-get( $spacing, 4 ) !default; | ||
$actionsheet-header-padding-y: map-get( $spacing, 2 ) !default; | ||
$actionsheet-header-border-width: null !default; | ||
$actionsheet-header-font-size: null !default; | ||
$actionsheet-header-font-family: null !default; | ||
$actionsheet-header-line-height: null !default; | ||
|
||
$actionsheet-header-bg: null !default; | ||
$actionsheet-header-text: null !default; | ||
$actionsheet-header-border: null !default; | ||
$actionsheet-header-gradient: null !default; | ||
$actionsheet-header-shadow: null !default; | ||
|
||
|
||
// Actionsheet item | ||
$actionsheet-item-min-height: 40px !default; | ||
$actionsheet-item-padding-x: map-get( $spacing, 4 ) !default; | ||
$actionsheet-item-padding-y: map-get( $spacing, 2 ) !default; | ||
$actionsheet-item-border-width: 1px !default; | ||
$actionsheet-item-spacing: 12px !default; | ||
|
||
$actionsheet-item-icon-size: null !default; | ||
|
||
$actionsheet-item-title-font-weight: null !default; | ||
$actionsheet-item-title-text-transform: null !default; | ||
$actionsheet-item-description-font-size: .875em !default; | ||
$actionsheet-item-description-opacity: .75 !default; | ||
|
||
$actionsheet-item-hover-bg: $hovered-bg !default; | ||
$actionsheet-item-hover-text: null !default; | ||
$actionsheet-item-hover-border: null !default; | ||
$actionsheet-item-hover-gradient: null !default; | ||
$actionsheet-item-hover-shadow: null !default; | ||
|
||
$actionsheet-item-focus-bg: null !default; | ||
$actionsheet-item-focus-text: null !default; | ||
$actionsheet-item-focus-border: null !default; | ||
$actionsheet-item-focus-gradient: null !default; | ||
$actionsheet-item-focus-shadow: $focused-shadow !default; | ||
|
||
$actionsheet-item-disabled-bg: null !default; | ||
$actionsheet-item-disabled-text: null !default; | ||
$actionsheet-item-disabled-border: null !default; | ||
$actionsheet-item-disabled-gradient: null !default; | ||
$actionsheet-item-disabled-shadow: null !default; |
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,16 @@ | ||
@import "../_variables.scss"; | ||
@import "../mixins/_index.scss"; | ||
|
||
|
||
// Dependencies | ||
@import "../common/_index.scss"; | ||
@import "../styling/_index.scss"; | ||
@import "../icons/_index.scss"; | ||
@import "../listgroup/_index.scss"; | ||
@import "../popup/_index.scss"; | ||
|
||
|
||
// Component | ||
@import "_variables.scss"; | ||
@import "_layout.scss"; | ||
@import "_theme.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,130 @@ | ||
@include exports("action-sheet/layout") { | ||
|
||
.k-actionsheet-container { | ||
width: 100vw; | ||
height: 100vh; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
overflow: hidden; | ||
} | ||
|
||
// Actionsheet | ||
.k-actionsheet { | ||
padding: $actionsheet-padding-y $actionsheet-padding-y; | ||
width: $actionsheet-width; | ||
max-width: $actionsheet-max-width; | ||
max-height: $actionsheet-max-height; | ||
border-width: 0; | ||
border-style: solid; | ||
border-color: transparent; | ||
box-sizing: border-box; | ||
font-size: $actionsheet-font-size; | ||
font-family: $actionsheet-font-family; | ||
line-height: $actionsheet-line-height; | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
position: fixed; | ||
z-index: 10002; | ||
} | ||
|
||
|
||
// Actionsheet header | ||
.k-actionsheet-header { | ||
padding: $actionsheet-header-padding-y $actionsheet-header-padding-x; | ||
border-width: 0; | ||
border-bottom-width: if( $actionsheet-header-border-width, $actionsheet-header-border-width, null ); | ||
border-style: solid; | ||
border-color: transparent; | ||
box-sizing: border-box; | ||
font-size: $actionsheet-header-font-size; | ||
font-family: $actionsheet-header-font-family; | ||
line-height: $actionsheet-header-line-height; | ||
} | ||
|
||
|
||
// Actionsheet items | ||
.k-actionsheet-items { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
|
||
|
||
// Actionsheet item | ||
.k-actionsheet-item { | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
.k-actionsheet-action { | ||
margin: 0; | ||
padding: $actionsheet-item-padding-y $actionsheet-item-padding-x; | ||
min-height: $actionsheet-item-min-height; | ||
box-sizing: border-box; | ||
color: inherit; | ||
text-decoration: none; | ||
outline: 0; | ||
display: flex; | ||
flex-flow: row nowrap; | ||
align-items: center; | ||
gap: $actionsheet-item-spacing; | ||
} | ||
.k-actionsheet-item-icon { | ||
font-size: $actionsheet-item-icon-size; | ||
} | ||
.k-actionsheet-item-text { | ||
display: flex; | ||
flex-flow: column nowrap; | ||
} | ||
.k-actionsheet-item-title { | ||
font-weight: $actionsheet-item-title-font-weight; | ||
text-transform: $actionsheet-item-title-text-transform; | ||
} | ||
.k-actionsheet-item-description { | ||
font-size: $actionsheet-item-description-font-size; | ||
opacity: $actionsheet-item-description-opacity; | ||
} | ||
|
||
|
||
// Actionsheet separator | ||
.k-actionsheet > .k-hr { | ||
margin: 0; | ||
border-color: inherit; | ||
} | ||
|
||
|
||
// Action sheet position | ||
.k-actionsheet-top { | ||
@include border-bottom-radius( $actionsheet-border-radius ); | ||
border-width: if( $actionsheet-border-width, $actionsheet-border-width, null ); | ||
border-top-width: if( $actionsheet-border-width, 0, null ); | ||
top: 0; | ||
left: 50%; | ||
transform: translateX( -50% ); | ||
} | ||
.k-actionsheet-bottom { | ||
@include border-top-radius( $actionsheet-border-radius ); | ||
border-width: if( $actionsheet-border-width, $actionsheet-border-width, null ); | ||
border-bottom-width: if( $actionsheet-border-width, 0, null ); | ||
bottom: 0; | ||
left: 50%; | ||
transform: translateX( -50% ); | ||
} | ||
.k-actionsheet-left { | ||
@include border-right-radius( $actionsheet-border-radius ); | ||
border-width: if( $actionsheet-border-width, $actionsheet-border-width, null ); | ||
border-left-width: if( $actionsheet-border-width, 0, null ); | ||
left: 0; | ||
top: 50%; | ||
transform: translatey( -50% ); | ||
} | ||
.k-actionsheet-right { | ||
@include border-left-radius( $actionsheet-border-radius ); | ||
border-width: if( $actionsheet-border-width, $actionsheet-border-width, null ); | ||
border-right-width: if( $actionsheet-border-width, 0, null ); | ||
right: 0; | ||
top: 50%; | ||
transform: translatey( -50% ); | ||
} | ||
|
||
} |
Oops, something went wrong.