eapp
Version:
181 lines (156 loc) • 2.98 kB
CSS
/*页面布局,flex定住头部和底部*/
.root {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.statusBar{
height: 20px;
background: #2484E8;
}
.titleBar {
z-index: 999;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
background: #2484E8;
padding: 10px 0;
}
.titleBar > button {
margin: 0 6px;
}
.titleBar > span {
flex: 1;
font-size: 20px;
color: white;
text-align: center;
}
.content_wrap {
position: absolute;
top: 72px;
bottom: 2.6rem;
left: 0;
right: 0;
/*overflow: hidden;*/
overflow: scroll; /*超出垂直部分可滚动*/
/*解决ios手机列表滑动不顺畅问题*/
-webkit-overflow-scrolling: touch;
}
.bottom {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 30px;
background-color: #0a456f;
text-align: center;
font-size: 16px;
line-height: 30px;
color: #ffffff;
}
/**
* ----------------
*/
.sTitle {
color: #333;
font-size: 15px;
border-left: 4px solid #137aef;
line-height: 1.5rem;
padding-left: .5rem;
margin-left: .7rem;
margin-top: .95rem;
padding-top: 1px;
margin-bottom: .5rem;
}
.itemBox ul {
display: flex;
flex-direction: row;
}
.clickUp {
padding: 1rem 0.2rem;
border: 1px solid #2484e8;
margin: 1%;
border-radius: 10px;
width: 21%;
/*font-size: 14px;*/
text-align: center;
word-wrap: break-word;
word-break: break-all;
background: #fff;
}
.clickUp:active{
background: #cdcdcd;
}
.itemBox p {
font-size: 1rem;
text-align: center;
word-wrap: break-word;
word-break: break-all;
}
.sTwoLine {
/* background: #ffffff; */
margin: .2rem;
display: flex;
display: -webkit-flex;
/*white-space: nowrap;*/
flex-direction: row;
justify-content: flex-start;
-webkit-flex-wrap: wrap;
border-radius: .15rem;
padding: 0.2rem;
}
img {
height: 5rem;
width: 100%;
}
@keyframes fade {
from {
opacity: 1.0;
}
50% {
opacity: 0.4;
}
to {
opacity: 1.0;
}
}
@-webkit-keyframes fade {
from {
opacity: 1.0;
}
50% {
opacity: 0.4;
}
to {
opacity: 1.0;
}
}
#status {
animation: fade 3000ms infinite;
-webkit-animation: fade 3000ms infinite;
}
/**
* ----------------
*/
.popup {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.6);
display: none;
}
.popup > img {
width: 300px;
/*height: 500px;*/
min-height: 300px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -150px;
margin-top: -150px;
}