1 Star 0 Fork 43

hattori/datepicker

forked from 笔心/jquery.datepicker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
datetimepicker.css 4.03 KB
一键复制 编辑 原始数据 按行查看 历史
笔心 提交于 2015-10-21 16:59 . 修改datetimepicker,可以正常使用
.datepicker * {
box-sizing: border-box;
font-size: 14px;
}
.datepicker {
position: absolute;
top: 0;
left: 0;
display: none;
width: 280px;
padding: 10px;
border: 1px solid #ccc;
background: #fff;
}
.datepicker .top {
text-align: center;
}
.datepicker .body {
width: 100%;
}
.datepicker .bottom {
padding-top: 5px;
text-align: center;
}
.datepicker .cell {
width: 1%;
height: 30px;
text-align: center;
border: 1px solid #eee;
cursor: pointer;
}
.datepicker .cell.selected {
border: 1px solid #337AB7;
background: #337AB7;
color: #fff;
}
.datepicker .week-cell {
border: 0;
color: #888;
}
.datepicker .prev-month,
.datepicker .next-month {
color: #ccc;
border: 1px solid #f2f2f2;
}
.datepicker .curr-month {
background: #f6f6f6;
}
.datepicker .prev-month:hover,
.datepicker .curr-month:hover,
.datepicker .next-month:hover {
position: relative;
border: 1px solid #337AB7;
color:#337AB7;
z-index: 2;
}
.datepicker .selected:hover{
color:#fff;
}
.datepicker .btn-clear {
display: inline-block;
width: 80px;
height: 30px;
margin: 0 5px;
line-height: 28px;
text-align: center;
color: #337AB7;
background: #fff;
border:1px solid #337AB7;
cursor: pointer;
}
.datepicker .btn-ok {
display: inline-block;
width: 80px;
height: 30px;
margin: 0 5px;
line-height: 30px;
text-align: center;
color: #fff;
background: #337AB7;
cursor: pointer;
}
.datepicker-select {
position: relative;
float: left;
width: 50%;
}
.datepicker-select:after {
position: absolute;
top: 50%;
right: 10px;
width: 0;
height: 0;
margin-top: -2.5px;
border-top: 5px solid #aaa;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
content: '';
}
.datepicker-select-selected {
position: relative;
width: 100%;
height: 36px;
padding-right: 20px;
line-height: 36px;
text-align: center;
border: 1px solid #ddd;
cursor: pointer;
}
.datepicker-select-option {
position: absolute;
top: 35px;
left: 0;
display: none;
width: 100%;
margin: 0;
padding: 0;
border: 1px solid #ddd;
background: #fff;
z-index: 9;
}
.datepicker-select-option li {
float: left;
width: 50%;
height: 30px;
line-height: 30px;
color: #666;
font-size: 13px;
text-align: center;
list-style: none;
cursor: pointer;
}
.datepicker-select-option li:hover {
background: #eee;
}
.datepicker-select-month {
margin-left: -1px;
}
.datepicker .time-wrap {
position: relative;
float: left;
width: 32%;
height: 32px;
margin-top: 5px;
padding-right: 20px;
margin-right: 2%;
outline: none;
border: 1px solid #ddd;
}
.datepicker .d_up,
.datepicker .d_down {
position: absolute;
right: 0;
width: 20px;
height: 15px;
line-height: 15px;
text-align: center;
border-left: 1px solid #ddd;
box-sizing: border-box;
cursor: pointer;
}
.datepicker .d_up:hover,
.datepicker .d_down:hover {
background: #eee;
}
.datepicker .d_up {
top: 0;
}
.datepicker .d_down {
top: 15px;
}
.datepicker .d_up:before,
.datepicker .d_down:before {
display: inline-block;
width: 0;
height: 0;
margin-top: 5px;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
content: '';
vertical-align: top;
}
.datepicker .d_up:before {
border-bottom: 5px solid #aaa;
}
.datepicker .d_down:before {
border-top: 5px solid #aaa;
}
.datepicker .time-wrap input {
display: block;
width: 100%;
height: 100%;
line-height: 30px;
border: 0;
outline: none;
text-align: center;
}
.datepicker tfoot .time-wrap.time-wrap-last {
margin-right: 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hattori/datepicker.git
[email protected]:hattori/datepicker.git
hattori
datepicker
datepicker
master

搜索帮助