3 Star 7 Fork 3

笔心 / mobile.datepicker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mobile.datepicker.css 4.05 KB
一键复制 编辑 原始数据 按行查看 历史
笔心 提交于 2015-09-13 15:53 . no commit message
.datepicker *{
margin:0;
padding:0;
}
.date-head,
.datepicker-confirm {
border-width: 0;
-webkit-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGAQMAAADaAn0LAAAABlBMVEUAAADa3O84QXzTAAAAAXRSTlMAQObYZgAAAA5JREFUCNdj+MPQAoV/ABg8BAlEsqabAAAAAElFTkSuQmCC") 2 2 stretch;
}
ul li {
list-style: none;
}
.datepicker-icon {
display: inline-block;
vertical-align: -5px;
height: 24px;
width: 24px;
-webkit-background-size: 24px 24px;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDgvMjAvMTU+gz+pAAABzUlEQVRoge2asXXCMBCGP/vRQyZINsAbkA1ghFS6lg0CG6S9LcwGsIHZIN4gG5BCIrFdEGFskB19jY2eJd3vO1mndySn04kxkD7agK6YXPOwiBTAHDiqataHQW3nuNYj88a1D1rNMb7QEpEZsAbegGcAVU18BxKRVl+NG+bYAWtV/QTnERHJgAJ4x4kYAEugEJFXgNR5Imc4AqpMgVxEXibYcKqK2AK5qhbXjHhNiNzAE5BhbV66timwmWDXxJmtqm7uYFArVPUL2AN7Ecn5FbNKqXtj/8dYx8a1D3zn+KjcT5sb4sVw6msTbDlHzdbaPuJcNwiato5mQ4xCQiMKCY3RCPE6WFXysYVrOgCrS5/re/U54+uR6uC4+zyQPoC/kIVn2yP6ACNaI75CDp5tj+gD+AtZNQY8uLYQ+gCQGGN+zsF3Ohx1RvUM/+/WSPBEIaExGiEx1yLmWp33AUa0RmKuRcy1uiPmWiEzTiFuZx0ETVubHum9bNAhNVtToKz8Xt/Xlpuo2lomxpgNtpp7ZoetBhWh1UtcODVriADbxBgzw1Z/hljVBRtRWere+op6iA2FEpfmpwCuFJ1hS9NDEFRibc3OZfQk/l8rML4BEjjBNRy7EXwAAAAASUVORK5CYII=);
}
.datepicker-cover {
position: fixed;
top: 0;
bottom: 0;
left: 0;
display: none;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9990;
}
.datepicker {
position: fixed;
top: 50%;
left: 50%;
z-index: 9999;
display: none;
width: 290px;
margin-left: -145px;
margin-top: -125px;
font-size: 18px;
color: #222;
background: #fff;
font-family: sans-serif;
border-radius: 5px;
}
.datepicker li {
width: 100%;
height: 50px;
line-height: 50px;
text-align: center;
box-sizing: border-box;
}
.date-head {
height: 50px;
line-height: 50px;
padding: 0 15px;
border-bottom-width: 1px;
box-sizing: border-box;
}
.datepicker-picked {
margin-left: 5px;
}
.date-foot {
height: 50px;
line-height: 50px;
text-align: center;
box-sizing: border-box;
}
.datepicker-confirm {
border-top-width: 1px;
box-sizing: border-box;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
.date-wrap {
display: -webkit-box;
height: 150px;
margin: 0 15px;
}
.year-wrap,
.month-wrap,
.day-wrap {
position: relative;
-webkit-box-flex: 1;
height: 150px;
overflow: hidden;
}
.year-wrap:before,
.month-wrap:before,
.day-wrap:before {
content: "";
position: absolute;
pointer-events: none;
top: 50px;
left: 12px;
right: 12px;
height: 50px;
border-top: 1px solid #8b86ff;
border-bottom: 1px solid #8b86ff;
}
.year-wrap:after,
.month-wrap:after,
.day-wrap:after {
content: "";
position: absolute;
pointer-events: none;
top: 0px;
width: 100%;
left: 0;
bottom: 0;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(10%, rgba(255, 255, 255, 1)), color-stop(38%, rgba(255, 255, 255, 0)), color-stop(62%, rgba(255, 255, 255, 0)), color-stop(90%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(255, 255, 255, 1)));
background: -webkit-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 1) 90%, rgba(255, 255, 255, 1) 100%);
background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 1) 90%, rgba(255, 255, 255, 1) 100%);
}
.year,
.month,
.day {
position: absolute;
top: 0;
left: 0;
width: 100%;
}
.animate {
-webkit-transition-property: top;
-webkit-transition-duration: 300ms;
}
JavaScript
1
https://gitee.com/qinshenxue/mobile.datepicker.git
git@gitee.com:qinshenxue/mobile.datepicker.git
qinshenxue
mobile.datepicker
mobile.datepicker
master

搜索帮助