├── .gitignore ├── README.md ├── css └── datepicker.css ├── index.html ├── package.json └── persian-datepicker.js /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | *.DS_Store 4 | [Tt]humbs.db -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-persian-datepicker-playground 2 | persian datepicker config generator and playground 3 | [Demo](http://babakhani.github.io/PersianWebToolkit/doc/datepicker/playground.html) 4 | -------------------------------------------------------------------------------- /css/datepicker.css: -------------------------------------------------------------------------------- 1 | a { 2 | color: #000 !important; 3 | } 4 | 5 | .datepicker-demo-box { 6 | position: fixed; 7 | } 8 | 9 | .datepicker-main { 10 | min-height: 600px; 11 | padding-top: 70px; 12 | } 13 | 14 | .datepicker-main .alert-info { 15 | font-size: 12px; 16 | padding: 5px; 17 | opacity: 0.9; 18 | background: #f1f1f1; 19 | color: #999; 20 | border: none; 21 | } 22 | 23 | .datepicker-main .alert-info:hover { 24 | opacity: 1; 25 | } 26 | 27 | .datepicker-main .datepicker-main--panel { 28 | position: fixed; 29 | width: 50%; 30 | } 31 | 32 | .navbar { 33 | border-radius: 0 !important; 34 | } 35 | 36 | .navbar-header a { 37 | color: hsla(0, 0%, 100%, .7) !important; 38 | } 39 | 40 | textarea { 41 | display: block; 42 | height: 150px; 43 | } 44 | 45 | .datepicker-checkbox { 46 | width: 40% !important; 47 | } 48 | 49 | .datepicker-plot-area { 50 | width: 286px; 51 | } 52 | 53 | /*--Helper--*/ 54 | 55 | .margin-top { 56 | margin-top: 15px; 57 | } 58 | 59 | .no-padding { 60 | padding: 0 !important; 61 | } 62 | 63 | .datepicker-footer { 64 | padding: 2.5rem; 65 | color: #999; 66 | background-color: #f9f9f9; 67 | border-top: .05rem solid #e5e5e5; 68 | } 69 | 70 | /* The switch - the box around the slider */ 71 | .switch { 72 | position: relative; 73 | display: inline-block; 74 | width: 60px; 75 | height: 34px; 76 | } 77 | 78 | /* Hide default HTML checkbox */ 79 | .switch input { 80 | display: none; 81 | } 82 | 83 | /* The slider */ 84 | .slider { 85 | position: absolute; 86 | cursor: pointer; 87 | top: 0; 88 | left: 0; 89 | right: 0; 90 | bottom: 0; 91 | background-color: #ccc; 92 | -webkit-transition: .1s; 93 | transition: .1s; 94 | } 95 | 96 | .slider:before { 97 | position: absolute; 98 | content: ""; 99 | height: 26px; 100 | width: 26px; 101 | left: 4px; 102 | bottom: 4px; 103 | background-color: white; 104 | -webkit-transition: .1s; 105 | transition: .1s; 106 | } 107 | 108 | input:checked + .slider { 109 | background-color: #00A693; 110 | } 111 | 112 | input:focus + .slider { 113 | box-shadow: 0 0 1px #2196F3; 114 | } 115 | 116 | input:disabled + .slider { 117 | opacity: 0.4; 118 | } 119 | 120 | input:checked + .slider:before { 121 | -webkit-transform: translateX(26px); 122 | -ms-transform: translateX(26px); 123 | transform: translateX(26px); 124 | } 125 | 126 | /* Rounded sliders */ 127 | .slider.round { 128 | border-radius: 34px; 129 | } 130 | 131 | .slider.round:before { 132 | border-radius: 50%; 133 | } 134 | 135 | p.alert.alert-info { 136 | margin-top: 8px; 137 | } 138 | 139 | /* nav-tab */ 140 | .btn-success { 141 | color: #ffffff !important; 142 | background-color: #5cb85c !important; 143 | } 144 | 145 | .nav-tabs li a.btn-success:hover, 146 | .nav-tabs li a.btn-success:focus, 147 | .nav-tabs li a.btn-success:active { 148 | background-color: #438a43 !important; 149 | color: #ffffff !important; 150 | } 151 | 152 | .options-container a:hover { 153 | color: darkgreen; 154 | } 155 | 156 | .nav-tabs li a { 157 | border: none !important; 158 | border-bottom: 1px solid #eeeeee !important; 159 | border-radius: 0 !important; 160 | } 161 | 162 | .nav-tabs li a:hover, 163 | .nav-tabs li a:focus, 164 | .nav-tabs li a:active { 165 | border-bottom: 1px solid #00a693 !important; 166 | background-color: #ffffff !important; 167 | color: #00a693 !important; 168 | } 169 | 170 | .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { 171 | border-bottom: 1px solid #00a693 !important; 172 | background-color: #ffffff !important; 173 | color: #00a693 !important; 174 | } 175 | 176 | .nav-tabs > li.active > a.btn-success, .nav-tabs > li.active > a.btn-success:hover, .nav-tabs > li.active > a.btn-success:focus { 177 | background-color: #438a43 !important; 178 | color: #ffffff !important; 179 | } 180 | 181 | .tooltip { 182 | width: 130px; 183 | } 184 | 185 | .tooltiptext { 186 | background-color: rgba(0, 0, 0, 0.39) !important; 187 | } 188 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |232 | {{title}} 233 | {{#altCalendarShowHint}} 234 | {{alterCalTitle}} 235 | {{/altCalendarShowHint}} 236 | | 237 | {{/enabled}} 238 | {{^enabled}} 239 |240 | {{title}} 241 | {{#altCalendarShowHint}} 242 | {{alterCalTitle}} 243 | {{/altCalendarShowHint}} 244 | | 245 | {{/enabled}} 246 | 247 | {{/.}} 248 |