UNPKG

iep-ui

Version:

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

232 lines (195 loc) 5.17 kB
@import '../../style/themes/index'; @import '../../style/mixins/index'; .comp-full-calendar { // font-family: "elvetica neue", tahoma, "hiragino sans gb"; padding: 20px; margin: 0 auto; ul, p { margin: 0; padding: 0; } .full-calendar-body { margin-top: 20px; .weeks { display: flex; border-radius: 4px 4px 0 0; background: #f8f8f8; height: 50px; line-height: 50px; border-bottom: 1px solid #e0e0e0; .week { flex: 1; text-align: center; } } .dates { position: relative; .week-row { // width: 100%; // position:absolute; border-left: 1px solid #e0e0e0; display: flex; .day-cell { flex: 1; min-height: 120px; padding: 4px; border-right: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; .day-number { text-align: right; } &.today { background-color: #fcf8e3; } &.not-cur-month { .day-number { color: rgba(0, 0, 0, 0.24); } } } } .dates-events { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; .events-week { display: flex; .events-day { cursor: pointer; flex: 1; min-height: 120px; overflow: hidden; text-overflow: ellipsis; .day-number { text-align: right; padding: 4px 5px 4px 4px; opacity: 0; } &.not-cur-month { .day-number { color: rgba(0, 0, 0, 0.24); } } .event-box { .event-item { cursor: pointer; font-size: 14px; text-indent: 8px; background-color: #c7e6fd; margin-bottom: 2px; color: rgba(0, 0, 0, 0.87); padding: 0 0 0 4px; height: 20px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; &.is-start { margin-left: 4px; border-top-left-radius: 10px; border-bottom-left-radius: 10px; } &.is-end { margin-right: 4px; border-top-right-radius: 10px; border-bottom-right-radius: 10px; } &.is-opacity { opacity: 0; } p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } } .more-link { cursor: pointer; // text-align: right; padding-left: 8px; padding-right: 2px; color: rgba(0, 0, 0, 0.38); font-size: 14px; } } } } } .more-events { position: absolute; width: 150px; z-index: 2; border: 1px solid #eee; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); .more-header { background-color: #eee; padding: 5px; display: flex; align-items: center; font-size: 14px; .title { flex: 1; } .close { margin-right: 2px; cursor: pointer; font-size: 16px; } } .more-body { height: 146px; overflow: hidden; .body-list { height: 144px; padding: 5px; overflow: auto; background-color: #fff; .body-item { cursor: pointer; font-size: 12px; background-color: #c7e6fd; margin-bottom: 2px; color: rgba(0, 0, 0, 0.87); padding: 0 0 0 4px; height: 18px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } } } } } } .full-calendar-header { display: flex; align-items: center; line-height: 30px; .header-left, .header-right { flex: 1; } .header-center { flex: 3; text-align: center; } .header-right { text-align: right; .title { padding: 0 10px; display: inline-block; border: 1px solid #e5e5e5; border-radius: 4px; margin: 0 8px; } .prev-month, .next-month { cursor: pointer; } } } }