Add week numbers

This commit is contained in:
Sergio Crisostomo 2018-01-17 16:40:38 +01:00
parent ac231c9ab4
commit e55ba7a249
7 changed files with 65 additions and 71 deletions

View file

@ -2,6 +2,7 @@
@picker-prefix-cls: ~"@{css-prefix}picker";
@date-picker-cells-width: 196px;
@date-picker-cells-width-with-weeknumbers: 226px;
.@{date-picker-prefix-cls} {
//position: relative;
@ -64,15 +65,17 @@
}
}
}
span&-disabled,span&-disabled:hover{
span&-week-label,span&-week-label:hover,span&-disabled,span&-disabled:hover{
cursor: @cursor-disabled;
background: @btn-disable-bg;
color: @btn-disable-color;
em{
color: inherit;
background: inherit;
}
}
span&-disabled,span&-disabled:hover{
background: @btn-disable-bg;
}
&-today{
em {
position: relative;
@ -132,6 +135,10 @@
}
}
&-cells-show-week-numbers {
width: @date-picker-cells-width-with-weeknumbers;
}
&-cells-year,&-cells-month{
margin-top: 14px;
span{
@ -190,7 +197,12 @@
float: left;
}
}
.@{picker-prefix-cls}-cells-show-week-numbers {
min-width: (@date-picker-cells-width-with-weeknumbers + 20) * 2;
}
}
&-transfer{
z-index: @zindex-transfer;
max-height: none;