kitchendDevice/assets/common.scss

643 lines
10 KiB
SCSS

page {
font-family: "Microsoft YaHei";
font-size: 14px;
color: #333;
background-color: #f7f7f7;
}
.ml-5{
margin-left: 5px !important;
}
.mt-5 {
margin-top: 5px !important;
}
.mt-10 {
margin-top: 10px !important;
}
.mt-15 {
margin-top: 15px !important;
}
.mt-20 {
margin-top: 20px !important;
}
.bold {
font-weight: bold;
}
.overflow {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.btn{
width: auto;
border-radius: 10px;
background-color: #f0ae43;
text-align: center;
height: 40px;
line-height: 40px;
margin: 15px;
}
.endtext{
color: #999;
margin-top: 20px;
text-align: center;
}
// .列表样式
.footlist {
margin: 15px 0;
width: 100%;
height: auto;
overflow: hidden;
column-gap: 20rpx;
column-count:2;
// display: flex;
// flex-wrap: wrap;
// justify-content: space-between;
.list {
margin-bottom: 10px;
// height: auto;
overflow: auto;
break-inside: avoid;
border-radius: 15rpx;
overflow: hidden;
-webkit-column-break-inside: avoid;
.item {
color: #666;
width: calc(100% - 10px);
position: initial;
background: #fff;
border-radius: 0 0 5px 5px;
font-size: 14px;
height: auto;
overflow: hidden;
}
.topimg{
width: 335rpx;
height: 370rpx;
overflow: hidden;
position: relative;
}
.img {
width: 100%;
height: 100%;
display: block;
border-radius: 5px 5px 0 0;
}
.zan {
.iconfont {
font-size: 16px;
position: inherit !important;
}
}
}
.list:nth-of-type(2n) {
.topimg {
height: 300rpx;
display: flex;
align-items: center;
justify-content: center;
}
}
}
.footbox {
width: calc(100% - 30px);
margin-top: 40px;
.item {
position: absolute;
bottom: 0px;
color: #fff;
left: 5px;
right: 5px;
background: #403f3f5c;
padding: 5px;
font-size: 15px;
border-radius:0 0 10px 10px;
.title {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.name {
display: flex;
align-items: center;
font-size: 12px;
float: left;
width: 70%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 30px;
line-height: 30px;
image {
width: 25px;
height: 25px;
border-radius: 50%;
margin-right: 5px;
}
text{
width: calc(100% - 30px);
display: inline-block;
}
}
.zan {
width: 30%;
float: left;
font-size: 12px;
display: flex;
align-items: center;
height: auto;
overflow: auto;
height: 30px;
line-height: 30px;
justify-content: flex-end;
.iconfont {
display: flex;
align-items: center;
position: absolute;
right: 15px;
bottom: 10px;
text-align: right;
z-index: 99;
margin-right: 5px;
}
}
.icon-icon3 {
color: $maincolor;
}
}
}
// 菜谱左侧导航
.menu {
width: calc(100% - 30px);
height: auto;
overflow: hidden;
.left {
position: absolute;
left: 0;
width: 100px;
bottom: 0;
top: 55px;
line-height: 45px;
font-size: 14px;
font-weight: bold;
overflow-y: scroll;
overflow-x: hidden;
height: calc(100vh - 70px);
.name {
padding-left: 15px;
white-space: nowrap;
overflow-x: auto;
width: 160rpx;
font-size: 26rpx;
}
.name::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
.active {
color: $maincolor;
background-color: #FFF;
border-left: 5px solid $maincolor;
}
}
.right {
position: absolute;
left: 100px;
right: 0;
top: 55px;
bottom: 0;
padding-bottom: 15px;
height: calc(100vh - 70px);
overflow-y: scroll;
background: #fff;
icon {
font-size: 14px;
}
.right_list {
padding: 0 10px;
.title {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
line-height: 45px;
font-weight: bold;
}
.list {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
image {
width: 140rpx;
height: 140rpx;
border-radius: 10px;
}
text {
display: block;
text-align: center;
margin-bottom: 10px;
}
}
}
}
}
// 添加食谱
.addFood {
.title,
.textarea {
width: calc(100% - 20px);
margin-bottom: 10px;
background: #fff;
padding: 0 10px;
border-radius: 10px;
}
.food,
.step {
width: calc(100% - 20px);
margin-bottom: 10px;
background: #fff;
padding: 10px;
border-radius: 10px;
.h4 {
height: 30px;
line-height: 30px;
font-size: 14px;
display: flex;
font-weight: bold;
justify-content: space-between;
text {
font-size: 14px;
border: 1px solid #dfdfdf;
border-radius: 15PX;
padding: 0 20px;
}
}
.foodlist {
column-count: 1;
.item {
display: flex;
justify-content: space-between;
width: calc(100% - 20px);
background: #f7f7f7;
border-radius: 10px;
padding: 8px 10px;
margin-top: 10px;
}
.name {
width: 30%;
border-right: 1px solid #999;
margin-right: 15px;
}
.input {
width: 30%;
display: flex;
align-items: center;
}
}
.edit {
width: 30%;
display: flex;
align-items: center;
justify-content: center;
icon {
display: flex;
margin-right: 5px;
color: $uni-color-warning;
}
image {
width: 18px;
height: 18px;
margin: 0 5px;
}
.shang {
transform: rotate(180deg);
}
}
.add {
width: 100%;
text-align: center;
height: 35px;
line-height: 35px;
background: $maincolor;
margin-top: 15px;
border-radius: 10px;
color: #fff;
}
}
.step {
.top {
display: flex;
justify-content: space-between;
margin: 10px 0;
font-size: 14px;
font-weight: bold;
}
.textarea {
margin-top: 10px;
background-color: #f7f7f7;
}
.add {
color: #000;
background-color: #fff;
border: 1px solid #f0ad4e;
}
}
.groupbtn {
width: 100%;
margin-top: 5px;
display: flex;
justify-content: space-between;
align-items: center;
view {
width: 45%;
background-color: #fff;
border: 1px solid #f0ad4e;
text-align: center;
height: 35px;
line-height: 35px;
border-radius: 10px;
margin-bottom: 15px;
}
.subbtn {
color: #fff;
border-color: $maincolor;
background-color: $maincolor;
}
}
}
// 弹框
.wrapper {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 9990;
.bg {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.4);
z-index: 99;
}
.list {
width: 100%;
max-height: 300px;
display: flex;
flex-wrap: wrap;
overflow: scroll;
padding-bottom: 50px;
.item {
width: calc(100% - 20px);
display: flex;
justify-content: space-between;
height: 33px;
align-items: center;
padding-bottom: 5px;
padding: 5px 10px;
border-bottom: 1px solid #dfdfdf;
text {
width: 40%;
}
icon {
color: $maincolor;
font-size: 16px;
}
}
}
.box {
background-color: #fff;
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 10px;
height: 630rpx;
border-radius: 10px 10px 0 0;
.title {
display: flex;
justify-content: space-between;
.cancel {
width: 80px;
display: flex;
justify-content: flex-end;
}
}
.weight {
width: auto;
display: flex;
font-size: 24rpx;
background: $uni-color-warning;
border-radius: 10px;
color: #fff;
padding: 3px 8px;
align-items: center;
icon {
margin-right: 5px;
}
}
.name {
width: 100%;
text-align: center;
font-size: 16px;
font-weight: bold;
// margin-top:-15px
}
.val {
text-align: center;
margin: 15px 0;
text {
display: inline-block;
width: 80px;
border-bottom: 1px solid #dfdfdf;
font-size: 22px;
font-weight: bold;
text-align: center;
}
}
}
.mybrankmask {
width: 100%;
height: 390rpx;
background-color: #EBEEF5;
position: fixed;
z-index: 999;
left: 0;
bottom: 0;
.MymaskAll {
width: 74%;
.MymaskList {
display: flex;
width: 100%;
justify-content: space-around;
margin-top: 20rpx;
.maskListItem {
width: 29%;
height: 70rpx;
background-color: #fff;
border-radius: 10rpx;
font-size: 18px;
display: flex;
justify-content: center;
align-items: center;
}
}
.text {
font-size: 14px !important;
}
}
image {
width: 25px;
height: 25px;
}
.MymaskList2 {
width: 22%;
display: flex;
flex-direction: column;
justify-content: space-between;
position: absolute;
right: 10px;
top: 10px;
bottom: 15px;
.maskListItem {
width: 100%;
background: #fff;
height: 70rpx;
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
}
.width48 {
color: #fff;
height: 152rpx;
line-height: 152rpx;
background-color: $maincolor;
}
.close {
width: 32px;
height: 20px;
}
}
}
@keyframes mytreat {
/*开始画面*/
0% {
background-color: #000;
}
50% {
background: none;
}
100% {
background-color: #000;
}
}
}
.nolist {
width: 100%;
padding-top: 50px;
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
icon {
font-size: 70px !important;
color: #ccc;
}
text {
display: inline-block;
width: 100%;
text-align: center;
}
}