UNPKG

@fe6/water-pro

Version:

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

144 lines (120 loc) 2.36 kB
.@{prefixClass}-month-panel { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 10; background: #fff; outline: none; > div { display: flex; flex-direction: column; height: 100%; } } .@{prefixClass}-month-panel-hidden { display: none; } .@{prefixClass}-month-panel-header { position: relative; 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: 4px 5px; font-weight: bold; text-align: center; &:hover { color: #23c0fa; cursor: pointer; } } } .@{prefixClass}-month-panel-prev-year-btn, .@{prefixClass}-month-panel-next-year-btn { position: absolute; top: 0; } .@{prefixClass}-month-panel-next-year-btn { &::after { content: '»'; } } .@{prefixClass}-month-panel-prev-year-btn { left: 0; user-select: none; &::after { content: '«'; } } .@{prefixClass}-month-panel .@{prefixClass}-month-panel-year-select { width: 180px; } .@{prefixClass}-month-panel-year-select-arrow { display: none; } .@{prefixClass}-month-panel-next-year-btn { right: 0; user-select: none; } .@{prefixClass}-month-panel-body { flex: 1; padding: 9px 10px 10px; } .@{prefixClass}-month-panel-footer { line-height: 38px; border-top: 1px solid #ccc; } .@{prefixClass}-month-panel-table { width: 100%; height: 100%; table-layout: fixed; border-collapse: separate; } .@{prefixClass}-month-panel-cell { text-align: center; .@{prefixClass}-month-panel-month { display: block; width: 46px; height: 36px; margin: 0 auto; padding: 0; color: #666; line-height: 36px; text-align: center; background: transparent; border-radius: 4px 4px; &:hover { background: #ebfaff; cursor: pointer; } } &-disabled { .@{prefixClass}-month-panel-month { color: #bfbfbf; &:hover { background: white; cursor: not-allowed; } } } } .@{prefixClass}-month-panel-selected-cell .@{prefixClass}-month-panel-month { color: #fff; background: #3fc7fa; &:hover { color: #fff; background: #3fc7fa; } } .@{prefixClass}-month-header-wrap { position: relative; height: 308px; }