mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
d78c0f2707
* adjust table fixed column z-index (#14036) fix #13930 * 📝 Add instruction for one column without width left in fixed table * Add full PR template link in template (#14061) * add full tmpl link * adjust * simplify it * add cn link * Fix Affix flickering when scrolling * update * fix: top border disappeared under some ie9 * fix calendar month range display (#14049) * Fix tslint warning * Correct typescript usage (#14074) * 🐛 Fix steps style under IE9 close #14001 * 🐛 tweak style for not affecting vertical steps * 📝 enhance upload documentation * Input.Group with TimePicker disappear icon: https://codepen.io/mraiguo/pen/QzvvvE?editors=0010 * 🐛 Fix disabled button style in DatePicker panel https://user-images.githubusercontent.com/507615/50693143-17505400-1071-11e9-9114-b150bef8f7f6.png * 📝 site: fix BackTop been covered by footer close #14093 * Update PULL_REQUEST_TEMPLATE.md * Update pr_cn.md * 🐛 Fix nested Timeline last item missing line (#14110) close #14108 * init Spin should also support delay trigger (#14105) fix #14100 * Update table docs * bugfix * Format * update snapshot * test: fix spin test
337 lines
6.7 KiB
Plaintext
337 lines
6.7 KiB
Plaintext
.calendarPanelHeader(@calendar-prefix-cls) {
|
||
height: 40px;
|
||
line-height: 40px;
|
||
text-align: center;
|
||
user-select: none;
|
||
border-bottom: @border-width-base @border-style-base @border-color-split;
|
||
|
||
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 {
|
||
padding: 0 2px;
|
||
font-weight: 500;
|
||
display: inline-block;
|
||
color: @heading-color;
|
||
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;
|
||
color: @text-color-secondary;
|
||
font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif;
|
||
padding: 0 5px;
|
||
font-size: 16px;
|
||
display: inline-block;
|
||
line-height: 40px;
|
||
}
|
||
|
||
.@{calendar-prefix-cls}-prev-century-btn,
|
||
.@{calendar-prefix-cls}-prev-decade-btn,
|
||
.@{calendar-prefix-cls}-prev-year-btn {
|
||
left: 7px;
|
||
|
||
&:after {
|
||
content: '«';
|
||
}
|
||
}
|
||
|
||
.@{calendar-prefix-cls}-next-century-btn,
|
||
.@{calendar-prefix-cls}-next-decade-btn,
|
||
.@{calendar-prefix-cls}-next-year-btn {
|
||
right: 7px;
|
||
|
||
&:after {
|
||
content: '»';
|
||
}
|
||
}
|
||
|
||
.@{calendar-prefix-cls}-prev-month-btn {
|
||
left: 29px;
|
||
|
||
&:after {
|
||
content: '‹';
|
||
}
|
||
}
|
||
|
||
.@{calendar-prefix-cls}-next-month-btn {
|
||
right: 29px;
|
||
|
||
&:after {
|
||
content: '›';
|
||
}
|
||
}
|
||
}
|
||
|
||
.@{calendar-prefix-cls} {
|
||
position: relative;
|
||
outline: none;
|
||
width: 280px;
|
||
border: @border-width-base @border-style-base @border-color-inverse;
|
||
list-style: none;
|
||
font-size: @font-size-base;
|
||
text-align: left;
|
||
background-color: @component-background;
|
||
border-radius: @border-radius-base;
|
||
box-shadow: @box-shadow-base;
|
||
background-clip: padding-box;
|
||
line-height: @line-height-base;
|
||
|
||
&-input-wrap {
|
||
height: 34px;
|
||
padding: 6px @control-padding-horizontal - 2px;
|
||
border-bottom: @border-width-base @border-style-base @border-color-split;
|
||
}
|
||
|
||
&-input {
|
||
border: 0;
|
||
width: 100%;
|
||
cursor: auto;
|
||
outline: 0;
|
||
height: 22px;
|
||
color: @input-color;
|
||
background: @input-bg;
|
||
.placeholder;
|
||
}
|
||
|
||
&-week-number {
|
||
width: 286px;
|
||
|
||
&-cell {
|
||
text-align: center;
|
||
}
|
||
}
|
||
|
||
&-header {
|
||
.calendarPanelHeader(@calendar-prefix-cls);
|
||
}
|
||
|
||
&-body {
|
||
padding: 8px 12px;
|
||
}
|
||
|
||
table {
|
||
border-collapse: collapse;
|
||
max-width: 100%;
|
||
background-color: transparent;
|
||
width: 100%;
|
||
}
|
||
|
||
table,
|
||
th,
|
||
td {
|
||
border: 0;
|
||
text-align: center;
|
||
}
|
||
|
||
&-calendar-table {
|
||
border-spacing: 0;
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
&-column-header {
|
||
line-height: 18px;
|
||
width: 33px;
|
||
padding: 6px 0;
|
||
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 {
|
||
padding: 3px 0;
|
||
height: 30px;
|
||
}
|
||
|
||
&-date {
|
||
display: block;
|
||
margin: 0 auto;
|
||
color: @text-color;
|
||
border-radius: @border-radius-sm;
|
||
width: 24px;
|
||
height: 24px;
|
||
line-height: 22px;
|
||
border: @border-width-base @border-style-base transparent;
|
||
padding: 0;
|
||
background: transparent;
|
||
text-align: center;
|
||
transition: background 0.3s ease;
|
||
|
||
&-panel {
|
||
position: relative;
|
||
outline: none;
|
||
}
|
||
|
||
&:hover {
|
||
background: @item-hover-bg;
|
||
cursor: pointer;
|
||
}
|
||
|
||
&:active {
|
||
color: @text-color-inverse;
|
||
background: @primary-5;
|
||
}
|
||
}
|
||
|
||
&-today &-date {
|
||
border-color: @primary-color;
|
||
font-weight: bold;
|
||
color: @primary-color;
|
||
}
|
||
|
||
&-last-month-cell &-date,
|
||
&-next-month-btn-day &-date {
|
||
color: @disabled-color;
|
||
}
|
||
|
||
&-selected-day &-date {
|
||
background: tint(@primary-color, 80%);
|
||
}
|
||
|
||
&-selected-date,
|
||
&-selected-start-date,
|
||
&-selected-end-date {
|
||
.@{calendar-prefix-cls}-date {
|
||
background: @primary-color;
|
||
color: @text-color-inverse;
|
||
border: @border-width-base @border-style-base transparent;
|
||
|
||
&:hover {
|
||
background: @primary-color;
|
||
}
|
||
}
|
||
}
|
||
|
||
&-disabled-cell &-date {
|
||
cursor: not-allowed;
|
||
color: @disabled-color;
|
||
background: @disabled-bg;
|
||
border-radius: 0;
|
||
width: auto;
|
||
border: @border-width-base @border-style-base transparent;
|
||
|
||
&:hover {
|
||
background: @disabled-bg;
|
||
}
|
||
}
|
||
&-disabled-cell&-today &-date {
|
||
position: relative;
|
||
padding-right: 5px;
|
||
padding-left: 5px;
|
||
&:before {
|
||
content: ' ';
|
||
position: absolute;
|
||
top: -1px;
|
||
left: 5px;
|
||
width: 24px;
|
||
height: 24px;
|
||
border: @border-width-base @border-style-base @disabled-color;
|
||
border-radius: @border-radius-sm;
|
||
}
|
||
}
|
||
|
||
&-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 {
|
||
border-top: @border-width-base @border-style-base @border-color-split;
|
||
line-height: 38px;
|
||
padding: 0 12px;
|
||
&:empty {
|
||
border-top: 0;
|
||
}
|
||
&-btn {
|
||
text-align: center;
|
||
display: block;
|
||
}
|
||
&-extra {
|
||
text-align: left;
|
||
}
|
||
}
|
||
|
||
.@{calendar-prefix-cls}-today-btn,
|
||
.@{calendar-prefix-cls}-clear-btn {
|
||
display: inline-block;
|
||
text-align: center;
|
||
margin: 0 0 0 8px;
|
||
&-disabled {
|
||
color: @disabled-color;
|
||
cursor: not-allowed;
|
||
}
|
||
&:only-child {
|
||
margin: 0;
|
||
}
|
||
}
|
||
|
||
.@{calendar-prefix-cls}-clear-btn {
|
||
display: none;
|
||
position: absolute;
|
||
right: 5px;
|
||
text-indent: -76px;
|
||
overflow: hidden;
|
||
width: 20px;
|
||
height: 20px;
|
||
text-align: center;
|
||
line-height: 20px;
|
||
top: 7px;
|
||
margin: 0;
|
||
}
|
||
|
||
.@{calendar-prefix-cls}-clear-btn:after {
|
||
font-size: @font-size-base;
|
||
color: @disabled-color;
|
||
display: inline-block;
|
||
line-height: 1;
|
||
width: 20px;
|
||
text-indent: 43px;
|
||
transition: color 0.3s ease;
|
||
}
|
||
|
||
.@{calendar-prefix-cls}-clear-btn:hover:after {
|
||
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;
|
||
|
||
.button-disabled();
|
||
}
|
||
}
|