135 lines
2.8 KiB
CSS
135 lines
2.8 KiB
CSS
/*城市选择*/
|
|
#city_selector {
|
|
width: 400px;
|
|
box-shadow: 3px 3px 10px rgba(110, 110, 110, 0.5);
|
|
background-color: #f5f6f5;
|
|
z-index: 100;
|
|
position: absolute;
|
|
display: none;
|
|
}
|
|
|
|
#city_selector.open {
|
|
display: block;
|
|
}
|
|
|
|
#city_selector .city-tab-nav {
|
|
width: 100%;
|
|
height: 48px;
|
|
background: linear-gradient(to top, #f66d07, #fc9803);
|
|
font-size: 12px;
|
|
}
|
|
|
|
#city_selector .city-tab-nav li {
|
|
float: left;
|
|
width: 50px;
|
|
box-sizing: border-box;
|
|
border-radius: 4px;
|
|
color: #ffffff;
|
|
margin: 8px 0 8px 15px;
|
|
padding: 9px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#city_selector .city-tab-nav li:hover,
|
|
#city_selector .city-tab-nav li.selected {
|
|
background: #fff linear-gradient(to top, #f1f1f1, #ffffff);
|
|
color: #f17206;
|
|
}
|
|
|
|
#city_selector p {
|
|
padding: 14px 0 10px 30px;
|
|
font-weight: bold;
|
|
color: #74848d;
|
|
}
|
|
|
|
#city_selector .recent-city-list dl {
|
|
margin: 0 12px 12px 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#city_selector .recent-city-list dd {
|
|
margin: 0;
|
|
border: 1px solid #d0d0d0;
|
|
border-radius: 4px;
|
|
color: #7d848d;
|
|
width: 72px;
|
|
float: left;
|
|
line-height: 32px;
|
|
background-color: #f9f8f3;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
margin-right: 5px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
#city_selector .recent-city-list dd:hover {
|
|
background-color: #ff9b00;
|
|
color: #ffffff;
|
|
}
|
|
|
|
#city_selector .city-list-container {
|
|
margin: 0 auto 50px auto;
|
|
overflow: hidden;
|
|
color: #7b848d;
|
|
width: 390px;
|
|
padding-top: 1px;
|
|
padding-left: 1px;
|
|
}
|
|
|
|
#city_selector .city-list-container li {
|
|
float: left;
|
|
width: 25%;
|
|
line-height: 35px;
|
|
text-align: center;
|
|
border: 1px solid #e1e1e1;
|
|
margin-top: -1px;
|
|
margin-left: -1px;
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#city_selector .city-list-container li:hover,
|
|
#city_selector .city-list-container li.selected {
|
|
background-color: #ff9b00;
|
|
color: white;
|
|
}
|
|
|
|
#city_selector .city-list-container li:active {
|
|
background-color: #f78800;
|
|
color: white;
|
|
}
|
|
|
|
#city_selector .city-search {
|
|
display: none;
|
|
}
|
|
|
|
#city_selector .city-list-pager {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
padding-bottom: 9px;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
#city_selector .city-list-pager button {
|
|
line-height: 24px;
|
|
background: linear-gradient(0deg, #e6e6e6, #f9f9f9);
|
|
color: #7d848d;
|
|
border: 1px solid #bdbcbc;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#city_selector .city-list-pager button:hover {
|
|
background: linear-gradient(to top, #efefef, #ffffff);
|
|
}
|
|
|
|
#city_selector .city-list-pager button:disabled {
|
|
border: 1px solid transparent;
|
|
background: none transparent;
|
|
color: #9da2a8;
|
|
}
|