maycur-business
Version:
maycur business react components of web
135 lines (117 loc) • 3.38 kB
text/less
@import '../../style/variables.less';
@prefix-cls: ~"@{prefix}-city-list";
@active-form-border-bottom-color: #40a9ff;
@form-input-placeholder: #bcbcbc;
@padding-around: 16px;
.@{prefix-cls} {
position: absolute;
// top: @height;
top: 27px;
width: 100%;
max-height: 360px;
min-height: 200px;
min-width: 200px;
overflow: auto;
z-index: 1;
box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
background-color: #fff;
z-index: 99;
display: flex;
flex-direction: column;
&-display-value {
position: relative;
height: auto;
padding: 10px @padding-around;
line-height: 18px;
border-bottom: 1px solid @border-color;
}
&-search {
padding: 10px @padding-around;
background-color: #fff;
border-bottom: 1px solid @border-color;
input {
background-color: #f7f7f7;
padding: 5px ;
border: none;
}
}
&-city {
flex: 1;
overflow: auto;
.sub-title {
line-height: 26px;
font-size: 12px;
color: #959595;
}
.hot-city-panel,
.nav-panel {
padding: 0 @padding-around;
.ant-radio-group .ant-radio-button-wrapper {
height: 24px;
line-height: 24px;
padding: 0 10px;
font-size: 12px;
}
}
.hot-city-panel {
line-height: 33px;
.hot-city-list {
.ant-btn {
height: 24px;
padding: 0 7px;
border-radius: 2px;
font-size: 12px;
color: #555;
border-color: @border-color;
}
}
}
.nav-panel {
display: flex;
border-bottom: 1px solid @border-color;
line-height: 40px;
.crumb {
margin-left: @padding-around/2;
.crumb-item {
display: inline-block;
position: relative;
line-height: 27px;
font-size: 14px;
padding: 0 14px 0 12px;
color: #3296fa;
cursor: pointer;
&:after {
content: '/';
position: absolute;
right: 0;
font-size: 14px;
line-height: 27px;
color: #e1e1e1;
}
&:last-child{
color:#757575;
&:after {
content: none;
}
}
}
}
}
.city-list-wrapper {
list-style: none;
padding: 0;
margin: 0;
padding-left: @padding-around;
.city-item {
box-sizing: border-box;
display: flex;
justify-content: space-between;
padding: 11px 15px 11px 0;
border-bottom: 1px solid #eee;
.city-desc {
opacity: 0.45;
}
}
}
}
}