Files
ClassContent/历届学生/fontendseven/项目练习/上课项目/美食/css/index.css
2024-09-27 02:06:13 +08:00

264 lines
4.6 KiB
CSS

.header {
display: flex;
align-items: center;
background: #fff;
padding: 0 0.5rem;
box-sizing: border-box;
height: 2.25rem;
position: fixed;
width: 100%;
z-index: 999;
top: 0;
left: 0;
right: 0;
}
.search {
display: inline-block;
width: 90%;
height: 1.5rem;
border: none;
padding-left: 0.95rem;
margin-left: 0.5rem;
background: #f1f1f4;
border-radius: 1.5rem;
font-size: .75rem;
line-height: 1.5rem;
}
.banner img {
width: 100%;
}
.menu {
display: flex;
flex-wrap: wrap;
}
.menu li {
width: 20%;
text-align: center;
}
.menu img {
width: 2.5rem;
height: 2.5rem;
}
.menu p {
font-size: .6rem;
color: #666;
}
.mrsc {
margin-top: 1.6rem;
padding: 0 0.8rem;
}
.pub_title {
font-size: .8rem;
font-weight: 600;
color: #999;
line-height: 1.1rem;
margin-bottom: 0.5rem;
}
.mrsc ul {
display: flex;
margin-bottom: 0.5rem;
align-items: flex-end;
}
.mrsc ul li {
position: relative;
font-size: .8rem;
margin-right: 1rem;
color: #666;
}
.mrsc ul .active::after, .do_together_title .active::after {
content: '';
height: 0.3rem;
border-radius: 0.15rem;
width: 100%;
left: 0px;
bottom: 0rem;
background: #ff9d9b;
position: absolute;
z-index: 50;
display: block;
}
.active {
font-size: 1.4rem !important;
color: #333 !important;
}
.mrsc_list {
display: flex;
justify-content: space-between;
}
.mrsc_list .mrsc_list_item{
}
.mrsc_list img{
width: 8.35rem;
height: 11.9rem;
border-radius: .35rem;
}
.mrsc_list .tips_titles {
margin-top: .5rem;
font-size: .9rem;
font-weight: 600;
color: #333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 167px;
margin-bottom: 6px;
}
.tips_text {
padding: 0 .15rem;
background: #ff8d8d;
color: #fff;
font-size: .4rem;
}
.tips {
font-size: .55rem;
color: #ff8d8d;
line-height: .7rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
background: #fff2f2;
border-radius: .1rem;
padding: .2rem .3rem;
}
.recommend {
margin-top: 1.6rem;
}
.recommend ul {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
.recommend ul li {
width: 5.2rem;
box-shadow: 0px 0px .6rem rgba(0,0,0,0.1);
background: #fff;
border-radius: 1.05rem;
margin-bottom: 1rem;
}
.recommend ul li a {
display: flex;
align-items: center;
justify-content: center;
}
.recommend_active {
background: #fe9b95 !important;
box-shadow: 0px 0px .6rem rgba(255,155,149,0.5) !important;
}
.recommend_active span {
color: #fff !important;
}
.recommend ul li img{
width: .9rem;
height: .9rem;
margin-right: .2rem;
}
.recommend ul li span {
font-size: .6rem;
color: #333;
line-height: 2.1rem;
display: inline-block;
vertical-align: top;
font-weight: 600;
}
.recommend_title {
font-size: 1.25rem;
font-weight: 600;
color: #333;
line-height: 1.8rem;
margin-bottom: .8rem;
padding: 0 0.8rem;
}
.alldo {
margin-top: 10px !important;
}
.do_together_content {
margin-top: 0.5rem;
}
.roll_father {
display: none;
overflow: hidden;
}
.showRoll {
display: block !important;
}
.do_together_item {
margin-right: 0.33rem;
border-radius: 0.3rem;
box-shadow: 0 0.15rem 0.3rem rgb(0 0 0 / 10%);
padding-bottom: 0.6rem;
margin-bottom: 0.6rem;
width: 48%;
float: left;
}
.item_img {
position: relative;
}
.item_padd {
padding-left: .5rem;
padding-right: .5rem;
padding-bottom: .5rem;
box-sizing: border-box;
}
.item_pa {
padding-left: .5rem;
padding-right: .5rem;
}
.item_img img {
width: 100%;
border-top-left-radius: .3rem;
border-top-right-radius: .3rem;
height: 219px;
}
.do_together_item .tips_titles {
font-size: .8rem !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #333;
font-weight: 600;
}
.item_avatr {
display: flex;
justify-content: space-between;
align-items: center;
}
.avatr_left,
.avatr_view{
display: flex;
align-items: center;
}
.avatr_left img {
width: .9rem;
height: .9rem;
margin-right: .25rem;
border-radius: 100%;
}
.avatr_left span {
font-size: .45rem;
color: #666;
}
.avatr_view .icon-yanjing {
font-size: .8rem;
color: #666;
}
.avatr_view span {
font-size: .45rem;
color: #666;
margin-left: .2rem;
}