UNPKG

cloud-ui.vusion

Version:
182 lines (175 loc) 3.09 kB
.root{ width: 238px; padding: 4px; /*text-align: center;*/ background: $field-background; color: #555; border: 1px solid #d2d6de; border-radius: 4px; box-sizing: content-box; user-select: none; } .item, .dayitem { width: 32px; height: 30px; line-height: 30px; margin: 1px; border-radius: 3px; cursor: pointer; display: inline-block; text-align: center; border-radius: 50%; } .dayitem[role=week]{ color: #f99; } .item:hover { background: $hover-color; color: #444; border-color: $brand-primary; } .item[sel=sel] { background: $brand-primary; color: $field-background; } .item[role=muted] { color: #999; } .item[disabled] { background: 0 0; color: #999; cursor: not-allowed; } .head { line-height: 32px; *zoom: 1; } .head:before{ display:table; content:""; line-height:0; } .head:after{ display:table; content:""; line-height:0; clear: both; } .prev { float: left; } .next { float: right; } .icon{ width: 1em; } .body { clear: both; } .week .item { background: 0 0; cursor: default; font-weight: 700; } .root[disabled] .item { background: $field-background; color: #999; cursor: not-allowed; } .root[disabled] .item[sel=sel] { background: #eee; color: #999; } .day{ white-space: normal; } .year{ width: 82px; text-align: left; padding: 7px 10px 0 10px; position: relative; display: inline-block; border: 1px solid $field-background; cursor: pointer; box-sizing: border-box; } .yearList { z-index: 10; } .textYear{ position: relative; } .textYear:after{ position: absolute; icon-font: url('../u-icon.vue/icons/keyboard-arrow-down.svg'); color: #a5a5a6; font-size: 18px; right: -20px; top: 0; line-height: 16px; } .monthList{ z-index: 10; width: 138px; padding: 10px 6px; box-sizing: border-box; list-style: none; overflow: hidden; background: white; border: 1px solid #ccc; } .listitem{ float: left; width: 30px; height: 30px; line-height: 30px; border-radius: 50%; text-align: center; cursor: pointer; } .listitem[role]{ background-color: $brand-primary; color: $field-background; border-radius: 50%; } .listitem[role]:hover{ background-color: $brand-primary; } .listitem[disabled], .listitem[disabled]:hover{ cursor: not-allowed; background-color: $field-background; color: #999; } .listitem:hover{ background: $hover-color; } .month{ width: 60px; text-align: left; padding: 7px 24px 0 10px; padding-right: 0px; display: inline-block; position: relative; border: 1px solid $field-background; cursor: pointer; box-sizing: border-box; } .textMonth{ position: relative; } .textMonth:after{ position: absolute; icon-font: url('../u-icon.vue/icons/keyboard-arrow-down.svg'); color: #a5a5a6; font-size: 18px; right: -20px; top: 0; line-height: 16px; } .monthPopper{ float: right; } .yearitem[disabled] { color: #999; }