Light12306/Web12306/css/ui/date-selector.css

274 lines
5.8 KiB
CSS
Raw Normal View History

2014-05-05 19:34:47 +08:00
.date-bar-wrap {
2014-08-30 01:32:27 +08:00
height: 30px;
2014-05-05 19:34:47 +08:00
border-bottom: 3px solid #f88c21;
border-left: 1px solid #dfdfdf;
border-right: 1px solid #dfdfdf;
}
.date-bar-wrap .date-bar-prev,
.date-bar-wrap .date-bar-next {
width: 28px;
2014-08-30 01:32:27 +08:00
height: 28px;
2014-05-05 19:34:47 +08:00
background: linear-gradient(to bottom, #fcfcfb, #e5e4e4);
border-top: 1px solid #dfdfdf;
border-bottom: 1px solid #d67e29;
cursor: pointer;
}
.date-bar-wrap .date-bar-prev .arrow-left,
.date-bar-wrap .date-bar-next .arrow-right {
display: block;
2014-08-30 01:32:27 +08:00
margin: 5px auto;
2014-05-05 19:34:47 +08:00
width: 0;
height: 0;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
position: relative;
}
.date-bar-wrap .date-bar-prev .arrow-left {
border-right: 10px solid #a8a7a8;
}
.date-bar-wrap .date-bar-next .arrow-right {
border-left: 10px solid #a8a7a8;
}
.date-bar-wrap .date-bar-prev .arrow-left:after,
.date-bar-wrap .date-bar-next .arrow-right:after {
content: '';
position: absolute;
display: block;
margin: 10px auto;
width: 0;
height: 0;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
top: -20px;
}
.date-bar-wrap .date-bar-prev .arrow-left:after {
border-right: 10px solid #efeeee;
left: 3px;
}
.date-bar-wrap .date-bar-next .arrow-right:after {
border-left: 10px solid #efeeee;
left: -13px;
}
.date-bar-wrap .date-bar-prev:hover .arrow-left {
border-right: 10px solid #f88c21;
}
.date-bar-wrap .date-bar-next:hover .arrow-right {
border-left: 10px solid #f88c21;
}
.date-bar-wrap .date-bar-prev {
border-right: 1px solid #cccbc8;
}
.date-bar-wrap .date-bar-next {
border-left: 1px solid #cccbc8;
}
.date-bar-wrap .date-bar {
width: 922px;
2014-08-30 01:32:27 +08:00
height: 30px;
2014-05-05 19:34:47 +08:00
background: linear-gradient(to bottom, #f1f0f0, #dbdbdb);
color: #777;
}
.date-bar-wrap .date-bar .date-bar-list {
width: 100%;
2014-08-30 01:32:27 +08:00
height: 30px;
2014-05-05 19:34:47 +08:00
}
.date-bar-wrap .date-bar .date-bar-list li {
width: 14.28%;
2014-05-05 19:34:47 +08:00
height: 100%;
float: left;
border-top: 1px solid #dfdfdf;
border-left: 1px solid #b8b7b7;
border-bottom: 1px solid #d67e29;
position: relative;
cursor: pointer;
box-sizing: border-box;
2014-08-30 01:32:27 +08:00
line-height: 28px;
text-align: center;
2014-05-05 19:34:47 +08:00
}
.date-bar-wrap .date-bar .date-bar-list li.disabled {
background-color: #cccccc;
color: #aaaaaa;
cursor: not-allowed;
}
2014-05-05 19:34:47 +08:00
.date-bar-wrap .date-bar .date-bar-list li h5 {
font-weight: bold;
font-size: 16px;
text-align: center;
2014-08-30 01:32:27 +08:00
margin-right: 8px;
display: inline-block;
2014-05-05 19:34:47 +08:00
}
.date-bar-wrap .date-bar .date-bar-list li span {
text-align: center;
}
.date-bar-wrap .date-bar .date-bar-list li.selected,
.date-bar-wrap .date-bar .date-bar-list li:hover {
background: linear-gradient(to bottom, #fc9e40, #f78b20);
color: #ffffff;
border-left: 1px solid #d67e29;
border-top: 1px solid #d67e29;
border-bottom: 1px solid #f78b20;
}
.date-bar-wrap .date-bar .date-bar-list li.disabled:hover {
color: #aaaaaa;
background: #cccccc;
border-left-color: #b8b7b7;
border-top-color: #dfdfdf;
}
.date-bar-wrap .date-bar .date-bar-list li.selected:after,
.date-bar-wrap .date-bar .date-bar-list li.selected:before {
content: '';
position: absolute;
width: 0;
height: 0;
border-bottom: 5px solid #c6701a;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
top: 100%;
left: 50%;
margin-left: -5px;
margin-top: -1px;
}
.date-bar-wrap .date-bar .date-bar-list li.selected:after {
border-bottom: 5px solid #f5f5f5;
margin-top: 0;
}
.date-bar-wrap .date-bar .date-bar-list li.selected + li {
border-left: 1px solid #d67e29;
}
2014-05-05 19:34:47 +08:00
.date-bar-wrap .date-bar .date-bar-list li:last-child {
}
.date-bar-wrap .date-bar .date-bar-list li:first-child {
border-left: none;
}
/*日期选择器*/
.date-selector {
background-color: #ffffff;
}
.date-selector nav {
2014-12-01 02:17:13 +08:00
line-height: 61px;
overflow: hidden;
font-size: 18px;
overflow: hidden;
2014-05-05 19:34:47 +08:00
}
2014-12-01 02:17:13 +08:00
.date-selector nav .month-prev {
float: left;
padding-left: 15px;
padding-right: 15px;
cursor: pointer;
color: rgb(249, 134, 5);
2014-05-05 19:34:47 +08:00
}
2014-12-01 02:17:13 +08:00
.month-first .month-next,
.month-second .month-prev {
display: none;
}
.date-selector nav .month-next {
float: right;
padding-right: 15px;
padding-left: 15px;
cursor: pointer;
color: rgb(249, 134, 5);
}
.date-selector nav .month-prev:hover,
.date-selector nav .month-next:hover {
background-color: rgb(245, 208, 168);
2014-05-05 19:34:47 +08:00
}
2014-12-01 02:17:13 +08:00
.date-selector nav header {
font-size: 18px;
color: #7d848d;
text-align: center;
font-weight: bold;
}
2014-05-05 19:34:47 +08:00
2014-12-01 02:17:13 +08:00
.date-selector table {
border-collapse: separate;
width: 100%;
}
2014-05-05 19:34:47 +08:00
2014-12-01 02:17:13 +08:00
.date-selector table th {
line-height: 31px;
border-top: 1px solid #bb6c29;
border-bottom: 1px solid #bb6c29;
background: linear-gradient(to top, #f87c06, #fa9104);
color: #ffffff;
width: 45px;
text-align: center;
}
2014-05-05 19:34:47 +08:00
2014-12-01 02:17:13 +08:00
.date-selector table td {
line-height: 31px;
border-bottom: 1px solid #e1e1e1;
background: #f2f2f2;
color: #7d848d;
width: 45px;
text-align: center;
}
2014-05-05 19:34:47 +08:00
2014-12-01 02:17:13 +08:00
.date-selector table td + td {
border-left: 1px solid #e1e1e1;
}
.date-selector table td:hover,
.date-selector table td.date-selected {
background-color: #ff9b00;
color: #ffffff;
cursor: pointer;
}
/*.date-selector table td:active {
2014-05-05 19:34:47 +08:00
background-color: #f78800;
color: #ffffff;
cursor: pointer;
2014-08-19 23:29:14 +08:00
}*/
2014-05-05 19:34:47 +08:00
2014-12-01 02:17:13 +08:00
.date-selector .date-current {
color: #f78800;
font-weight: bold;
}
2014-12-01 02:17:13 +08:00
.date-selector .date-commonavailable {
color: #d8a15e;
background-color: #FFF1E0;
font-weight: bold;
}
2014-05-05 19:34:47 +08:00
2014-12-01 02:17:13 +08:00
.date-selector .date-notavailable {
background-color: #ffffff;
color: #ccc;
}
.date-selector .date-notavailable:hover {
cursor: not-allowed;
background: none;
2014-05-05 19:34:47 +08:00
color: #ccc;
}