ant-design-vue/components/date-picker/style/Calendar.less

337 lines
6.7 KiB
Plaintext
Raw Normal View History

2018-03-15 13:40:34 +00:00
.calendarPanelHeader(@calendar-prefix-cls) {
height: 40px;
line-height: 40px;
text-align: center;
border-bottom: @border-width-base @border-style-base @border-color-split;
2019-03-30 08:06:06 +00:00
user-select: none;
2018-03-15 13:40:34 +00:00
a:hover {
color: @link-hover-color;
}
.@{calendar-prefix-cls}-century-select,
.@{calendar-prefix-cls}-decade-select,
.@{calendar-prefix-cls}-year-select,
.@{calendar-prefix-cls}-month-select {
display: inline-block;
2019-03-30 08:06:06 +00:00
padding: 0 2px;
2018-03-15 13:40:34 +00:00
color: @heading-color;
2019-03-30 08:06:06 +00:00
font-weight: 500;
2018-03-15 13:40:34 +00:00
line-height: 40px;
}
.@{calendar-prefix-cls}-century-select-arrow,
.@{calendar-prefix-cls}-decade-select-arrow,
.@{calendar-prefix-cls}-year-select-arrow,
.@{calendar-prefix-cls}-month-select-arrow {
display: none;
}
.@{calendar-prefix-cls}-prev-century-btn,
.@{calendar-prefix-cls}-next-century-btn,
.@{calendar-prefix-cls}-prev-decade-btn,
.@{calendar-prefix-cls}-next-decade-btn,
.@{calendar-prefix-cls}-prev-month-btn,
.@{calendar-prefix-cls}-next-month-btn,
.@{calendar-prefix-cls}-prev-year-btn,
.@{calendar-prefix-cls}-next-year-btn {
position: absolute;
top: 0;
2019-03-30 08:06:06 +00:00
display: inline-block;
2018-03-15 13:40:34 +00:00
padding: 0 5px;
2019-03-30 08:06:06 +00:00
color: @text-color-secondary;
2018-03-15 13:40:34 +00:00
font-size: 16px;
2019-03-30 08:06:06 +00:00
font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif;
2018-03-15 13:40:34 +00:00
line-height: 40px;
}
.@{calendar-prefix-cls}-prev-century-btn,
.@{calendar-prefix-cls}-prev-decade-btn,
.@{calendar-prefix-cls}-prev-year-btn {
left: 7px;
2019-03-30 08:06:06 +00:00
&::after {
2018-03-15 13:40:34 +00:00
content: '«';
}
}
.@{calendar-prefix-cls}-next-century-btn,
.@{calendar-prefix-cls}-next-decade-btn,
.@{calendar-prefix-cls}-next-year-btn {
right: 7px;
2019-03-30 08:06:06 +00:00
&::after {
2018-03-15 13:40:34 +00:00
content: '»';
}
}
.@{calendar-prefix-cls}-prev-month-btn {
left: 29px;
2019-03-30 08:06:06 +00:00
&::after {
2018-03-15 13:40:34 +00:00
content: '';
}
}
.@{calendar-prefix-cls}-next-month-btn {
right: 29px;
2019-03-30 08:06:06 +00:00
&::after {
2018-03-15 13:40:34 +00:00
content: '';
}
}
}
.@{calendar-prefix-cls} {
position: relative;
width: 280px;
font-size: @font-size-base;
2019-03-30 08:06:06 +00:00
line-height: @line-height-base;
2018-03-15 13:40:34 +00:00
text-align: left;
2019-03-30 08:06:06 +00:00
list-style: none;
2018-03-15 13:40:34 +00:00
background-color: @component-background;
2019-03-30 08:06:06 +00:00
background-clip: padding-box;
border: @border-width-base @border-style-base @border-color-inverse;
2018-03-15 13:40:34 +00:00
border-radius: @border-radius-base;
2019-03-30 08:06:06 +00:00
outline: none;
2018-03-15 13:40:34 +00:00
box-shadow: @box-shadow-base;
&-input-wrap {
height: 34px;
padding: 6px @control-padding-horizontal - 2px;
border-bottom: @border-width-base @border-style-base @border-color-split;
}
&-input {
width: 100%;
height: 22px;
color: @input-color;
background: @input-bg;
2019-03-30 08:06:06 +00:00
border: 0;
outline: 0;
cursor: auto;
2018-03-15 13:40:34 +00:00
.placeholder;
}
&-week-number {
width: 286px;
&-cell {
text-align: center;
}
}
&-header {
.calendarPanelHeader(@calendar-prefix-cls);
}
&-body {
padding: 8px 12px;
}
table {
2019-03-30 08:06:06 +00:00
width: 100%;
2018-03-15 13:40:34 +00:00
max-width: 100%;
background-color: transparent;
2019-03-30 08:06:06 +00:00
border-collapse: collapse;
2018-03-15 13:40:34 +00:00
}
table,
th,
td {
text-align: center;
2019-03-30 08:06:06 +00:00
border: 0;
2018-03-15 13:40:34 +00:00
}
&-calendar-table {
margin-bottom: 0;
2019-03-30 08:06:06 +00:00
border-spacing: 0;
2018-03-15 13:40:34 +00:00
}
&-column-header {
width: 33px;
padding: 6px 0;
2019-03-30 08:06:06 +00:00
line-height: 18px;
2018-03-15 13:40:34 +00:00
text-align: center;
.@{calendar-prefix-cls}-column-header-inner {
display: block;
font-weight: normal;
}
}
&-week-number-header {
.@{calendar-prefix-cls}-column-header-inner {
display: none;
}
}
&-cell {
height: 30px;
2019-03-30 08:06:06 +00:00
padding: 3px 0;
2018-03-15 13:40:34 +00:00
}
&-date {
display: block;
width: 24px;
height: 24px;
2019-03-30 08:06:06 +00:00
margin: 0 auto;
2018-03-15 13:40:34 +00:00
padding: 0;
2019-03-30 08:06:06 +00:00
color: @text-color;
line-height: 22px;
2018-03-15 13:40:34 +00:00
text-align: center;
2019-03-30 08:06:06 +00:00
background: transparent;
border: @border-width-base @border-style-base transparent;
border-radius: @border-radius-sm;
2018-03-15 13:40:34 +00:00
transition: background 0.3s ease;
&-panel {
position: relative;
2019-03-30 08:06:06 +00:00
outline: none;
2018-03-15 13:40:34 +00:00
}
&:hover {
background: @item-hover-bg;
cursor: pointer;
}
&:active {
2019-03-30 08:06:06 +00:00
color: @text-color-inverse;
2018-03-15 13:40:34 +00:00
background: @primary-5;
}
}
&-today &-date {
color: @primary-color;
2019-03-30 08:06:06 +00:00
font-weight: bold;
border-color: @primary-color;
2018-03-15 13:40:34 +00:00
}
&-last-month-cell &-date,
&-next-month-btn-day &-date {
color: @disabled-color;
}
&-selected-day &-date {
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
background: tint(@primary-color, 80%);
}
2018-03-15 13:40:34 +00:00
2019-01-02 13:01:56 +00:00
&-selected-date,
&-selected-start-date,
&-selected-end-date {
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
.@{calendar-prefix-cls}-date {
2019-03-30 08:06:06 +00:00
color: @text-color-inverse;
2018-03-15 13:40:34 +00:00
background: @primary-color;
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
border: @border-width-base @border-style-base transparent;
&:hover {
background: @primary-color;
}
2018-03-15 13:40:34 +00:00
}
}
&-disabled-cell &-date {
width: auto;
2019-03-30 08:06:06 +00:00
color: @disabled-color;
background: @disabled-bg;
2018-03-15 13:40:34 +00:00
border: @border-width-base @border-style-base transparent;
2019-03-30 08:06:06 +00:00
border-radius: 0;
cursor: not-allowed;
2018-03-15 13:40:34 +00:00
&:hover {
background: @disabled-bg;
}
}
&-disabled-cell&-today &-date {
position: relative;
2019-01-02 13:01:56 +00:00
padding-right: 5px;
2018-03-15 13:40:34 +00:00
padding-left: 5px;
2019-03-30 08:06:06 +00:00
&::before {
2018-03-15 13:40:34 +00:00
position: absolute;
top: -1px;
left: 5px;
width: 24px;
height: 24px;
2019-03-30 08:06:06 +00:00
border: @border-width-base @border-style-base @disabled-color;
2018-03-15 13:40:34 +00:00
border-radius: @border-radius-sm;
2019-03-30 08:06:06 +00:00
content: ' ';
2018-03-15 13:40:34 +00:00
}
}
&-disabled-cell-first-of-row &-date {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
&-disabled-cell-last-of-row &-date {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
&-footer {
padding: 0 12px;
2019-03-30 08:06:06 +00:00
line-height: 38px;
border-top: @border-width-base @border-style-base @border-color-split;
2018-03-15 13:40:34 +00:00
&:empty {
border-top: 0;
}
&-btn {
display: block;
2019-03-30 08:06:06 +00:00
text-align: center;
2018-03-15 13:40:34 +00:00
}
2018-11-14 13:33:56 +00:00
&-extra {
text-align: left;
2018-03-15 13:40:34 +00:00
}
}
.@{calendar-prefix-cls}-today-btn,
.@{calendar-prefix-cls}-clear-btn {
display: inline-block;
margin: 0 0 0 8px;
2019-03-30 08:06:06 +00:00
text-align: center;
2018-03-15 13:40:34 +00:00
&-disabled {
color: @disabled-color;
cursor: not-allowed;
}
&:only-child {
margin: 0;
}
}
.@{calendar-prefix-cls}-clear-btn {
position: absolute;
2019-03-30 08:06:06 +00:00
top: 7px;
2018-03-15 13:40:34 +00:00
right: 5px;
2019-03-30 08:06:06 +00:00
display: none;
2018-03-15 13:40:34 +00:00
width: 20px;
height: 20px;
margin: 0;
2019-03-30 08:06:06 +00:00
overflow: hidden;
line-height: 20px;
text-align: center;
text-indent: -76px;
2018-03-15 13:40:34 +00:00
}
2019-03-30 08:06:06 +00:00
.@{calendar-prefix-cls}-clear-btn::after {
2018-03-15 13:40:34 +00:00
display: inline-block;
width: 20px;
2019-03-30 08:06:06 +00:00
color: @disabled-color;
font-size: @font-size-base;
line-height: 1;
2018-03-15 13:40:34 +00:00
text-indent: 43px;
transition: color 0.3s ease;
}
2019-03-30 08:06:06 +00:00
.@{calendar-prefix-cls}-clear-btn:hover::after {
2018-03-15 13:40:34 +00:00
color: @text-color-secondary;
}
.@{calendar-prefix-cls}-ok-btn {
.btn;
.btn-primary;
.button-size(@btn-height-sm; @btn-padding-sm; @font-size-base; @border-radius-base);
line-height: @btn-height-sm - 2px;
2019-03-30 08:06:06 +00:00
.button-disabled();
2018-03-15 13:40:34 +00:00
}
}