UNPKG

react-event-calendar

Version:
80 lines (69 loc) 1.56 kB
@borderRadius: .3rem; @margin: .5rem ; @padding: .25rem .5rem; @eventColor: #3b91ad; .flexContainer { max-width: 100%; width: 100%; border-top: 1px solid @eventColor; border-left: 1px solid @eventColor; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; } .flexColumn { display: -ms-flexbox; display: -webkit-flex; display: flex; width: 14.2857142857%; border-bottom: 1px solid @eventColor; border-right: 1px solid @eventColor; -webkit-flex: 0 1 auto; -ms-flex: 0 1 auto; flex: 0 1 auto; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; } .day.inactive { background-color: #f8f8f8; color: #ccc; } .day.today { background-color: #fcf8e3; } .day .inner-grid { width: 100%; position:relative; } .day .event-slot { margin: @margin 0; padding: @padding; } .day .event-slot.event { background: #3b91ad; color: #3b91ad; } .day .event-slot.event-has-label { color: #fff; } .day .event.event-first-day { margin-left: @margin; border-top-left-radius: @borderRadius; border-bottom-left-radius: @borderRadius; } .day .event.event-last-day { margin-right: @margin; border-top-right-radius: @borderRadius; border-bottom-right-radius: @borderRadius; } .day .date { padding: @padding; text-align: right; }