-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(drawer): extract drawer variables into separate files
* rename selected-hover-color variable to selected-hover-text
- Loading branch information
Showing
12 changed files
with
147 additions
and
151 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 |
---|---|---|
|
@@ -8,5 +8,6 @@ | |
|
||
|
||
// 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,35 @@ | ||
// Drawer | ||
$drawer-bg: $body-bg !default; | ||
$drawer-text: $body-text !default; | ||
$drawer-border: $component-border !default; | ||
$drawer-border-width: 1px !default; | ||
$drawer-font-family: $font-family !default; | ||
$drawer-font-size: $font-size !default; | ||
$drawer-line-height: $line-height !default; | ||
$drawer-content-padding-x: $padding-x !default; | ||
$drawer-content-padding-y: $padding-y !default; | ||
|
||
$drawer-scrollbar-width: 7px !default; | ||
$drawer-scrollbar-color: rgba(156, 156, 156, .7) !default; | ||
$drawer-scrollbar-bg: #dedede !default; | ||
$drawer-scrollbar-radius: 20px !default; | ||
$drawer-scrollbar-hovered-color: rgba(156, 156, 156, 1) !default; | ||
|
||
$drawer-item-padding-x: $padding-x !default; | ||
$drawer-item-padding-y: $padding-y !default; | ||
$drawer-item-font-size: 16px !default; | ||
$drawer-item-line-height: $line-height-lg !default; | ||
$drawer-icon-size: $icon-size !default; | ||
|
||
$drawer-mini-initial-width: calc(2 * #{$drawer-item-padding-x} + #{$drawer-icon-size}) !default; | ||
|
||
$drawer-hovered-bg: $hovered-bg !default; | ||
$drawer-hovered-text: $hovered-text !default; | ||
|
||
$drawer-focused-bg: $hovered-bg !default; | ||
$drawer-focused-shadow: inset 0 0 0 2px rgba( 0, 0, 0, .15) !default; | ||
|
||
$drawer-selected-bg: $selected-bg !default; | ||
$drawer-selected-text: $selected-text !default; | ||
$drawer-selected-hover-bg: try-darken( $selected-bg, 7.5% ) !default; | ||
$drawer-selected-hover-text: $selected-text !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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// Component | ||
@import "_variables.scss"; | ||
@import "~@progress/kendo-theme-default/scss/drawer/_layout.scss"; | ||
@import "~@progress/kendo-theme-default/scss/drawer/_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,35 @@ | ||
// Drawer | ||
$drawer-bg: $base-bg !default; | ||
$drawer-text: $base-text !default; | ||
$drawer-border: $base-border !default; | ||
$drawer-border-width: 1px !default; | ||
$drawer-font-family: $font-family !default; | ||
$drawer-font-size: $font-size !default; | ||
$drawer-line-height: $line-height !default; | ||
$drawer-content-padding-x: $padding-x !default; | ||
$drawer-content-padding-y: $padding-y !default; | ||
|
||
$drawer-scrollbar-width: 7px !default; | ||
$drawer-scrollbar-color: rgba(156, 156, 156, .7) !default; | ||
$drawer-scrollbar-bg: #dedede !default; | ||
$drawer-scrollbar-radius: 20px !default; | ||
$drawer-scrollbar-hovered-color: rgba(156, 156, 156, 1) !default; | ||
|
||
$drawer-item-padding-x: $padding-x !default; | ||
$drawer-item-padding-y: $padding-x !default; | ||
$drawer-item-font-size: 16px !default; | ||
$drawer-item-line-height: $line-height-lg !default; | ||
$drawer-icon-size: $icon-size !default; | ||
|
||
$drawer-mini-initial-width: calc(4 * #{$drawer-item-padding-x} + #{$drawer-icon-size}) !default; | ||
|
||
$drawer-hovered-bg: $hovered-bg !default; | ||
$drawer-hovered-text: $hovered-text !default; | ||
|
||
$drawer-focused-bg: $drawer-bg !default; | ||
$drawer-focused-shadow: $list-item-focused-shadow !default; | ||
|
||
$drawer-selected-bg: $selected-bg !default; | ||
$drawer-selected-text: $selected-text !default; | ||
$drawer-selected-hover-bg: $selected-hover-bg !default; | ||
$drawer-selected-hover-text: $selected-hover-text !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 |
---|---|---|
|
@@ -8,5 +8,6 @@ | |
|
||
|
||
// 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,35 @@ | ||
// Drawer | ||
$drawer-bg: $base-bg !default; | ||
$drawer-text: $base-text !default; | ||
$drawer-border: $base-border !default; | ||
$drawer-border-width: 1px !default; | ||
$drawer-font-family: $font-family !default; | ||
$drawer-font-size: $font-size !default; | ||
$drawer-line-height: $line-height !default; | ||
$drawer-content-padding-x: $padding-x !default; | ||
$drawer-content-padding-y: $padding-y !default; | ||
|
||
$drawer-scrollbar-width: 7px !default; | ||
$drawer-scrollbar-color: rgba(156, 156, 156, .7) !default; | ||
$drawer-scrollbar-bg: #dedede !default; | ||
$drawer-scrollbar-radius: 20px !default; | ||
$drawer-scrollbar-hovered-color: rgba(156, 156, 156, 1) !default; | ||
|
||
$drawer-item-padding-x: $padding-x !default; | ||
$drawer-item-padding-y: $padding-x !default; | ||
$drawer-item-font-size: 16px !default; | ||
$drawer-item-line-height: $line-height-lg !default; | ||
$drawer-icon-size: $icon-size !default; | ||
|
||
$drawer-mini-initial-width: calc(4 * #{$drawer-item-padding-x} + #{$drawer-icon-size}) !default; | ||
|
||
$drawer-hovered-bg: $hovered-bg !default; | ||
$drawer-hovered-text: $hovered-text !default; | ||
|
||
$drawer-focused-bg: $drawer-bg !default; | ||
$drawer-focused-shadow: $list-item-focused-shadow !default; | ||
|
||
$drawer-selected-bg: $selected-bg !default; | ||
$drawer-selected-text: $selected-text !default; | ||
$drawer-selected-hover-bg: $selected-hover-bg !default; | ||
$drawer-selected-hover-text: $selected-hover-text !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 |
---|---|---|
|
@@ -8,5 +8,6 @@ | |
|
||
|
||
// 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,35 @@ | ||
// Drawer | ||
$drawer-bg: $base-bg !default; | ||
$drawer-text: $base-text !default; | ||
$drawer-border: $base-border !default; | ||
$drawer-border-width: 1px !default; | ||
$drawer-font-family: $font-family !default; | ||
$drawer-font-size: $font-size !default; | ||
$drawer-line-height: $line-height !default; | ||
$drawer-content-padding-x: $padding-x !default; | ||
$drawer-content-padding-y: $padding-y !default; | ||
|
||
$drawer-scrollbar-width: 7px !default; | ||
$drawer-scrollbar-color: rgba(156, 156, 156, .7) !default; | ||
$drawer-scrollbar-bg: #dedede !default; | ||
$drawer-scrollbar-radius: 20px !default; | ||
$drawer-scrollbar-hovered-color: rgba(156, 156, 156, 1) !default; | ||
|
||
$drawer-item-padding-x: $padding-x !default; | ||
$drawer-item-padding-y: 12px !default; | ||
$drawer-item-font-size: 16px !default; | ||
$drawer-item-line-height: $line-height-lg !default; | ||
$drawer-icon-size: $icon-size !default; | ||
|
||
$drawer-mini-initial-width: calc(2 * #{$drawer-item-padding-x} + #{$drawer-icon-size}) !default; | ||
|
||
$drawer-hovered-bg: $hovered-bg !default; | ||
$drawer-hovered-text: $hovered-text !default; | ||
|
||
$drawer-focused-bg: $hovered-bg !default; | ||
$drawer-focused-shadow: none !default; | ||
|
||
$drawer-selected-bg: $base-bg !default; | ||
$drawer-selected-text: $secondary !default; | ||
$drawer-selected-hover-bg: $hovered-bg !default; | ||
$drawer-selected-hover-text: $secondary !default; |