Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(date-input): add size, rounded and full customization to date input
BREAKING CHANGE: Use high-level input for date input base Date input reuses the input base component size, rounded and fill component options.
- Loading branch information
Showing
5 changed files
with
5 additions
and
187 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 |
---|---|---|
@@ -1,10 +1 @@ | ||
@import "~@progress/kendo-theme-default/scss/dateinput/_layout.scss"; | ||
|
||
@include exports( "dateinput/layout/bootstrap" ) { | ||
|
||
// Date input | ||
.k-dateinput { | ||
transition: $transition; | ||
} | ||
|
||
} |
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,87 +1,6 @@ | ||
@include exports( "dateinput/layout" ) { | ||
@include exports("dateinput/layout") { | ||
|
||
// Date input | ||
.k-dateinput { | ||
@include border-radius( $kendo-input-border-radius ); | ||
width: $kendo-input-default-width; | ||
border-width: $kendo-input-border-width; | ||
border-style: solid; | ||
box-sizing: border-box; | ||
outline: 0; | ||
font-family: $kendo-input-font-family; | ||
font-size: $kendo-input-font-size; | ||
line-height: $kendo-input-line-height; | ||
text-align: start; | ||
white-space: nowrap; | ||
display: inline-flex; | ||
flex-flow: row nowrap; | ||
vertical-align: middle; | ||
position: relative; | ||
overflow: hidden; | ||
transition: all .1s ease; // sass-lint:disable-line no-transition-all | ||
-webkit-touch-callout: none; | ||
-webkit-tap-highlight-color: $rgba-transparent; | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; | ||
} | ||
|
||
|
||
// Input | ||
.k-input {} | ||
|
||
|
||
// Select | ||
.k-select { | ||
padding: 0; | ||
width: if( $use-picker-select-width, $kendo-input-spinner-width, null ); | ||
border-width: 0; | ||
border-inline-start-width: $kendo-input-button-border-width; | ||
border-style: solid; | ||
box-sizing: border-box; | ||
outline: 0; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: stretch; | ||
justify-content: center; | ||
flex: 0 0 auto; | ||
text-align: center; | ||
cursor: pointer; | ||
} | ||
.k-link { | ||
padding: 0; | ||
min-width: $kendo-input-spinner-width; | ||
flex: 1 1 auto; | ||
display: block; | ||
overflow: hidden; | ||
position: relative; | ||
|
||
.k-icon { | ||
position: absolute; | ||
right: 50%; | ||
transform: translateX(50%); | ||
} | ||
} | ||
.k-link-increase .k-icon { | ||
bottom: -$kendo-input-spinner-icon-offset; | ||
} | ||
.k-link-decrease .k-icon { | ||
top: -$kendo-input-spinner-icon-offset; | ||
} | ||
|
||
|
||
// Nested date input | ||
.k-picker-wrap & { | ||
margin: 0 !important; // sass-lint:disable-line no-important | ||
padding: 0 !important; // sass-lint:disable-line no-important | ||
width: 100%; | ||
border-radius: 0 !important; // sass-lint:disable-line no-important | ||
border-width: 0; // sass-lint:disable-line no-important | ||
box-shadow: none !important; // sass-lint:disable-line no-important | ||
flex: 1 1 auto; | ||
} | ||
} | ||
.k-dateinput {} | ||
|
||
} |
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,86 +1,6 @@ | ||
@include exports( "dateinput/theme" ) { | ||
@include exports("dateinput/theme") { | ||
|
||
.k-dateinput { | ||
@include fill( | ||
$kendo-input-text, | ||
$kendo-input-bg, | ||
$kendo-input-border | ||
); | ||
|
||
// Hover state | ||
&:hover, | ||
&.k-state-hover { | ||
@include fill( | ||
$kendo-input-hover-text, | ||
$kendo-input-hover-bg, | ||
$kendo-input-hover-border | ||
); | ||
} | ||
|
||
// Focus state | ||
&:focus, | ||
&.k-state-focus { | ||
@include fill( | ||
$kendo-input-focus-text, | ||
$kendo-input-focus-bg, | ||
$kendo-input-focus-border | ||
); | ||
@include box-shadow( $kendo-input-focus-shadow ); | ||
} | ||
&:focus-within { | ||
@include fill( | ||
$kendo-input-focus-text, | ||
$kendo-input-focus-bg, | ||
$kendo-input-focus-border | ||
); | ||
@include box-shadow( $kendo-input-focus-shadow ); | ||
} | ||
|
||
|
||
// Invalid state | ||
&.k-invalid, | ||
&.ng-invalid, | ||
&.k-state-invalid { | ||
border-color: $invalid-border; | ||
|
||
.k-input-validation-icon { | ||
color: $invalid-text; | ||
} | ||
|
||
&:focus-within, | ||
&.k-state-focus { | ||
@include box-shadow($invalid-shadow); | ||
} | ||
} | ||
|
||
|
||
// Spinner | ||
.k-select { | ||
@include fill( | ||
$kendo-button-text, | ||
$kendo-button-bg, | ||
$kendo-button-border, | ||
$kendo-button-gradient | ||
); | ||
} | ||
.k-link:hover, | ||
.k-link.k-state-hover { | ||
@include fill( | ||
$kendo-button-hover-text, | ||
$kendo-button-hover-bg, | ||
$kendo-button-hover-border, | ||
$kendo-button-hover-gradient | ||
); | ||
} | ||
.k-link:active, | ||
.k-link.k-state-active { | ||
@include fill( | ||
$kendo-button-active-text, | ||
$kendo-button-active-bg, | ||
$kendo-button-active-border, | ||
$kendo-button-active-gradient | ||
); | ||
} | ||
} | ||
// Date input | ||
.k-dateinput {} | ||
|
||
} |
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 |
---|---|---|
|
@@ -141,7 +141,6 @@ | |
|
||
|
||
.k-multiselect, | ||
.k-dateinput, | ||
.k-datepicker, | ||
.k-datetimepicker, | ||
.k-timepicker, | ||
|
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,12 +1 @@ | ||
@import "~@progress/kendo-theme-default/scss/dateinput/_layout.scss"; | ||
|
||
@include exports( "dateinput/layout/material" ) { | ||
|
||
// Date input | ||
.k-dateinput { | ||
@include border-bottom-radius( 0 !important ); // sass-lint:disable-line no-important | ||
border-width: $kendo-input-border-width 0; | ||
border-top-color: transparent !important; // sass-lint:disable-line no-important | ||
} | ||
|
||
} |