UNPKG

react-np-datepicker

Version:

Integrate Nepali Datepicker in your React app easily.

191 lines (164 loc) 3.36 kB
.input-datepicker { font-family: 'Pontano Sans', sans-serif; position: relative; } .input-datepicker-wrapper { position: absolute; padding: 0px 0px; border: 1px solid #eaeaea; border-radius: 5px; box-shadow: 0 0 9px 10px rgba(0,0,0,0.08); background-color: #fff; text-align: center; margin-top: 5px; z-index: 2; /* -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; */ user-select: none; } .input-datepicker .input-datepicker-field { width: 120px; border: 1px solid #ccc; border-radius: 4px; font-family: 'Pontano Sans', sans-serif; font-size: 16px; padding: 2px 8px; } .input-datepicker .input-datepicker-field:focus { outline: none; border: 1px solid #17a2b8; } .input-datepicker .calendar-icon { display: inline-block; padding: 0px 1px 0 5px; height: 27px; line-height: 27px; transform: translateY(4px); cursor: pointer; } .input-datepicker .days, .input-datepicker .months, .input-datepicker .years { width: 255px; padding-bottom: 2px; text-align: center; line-height: 45px; } .input-datepicker .months , .input-datepicker .years{ line-height: 85px; } .input-datepicker .cell { display: inline-block; text-align: center; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .input-datepicker .cell:hover { color: #17a2b8; border: 1px solid #17a2b8; border-radius: 20px; } .input-datepicker .cell.current { background: #17a2b8; color: #fff; opacity: 1.8; border-radius: 20px; } .input-datepicker .day { width: 35px; height: 35px; line-height: 35px; } .input-datepicker .day.prev, .input-datepicker .day.next { opacity: .4; } .input-datepicker .month { width: 58px; height: 38px; line-height: 38px; } .input-datepicker .year { width: 58px; height: 38px; line-height: 38px; } .input-datepicker .days-title .cell { background: #17a2b8; color: #fff; width: 35px; height: 25px; line-height: 28px; cursor: default; border: 1px solid #17a2b8; } .input-datepicker .days-title .cell:hover { color: #17a2b8; border: 1px solid #17a2b8; border-radius: 0px; } .days-title { display:flex; } .input-datepicker .navigation-title { width: 100px; display: inline-block; cursor: pointer; } .input-datepicker .years-view .navigation-title { cursor: default; } .input-datepicker .years-view .navigation-title:hover { color: #000; } .input-datepicker .navigation-title:hover { color: #000; } .input-datepicker .icon-wrapper { cursor: pointer; } .input-datepicker .icon:hover, .input-datepicker .today-btn:hover, .input-datepicker .icon-wrapper:hover { color: #000; } .input-datepicker .icon { cursor: pointer; width: 20px; } .input-datepicker .today-btn { cursor: pointer; padding: 5px; display: block; background: #17a2b8; font-size: 12px; color: #fff; width: 70px; margin: center; margin-left: 144px; margin-top: 8px; margin-bottom: 8px; } .input-datepicker .cell.day.today { position: relative; } .input-datepicker .cell.day.today:after { content: '*'; position: absolute; bottom: 5px; right: 1px; font-size: 15px; color: #17a2b8; } .navigation-wrapper{ padding: 10px; background: #17a2b8; color: #fff; }