UNPKG

@syncfusion/ej2-material-theme

Version:

A modern JavaScript UI toolkit that has been built from the ground up to be lightweight, responsive, modular and touch friendly. It is written in TypeScript and has no external dependencies.

571 lines 15.5 kB
/*! calendar material theme variables */ /*! component icons */ .e-calendar .e-header .e-date-icon-prev::before { content: "\e910"; } .e-calendar .e-header .e-date-icon-next::before { content: "\e916"; } /*! calendar layout */ ejs-calendar { display: block; } .e-calendar.e-disabled .e-header .e-prev, .e-calendar.e-disabled .e-header .e-next { cursor: default; pointer-events: none; -ms-touch-action: none; touch-action: none; } .e-calendar.e-disabled .e-header .e-title { cursor: default; pointer-events: none; -ms-touch-action: none; touch-action: none; } .e-calendar.e-disabled .e-content td { pointer-events: none; -ms-touch-action: none; touch-action: none; } .e-calendar.e-disabled .e-btn.e-today { pointer-events: none; -ms-touch-action: none; touch-action: none; } .e-calendar { /* stylelint-disable property-no-vendor-prefix */ -webkit-tap-highlight-color: transparent; border-radius: 2px; display: block; overflow: auto; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .e-calendar.e-rtl .e-header .e-title { float: right; text-align: right; } .e-calendar.e-rtl .e-header .e-icon-container { float: left; } .e-calendar .e-header { background: none; display: table; font-weight: 500; position: relative; text-align: center; width: 100%; } .e-calendar .e-header button { background: transparent; border: 0; margin-right: 0; padding: 0; text-decoration: none; } .e-calendar .e-header span { cursor: pointer; display: inline-block; font-size: 15px; font-weight: 500; line-height: 16px; padding: 10px; vertical-align: middle; } .e-calendar .e-header span.e-disabled { cursor: default; } .e-calendar .e-week-header { padding: 0; } .e-calendar th { cursor: default; font-size: 13px; font-weight: normal; text-align: center; } .e-calendar .e-content .e-selected, .e-calendar .e-content .e-state-hover { border-radius: 0; } .e-calendar .e-content span.e-day { border-radius: 0; cursor: pointer; display: inline-block; font-size: 13px; overflow: hidden; padding: 0; text-align: center; text-decoration: none; vertical-align: middle; } .e-calendar .e-content th, .e-calendar .e-content td { box-sizing: border-box; } .e-calendar .e-content td.e-disabled { opacity: 0.35; pointer-events: none; -ms-touch-action: none; touch-action: none; } .e-calendar .e-content td.e-disabled.e-today { opacity: 1; } .e-calendar .e-content td.e-disabled.e-today span.e-day { box-shadow: inset 1px 0 #e3165b, inset 0 1px #e3165b, inset -1px 0 #e3165b, inset 0 -1px #e3165b; color: #ccc; } .e-calendar .e-content td { cursor: pointer; padding: 2px; text-align: center; } .e-calendar .e-content td.e-week-number { color: rgba(0, 0, 0, 0.87); font-size: 12px; font-style: italic; font-weight: 500; } .e-calendar .e-content td.e-overlay { background: none; width: initial; } .e-calendar .e-content table { border-collapse: separate; border-spacing: 0; border-width: 0; float: left; margin: 0; outline: 0; padding: 0 10px 10px; table-layout: fixed; width: 100%; } .e-calendar .e-content td.e-other-month > span.e-day, .e-calendar .e-content td.e-other-year > span.e-day { display: none; font-weight: normal; } .e-calendar .e-content tr.e-month-hide { display: none; font-weight: normal; } .e-calendar .e-content tr.e-month-hide, .e-calendar .e-content td.e-other-month, .e-calendar .e-content td.e-other-year { pointer-events: none; -ms-touch-action: none; touch-action: none; } .e-calendar .e-content tr.e-month-hide, .e-calendar .e-content td.e-other-month.e-disabled, .e-calendar .e-content td.e-other-year.e-disabled { pointer-events: none; -ms-touch-action: none; touch-action: none; } .e-calendar .e-content td.e-week-number:hover span.e-day, .e-calendar .e-content td.e-week-number:hover { background-color: #fff; cursor: default; } .e-calendar .e-header .e-prev, .e-calendar .e-header .e-next { border-radius: 50%; display: inline-block; font-size: 14px; vertical-align: middle; } .e-calendar .e-header .e-title { cursor: pointer; display: inline-block; float: left; font-size: 14px; font-weight: 500; text-align: left; padding: 0 5px; border: none; border-radius: 4px; } .e-calendar .e-header .e-title { margin-left: 5px; } .e-calendar .e-header .e-prev:hover, .e-calendar .e-header .e-next:hover { cursor: pointer; } .e-calendar .e-header .e-prev.e-overlay, .e-calendar .e-header .e-next.e-overlay { background: none; } .e-calendar .e-header.e-decade .e-title, .e-calendar .e-header.e-year .e-title { margin-left: 5px; } .e-calendar .e-header.e-decade .e-title { cursor: default; } .e-calendar .e-header .e-icon-container { display: inline-block; float: right; padding-top: 0; } .e-calendar .e-footer-container { text-transform: uppercase; } .e-calendar { border-spacing: 0; max-width: 246px; min-width: 240px; padding: 0; } .e-calendar.e-calendar-day-header-lg { max-width: 100%; min-width: 540px; } .e-calendar.e-week-number { min-width: 262px; } .e-calendar.e-week { max-width: 246px; min-width: 240px; } .e-calendar .e-header .e-title { line-height: 40px; } .e-calendar.e-rtl .e-header .e-title { text-align: right; text-indent: 4px; } .e-calendar .e-header { height: 40px; } .e-calendar .e-header.e-month { padding: 10px 10px 0 10px; } .e-calendar .e-header.e-year, .e-calendar .e-header.e-decade { padding: 10px 10px 0 10px; } .e-calendar th { font-weight: normal; height: 30px; text-transform: none; } .e-calendar .e-content .e-selected, .e-calendar .e-content .e-state-hover { border-radius: 0; } .e-calendar .e-content span.e-day { border: none; font-size: 13px; font-weight: normal; height: 30px; line-height: 30px; width: 30px; } .e-calendar .e-content.e-month td.e-today span.e-day { line-height: 30px; } .e-calendar .e-content.e-year table, .e-calendar .e-content.e-decade table { border-spacing: 0; padding: 10px; } .e-calendar .e-content.e-month td { height: 30px; padding: 2px; } .e-calendar .e-content .tfooter > tr > td { height: 36px; line-height: 36px; } .e-calendar .e-content.e-year td, .e-calendar .e-content.e-decade td { height: 45px; padding: 6px; } .e-calendar .e-content.e-year td > span.e-day, .e-calendar .e-content.e-decade td > span.e-day { font-weight: normal; height: 45px; line-height: 45px; width: 45px; } .e-calendar .e-header .e-icon-container .e-prev, .e-calendar .e-header .e-icon-container .e-next { height: 36px; width: 36px; } .e-calendar .e-footer-container { background-color: #fff; border-top: none; text-align: center; cursor: default; display: -ms-flexbox; display: flex; -ms-flex-direction: row; flex-direction: row; -ms-flex-pack: end; justify-content: flex-end; padding: 0 10px 10px 10px; width: 100%; } .e-small.e-calendar, .e-small .e-calendar { max-width: 246px; min-width: 240px; padding: 0; min-height: 220px; } .e-small.e-calendar.e-calendar-day-header-lg, .e-small .e-calendar.e-calendar-day-header-lg { max-width: 100%; min-width: 540px; } .e-small.e-calendar .e-content span.e-day, .e-small .e-calendar .e-content span.e-day { font-size: 12px; height: 24px; line-height: 24px; width: 24px; } .e-small.e-calendar .e-content.e-month td.e-today span.e-day, .e-small .e-calendar .e-content.e-month td.e-today span.e-day { line-height: 22px; } .e-small.e-calendar .e-content.e-month td, .e-small .e-calendar .e-content.e-month td { height: 24px; } .e-small.e-calendar .e-header, .e-small .e-calendar .e-header { height: 32px; } .e-small.e-calendar .e-header button span, .e-small .e-calendar .e-header button span { font-size: 12px; padding: 6px; line-height: 14px; } .e-small.e-calendar .e-header .e-title, .e-small .e-calendar .e-header .e-title { font-size: 13px; line-height: 32px; } .e-small.e-calendar .e-header .e-icon-container .e-prev, .e-small.e-calendar .e-header .e-icon-container .e-next, .e-small .e-calendar .e-header .e-icon-container .e-prev, .e-small .e-calendar .e-header .e-icon-container .e-next { height: 28px; width: 28px; } .e-small.e-calendar th, .e-small .e-calendar th { font-size: 12px; height: 24px; } .e-calendar .e-btn.e-today.e-flat.e-disabled, .e-calendar .e-btn.e-today.e-flat.e-disabled:hover, .e-calendar .e-btn.e-today.e-flat.e-disabled:active, .e-calendar .e-btn.e-today.e-flat.e-disabled:focus, .e-calendar .e-btn.e-today.e-flat.e-disabled:hover:active { background: transparent; border-color: transparent; box-shadow: none; color: rgba(0, 0, 0, 0.26); cursor: default; opacity: 0.35; outline: none; pointer-events: none; -ms-touch-action: none; touch-action: none; } .e-content-placeholder.e-calendar.e-placeholder-calendar { background-size: 250px 336px; min-height: 336px; } .e-calendar { background-color: #fff; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: none; } .e-calendar .e-date-icon-prev, .e-calendar .e-date-icon-next { color: rgba(0, 0, 0, 0.54); } .e-calendar th { border-bottom: 0; color: rgba(0, 0, 0, 0.54); } .e-calendar .e-header { border-bottom: 0; } .e-calendar .e-header a span { border: none; color: rgba(0, 0, 0, 0.75); } .e-calendar .e-header .e-title { color: rgba(0, 0, 0, 0.75); } .e-calendar .e-header .e-title:hover { background: none; cursor: pointer; text-decoration: none; } .e-calendar .e-header .e-title:focus { box-shadow: 0 0 0 1px #212121; background: none; text-decoration: none; } .e-calendar .e-header .e-title:active { box-shadow: none; background: #fff; text-decoration: none; } .e-calendar .e-header .e-prev:hover > span, .e-calendar .e-header .e-next:hover > span { border: none; color: rgba(0, 0, 0, 0.75); cursor: pointer; } .e-calendar .e-header .e-prev:hover, .e-calendar .e-header .e-next:hover { background: none; } .e-calendar .e-header .e-prev:focus, .e-calendar .e-header .e-next:focus { box-shadow: 0 0 0 1px #212121; } .e-calendar .e-header .e-prev:active, .e-calendar .e-header .e-next:active { background: #fff; color: #fff; } .e-calendar .e-header button.e-prev:active span, .e-calendar .e-header button.e-next:active span { border: none; color: rgba(0, 0, 0, 0.75); } .e-calendar .e-header.e-decade .e-title { color: rgba(0, 0, 0, 0.87); cursor: default; } .e-calendar .e-header .e-next.e-disabled span, .e-calendar .e-header .e-prev.e-disabled span { color: rgba(0, 0, 0, 0.87); font-weight: normal; } .e-calendar .e-header .e-next.e-disabled, .e-calendar .e-header .e-prev.e-disabled { opacity: 0.35; } .e-calendar .e-content.e-decade tr:first-child .e-cell:first-child span.e-day, .e-calendar .e-content.e-decade tr:last-child .e-cell:last-child span.e-day { color: rgba(0, 0, 0, 0.38); } .e-calendar .e-content.e-decade tr:first-child .e-cell:first-child.e-selected span.e-day, .e-calendar .e-content.e-decade tr:last-child .e-cell:last-child.e-selected span.e-day { color: #fff; } .e-calendar .e-content.e-decade tr:first-child .e-cell.e-disabled:first-child span.e-day, .e-calendar .e-content.e-decade tr:last-child .e-cell.e-disabled:last-child span.e-day { color: rgba(0, 0, 0, 0.87); } .e-calendar .e-content.e-year td.e-selected:hover span.e-day, .e-calendar .e-content.e-decade td.e-selected:hover span.e-day { background-color: #e3165b; } .e-calendar .e-content.e-year td > span.e-day, .e-calendar .e-content.e-decade td > span.e-day { background: #fff; } .e-calendar .e-content .e-week-number span { color: rgba(0, 0, 0, 0.54); } .e-calendar .e-content td.e-focused-date span.e-day, .e-calendar .e-content td.e-focused-date:hover span.e-day, .e-calendar .e-content td.e-focused-date:focus span.e-day { background: #eee; border: none; border-radius: 50%; box-shadow: none; } .e-calendar .e-content td.e-focused-date:hover span.e-day { background-color: #eee; border: none; border-radius: 50%; color: rgba(0, 0, 0, 0.87); } .e-calendar .e-content td.e-today span.e-day, .e-calendar .e-content td.e-focused-date.e-today span.e-day { background: none; border: 1px solid #e3165b; border-radius: 50%; box-shadow: none; color: #e3165b; } .e-calendar .e-content td.e-focused-date.e-today span.e-day { background: #eee; border: 1px solid #e3165b; box-shadow: none; color: #e3165b; } .e-calendar .e-content td.e-today:focus span.e-day, .e-calendar .e-content td.e-focused-date.e-today:focus span.e-day { background-color: #eee; border: none; border-radius: 50%; color: #e3165b; } .e-calendar .e-content td.e-today:hover span.e-day, .e-calendar .e-content td.e-focused-date.e-today:hover span.e-day, .e-calendar .e-content td.e-focused-date.e-today:focus span.e-day { background-color: #eee; border: 1px solid #e3165b; color: #e3165b; } .e-calendar .e-content td.e-today.e-selected span.e-day { background-color: #e3165b; border: 1px solid #e3165b; box-shadow: inset 0 0 0 2px #fff; color: #fff; } .e-calendar .e-content td.e-today.e-selected:hover span.e-day, .e-calendar .e-content td.e-selected:hover span.e-day, .e-calendar .e-content td.e-selected.e-focused-date span.e-day { background: rgb(180.5060240964, 17.4939759036, 72.3614457831); color: #fff; } .e-calendar .e-content span { color: rgba(0, 0, 0, 0.87); } .e-calendar .e-content .e-disabled span.e-day:hover { background: none; border: 0; color: rgba(0, 0, 0, 0.87); } .e-calendar .e-content .e-other-month:hover span.e-day { color: rgba(0, 0, 0, 0.38); } .e-calendar .e-content .e-other-month span.e-day, .e-calendar .e-content .e-other-month.e-today span.e-day { color: rgba(0, 0, 0, 0.38); } .e-calendar .e-content .e-other-month.e-today:hover span.e-day { background-color: #eee; color: rgba(0, 0, 0, 0.38); } .e-calendar .e-content thead { background: none; border-bottom: 0; } .e-calendar .e-content td:hover span.e-day, .e-calendar .e-content td:focus span.e-day { background-color: #eee; border: none; border-radius: 50%; color: rgba(0, 0, 0, 0.87); } .e-calendar .e-content td:focus span.e-day { background-color: #eee; color: rgba(0, 0, 0, 0.87); border: none; border-radius: 50%; } .e-calendar .e-content td.e-disabled span.e-day, .e-calendar .e-content td.e-disabled:hover span.e-day, .e-calendar .e-content td.e-disabled:focus span.e-day { background: none; border: none; color: rgba(0, 0, 0, 0.87); } .e-calendar .e-content td.e-selected span.e-day { background-color: #e3165b; color: #fff; border: none; border-radius: 50%; } .e-calendar .e-content .e-footer { color: #e3165b; } .e-calendar.e-device .e-prev:hover, .e-calendar.e-device .e-next:hover, .e-calendar.e-device .e-prev:active, .e-calendar.e-device .e-next:active, .e-calendar.e-device .e-prev:focus, .e-calendar.e-device .e-next:focus { background: none; } .e-calendar.e-device button.e-prev:active span, .e-calendar.e-device button.e-next:active span { color: rgba(0, 0, 0, 0.54); } .e-small.e-calendar .e-header .e-title, .e-small .e-calendar .e-header .e-title { color: rgba(0, 0, 0, 0.87); } .e-calendar .e-zoomin { animation: animatezoom 0.3s; } @keyframes animatezoom { from { transform: scale(0); } to { transform: scale(1); } } .e-calendar .e-calendar-content-table .e-cell.e-focused-cell span.e-day { box-shadow: 0 0 0 1px #212121; border-radius: 50%; }