UNPKG

@fe6/water-pro

Version:

An enterprise-class UI design language and Vue-based implementation

302 lines (256 loc) 4.87 kB
.@{prefixClass} { position: relative; width: 253px; font-size: 12px; font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; line-height: 1.5; text-align: left; list-style: none; background-color: #fff; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid #ccc; border-radius: 3px; outline: none; box-shadow: 0 1px 5px #ccc; &-date-panel, &-panel { position: relative; outline: none; } &-week-number { width: 286px; &-cell { text-align: center; } } &-header { height: 34px; padding: 0 10px; line-height: 30px; text-align: center; border-bottom: 1px solid #ccc; -webkit-user-select: none; user-select: none; > a { display: inline-block; width: 30px; padding: 0 5px; font-weight: bold; line-height: 34px; text-align: center; &:hover { color: #23c0fa; cursor: pointer; } } .@{prefixClass}-prev-month-btn { position: absolute; left: 25px; &::after { content: '‹'; } } .@{prefixClass}-next-month-btn { position: absolute; right: 25px; &::after { content: '›'; } } } &-year-select, &-month-select, &-day-select { display: inline-block; padding: 0 8px; color: #666; font-weight: bold; font-size: 12px; line-height: 34px; &:hover { color: #23c0fa; cursor: pointer; } } &-prev-month-btn, &-next-month-btn, &-prev-year-btn, &-next-year-btn { position: absolute; top: 0; display: inline-block; padding: 0 5px; color: #999; font-size: 16px; font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; line-height: 34px; cursor: pointer; &:hover { color: #23c0fa; } } &-next-year-btn { right: 0; &::after { content: '»'; } } &-prev-year-btn { left: 0; &::after { content: '«'; } } &-body { height: 217px; padding: 9px 10px 10px; } table { width: 100%; max-width: 100%; background-color: transparent; border-collapse: collapse; } table, td, th, td { border: none; } &-table { margin-bottom: 0; border-spacing: 0; } &-column-header { width: 33px; padding: 6px 0; line-height: 18px; text-align: center; .@{prefixClass}-column-header-inner { display: block; font-weight: normal; } } &-week-number-header { .@{prefixClass}-column-header-inner { display: none; } } &-cell { padding: 1px 0; } &-date { display: block; width: 26px; height: 26px; margin: 0 auto; padding: 0; color: #666; line-height: 26px; text-align: center; background: transparent; border-radius: 4px 4px; &:hover { background: #ebfaff; cursor: pointer; } } &-selected-day &-date { background: tint(#3fc7fa, 80%); } &-selected-date &-date { color: #fff; background: #3fc7fa; &:hover { background: #3fc7fa; } } &-today &-date { border: 1px solid #3fc7fa; } &-disabled-cell &-date { width: auto; color: #bcbcbc; background: #f3f3f3; border-radius: 0; cursor: not-allowed; &:hover { background: #f3f3f3; } } &-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; } &-last-month-cell &-date, &-next-month-btn-day &-date { color: #bbb; } &-footer { position: relative; padding: 10px 0; text-align: center; border-top: 1px solid #ccc; .@{timePickerClass} { width: 90px; &-input { height: 24px; } } &-show-ok { text-align: right; .@{prefixClass} { &-footer-btn { padding-right: 12px; } &-time-picker-btn { margin-left: 0; padding: 0 12px; } &-today-btn { float: left; padding-left: 12px; } } } } &-footer-btn { margin-top: 2px; &::after { clear: both; height: 0; overflow: hidden; font-size: 0; content: 'x'; } } &-time-picker-btn { margin-left: 10px; } &-today-btn, &-ok-btn, &-time-picker-btn { display: inline-block; color: #f46830; text-align: center; &:hover { color: #23c0fa; cursor: pointer; } &-disabled { color: #bbb; &:hover { color: #bbb; } } } &-today-btn { padding-left: 10px; } }