UNPKG

nepali-multi-date-picker

Version:

A simple yet powerful jquery date picker based in Nepali calendar. Supports both single and multiple date selections in dual language.

189 lines (157 loc) 3.35 kB
.andp-date-picker { cursor: text; } .andp-date-picker:not(:empty) { height: inherit; } .andp-date-picker span { background: #e8e8e8; display: inline-block; margin: 0 1px 1px; border-radius: 4px; padding: 2px 10px; } .andp-datepicker-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; width: 256px; overflow: hidden; position: absolute; z-index: 1000; background: #fff; box-shadow: 4px 4px 6px #00000017; } .andp-datepicker-container .andp-days-names div:last-child, .andp-datepicker-container .andp-column div:last-child { color: red; } .andp-datepicker-container .andp-column div.old-dates:last-child { opacity: 0.4; } .andp-body { padding: 0 8px 8px; border: solid 1px #ccc; border-top: 0; } .andp-header { background: #2a5acc; padding: 5px 0px; } .andp-header select { padding: 6px 5px; border: 0; font-size: 14px; box-sizing: border-box; } .andp-month-select { margin-right: 5px; width: 96px; } .andp-year-select { width: 65px; } .andp-header button { background: none; border: 0; color: #fff; padding: 0; cursor: pointer; font-weight: bold; margin-top: 0; font-size: 20px; box-sizing: border-box; width: 45px; height: 33px; text-align: center; outline: none !important; position: relative; } .andp-header button.andp-prev:hover:before, .andp-header button.andp-next:hover:before { width: 10px; height: 10px; border-color: yellow; } .andp-header button.andp-prev:before, .andp-header button.andp-next:before { transition: all 0.2s; content: ''; position: absolute; top: 17px; width: 8px; height: 8px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-50%) rotate(45deg); } .andp-header button.andp-next:before { border-left: 0; right: 20px; border-right: 2px solid #fff; transform: translateY(-50%) rotate(-45deg); } .andp-prev { float: left; } .andp-next { float: right; } .andp-days-names div { width: 34px; float: left; text-align: center; font-size: 12px; color: #2a5acc; padding: 10px 0; } .andp-days-numbers { display: table; border-collapse: collapse; user-select: none; } .andp-column { display: table-row; } .andp-column div { display: table-cell; border: 1px solid #f1f1f1; width: 34px; height: 28px; box-sizing: border-box; text-align: center; vertical-align: middle; font-size: 12px; color: #000; } .andp-column div.day { cursor: pointer; } .andp-column .old-dates { color: #d2d2d2; } .andp-column div.selected { background: #2a5acc !important; color: #fff !important; border-color: #2a5acc !important; } .andp-column div.soft-select { background: #dedede; border-color: #dedede; } .andp-info { font-size: 12px; margin-top: 9px; } .andp-action-btns { text-align: right; margin-top: 7px; } .andp-action-btns button { background: #28a745; border: 0; color: #fff; font-size: 12px; padding: 5px 10px; display: inline-block; margin-left: 7px; cursor: pointer; }