-
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.
fix(colorpicker): boot and mat inherit default
- Loading branch information
Showing
6 changed files
with
24 additions
and
241 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 |
---|---|---|
@@ -1,141 +1 @@ | ||
@include exports("colorpicker/theme") { | ||
|
||
// Theme | ||
.k-colorpicker { | ||
|
||
// Normal state | ||
.k-picker-wrap { | ||
@include fill( | ||
$colorpicker-select-text, | ||
$colorpicker-select-bg, | ||
$colorpicker-select-border, | ||
$colorpicker-select-gradient | ||
); | ||
} | ||
|
||
// Hovered state | ||
.k-tool-icon:hover, | ||
.k-select:hover, | ||
.k-tool-icon.k-state-hover, | ||
.k-select.k-state-hover, | ||
.k-state-hover { | ||
@include fill( | ||
$colorpicker-select-hovered-text, | ||
$colorpicker-select-hovered-bg, | ||
$colorpicker-select-hovered-border, | ||
$colorpicker-select-hovered-gradient | ||
); | ||
} | ||
|
||
// Focused state | ||
.k-state-focused {} | ||
|
||
// Active state | ||
.k-state-active { | ||
@include fill( | ||
$colorpicker-select-focused-text, | ||
$colorpicker-select-focused-bg, | ||
$colorpicker-select-focused-border, | ||
$colorpicker-select-focused-gradient | ||
); | ||
@include box-shadow( $colorpicker-select-pressed-shadow ); | ||
} | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
|
||
@include exports( "flatcolorpicker/theme" ) { | ||
|
||
.k-flatcolorpicker { | ||
|
||
.k-hsv-gradient { | ||
background: linear-gradient( to bottom, $gradient-transparent-to-black ), linear-gradient( to right, $gradient-white-to-transparent ); | ||
} | ||
|
||
|
||
// Sliders | ||
.k-slider { | ||
|
||
// Draghandle | ||
.k-draghandle { | ||
box-shadow: 0 1px 4px rgba(0, 0, 0, .9); | ||
// sass-lint:enable no-color-literals no-color-keywords | ||
background-color: transparent; | ||
} | ||
.k-draghandle:hover, | ||
.k-draghandle:focus { | ||
// sass-lint:disable no-color-literals no-color-keywords | ||
border-color: white; | ||
box-shadow: 0 1px 4px black; | ||
// sass-lint:enable no-color-literals no-color-keywords | ||
background-color: transparent; | ||
} | ||
|
||
} | ||
|
||
|
||
// Slider type | ||
.k-hue-slider { | ||
&.k-slider-horizontal { | ||
.k-slider-track { | ||
background: linear-gradient( to right, $gradient-rainbow ); | ||
} | ||
} | ||
&.k-slider-vertical { | ||
.k-slider-track { | ||
background: linear-gradient( to top, $gradient-rainbow ); | ||
} | ||
} | ||
} | ||
.k-alpha-slider { | ||
.k-slider-track { | ||
background: url(map-get($data-uris, "alpha-slider-bgr.png")) center; | ||
} | ||
} | ||
|
||
|
||
.k-draghandle { | ||
border-color: rgba(255, 255, 255, .8); | ||
box-shadow: 0 1px 4px rgba(0, 0, 0, .21); | ||
} | ||
|
||
} | ||
|
||
|
||
.k-rtl, | ||
[dir="rtl"] { | ||
.k-flatcolorpicker { | ||
|
||
.k-hue-slider.k-slider-horizontal .k-slider-track { | ||
background: linear-gradient( to left, $gradient-rainbow ); | ||
} | ||
|
||
.k-alpha-slider .k-slider-track { | ||
background: url(map-get($data-uris, "alpha-slider-bgr-reversed.png")) center; | ||
} | ||
|
||
} | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
|
||
@include exports( "colorpalette/theme" ) { | ||
.k-colorpalette { | ||
.k-item:hover, | ||
.k-item.k-state-hover { | ||
box-shadow: $colorpalette-hovered-shadow; | ||
} | ||
.k-item.k-state-selected, | ||
.k-item.k-state-selected:hover, | ||
.k-item.k-state-focused, | ||
.k-item:focus { | ||
box-shadow: $colorpalette-focused-shadow; | ||
} | ||
} | ||
} | ||
@import "~@progress/kendo-theme-default/scss/colorpicker/_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
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