kitchendDevice/assets/common.scss

921 lines
15 KiB
SCSS
Raw Normal View History

2023-09-08 15:17:21 +08:00
page {
font-family: "Microsoft YaHei";
2025-11-08 16:50:26 +08:00
font-size: 28rpx;
2023-09-08 15:17:21 +08:00
color: #333;
background-color: #f7f7f7;
}
2025-03-25 10:17:30 +08:00
.ml-5{
margin-left: 5px !important;
}
2025-11-25 14:21:22 +08:00
.mr-5{
margin-right: 5px !important;
}
2023-09-08 15:17:21 +08:00
.mt-5 {
margin-top: 5px !important;
}
.mt-10 {
2025-11-25 14:21:22 +08:00
margin-top: 20rpx !important;
2023-09-08 15:17:21 +08:00
}
.mt-15 {
2025-11-25 14:21:22 +08:00
margin-top: 30rpx !important;
2023-09-08 15:17:21 +08:00
}
.mt-20 {
2025-11-25 14:21:22 +08:00
margin-top: 40rpx !important;
}
.size12{
font-size: 26rpx !important;
}
.size14{
font-size: 28rpx !important;
2023-09-08 15:17:21 +08:00
}
2025-11-08 16:50:26 +08:00
.size22{
font-size: 36rpx !important;
font-weight: bold !important;
}
2025-11-25 14:21:22 +08:00
.c999{
color: #999 !important;
}
2023-09-08 15:17:21 +08:00
.bold {
font-weight: bold;
}
.overflow {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.btn{
width: auto;
2025-11-25 14:21:22 +08:00
border-radius: 20rpx;
2025-11-08 16:50:26 +08:00
background-color: #45C570;
2023-09-08 15:17:21 +08:00
text-align: center;
2025-11-25 14:21:22 +08:00
height: 80rpx;
line-height: 80rpx;
margin: 30rpx;
2023-09-08 15:17:21 +08:00
}
2025-03-25 10:17:30 +08:00
.endtext{
color: #999;
2025-11-25 14:21:22 +08:00
margin-top: 40rpx;
2025-03-25 10:17:30 +08:00
text-align: center;
2025-11-08 16:50:26 +08:00
width: 100%;
2025-11-25 14:21:22 +08:00
margin-bottom: 30rpx;
2025-11-08 16:50:26 +08:00
}
.quan {
width: 60rpx;
height: 40rpx;
position: relative;
}
.quan::before {
content: "";
position: absolute;
2025-11-25 14:21:22 +08:00
width: 35rpx;
height: 35rpx;
2025-11-08 16:50:26 +08:00
left: 0px;
z-index: 22;
background: #3CB383;
border-radius: 50%;
}
.quan::after {
content: "";
position: absolute;
2025-11-25 14:21:22 +08:00
width: 35rpx;
height: 35rpx;
left: 17rpx;
2025-11-08 16:50:26 +08:00
z-index: 11;
background: #9CDCBF;
border-radius: 50%;
2025-03-25 10:17:30 +08:00
}
2023-09-08 15:17:21 +08:00
// .列表样式
.footlist {
2025-11-25 14:21:22 +08:00
margin: 30rpx 0;
2023-09-08 15:17:21 +08:00
width: 100%;
height: auto;
overflow: hidden;
column-gap: 20rpx;
column-count:2;
// display: flex;
// flex-wrap: wrap;
// justify-content: space-between;
.list {
2025-11-25 14:21:22 +08:00
margin-bottom: 20rpx;
2023-09-08 15:17:21 +08:00
// height: auto;
overflow: auto;
break-inside: avoid;
border-radius: 15rpx;
overflow: hidden;
-webkit-column-break-inside: avoid;
.item {
color: #666;
2025-11-25 14:21:22 +08:00
width: calc(100% - 20rpx);
2023-09-08 15:17:21 +08:00
position: initial;
background: #fff;
border-radius: 0 0 5px 5px;
font-size: 14px;
height: auto;
overflow: hidden;
}
.topimg{
2025-11-08 16:50:26 +08:00
height:320rpx;
2023-09-08 15:17:21 +08:00
overflow: hidden;
position: relative;
}
.img {
2025-03-25 10:17:30 +08:00
width: 100%;
height: 100%;
2023-09-08 15:17:21 +08:00
display: block;
border-radius: 5px 5px 0 0;
}
.zan {
.iconfont {
2025-11-25 14:21:22 +08:00
font-size: 32rpx;
2023-09-08 15:17:21 +08:00
position: inherit !important;
}
}
}
}
.footbox {
2025-11-25 14:21:22 +08:00
// width: calc(100% - 60rpx);
// margin-top: 80rpx;
2025-11-08 16:50:26 +08:00
position: relative;
2023-09-08 15:17:21 +08:00
.item {
position: absolute;
bottom: 0px;
color: #fff;
left: 5px;
right: 5px;
background: #403f3f5c;
padding: 5px;
2025-11-25 14:21:22 +08:00
font-size: 30rpx;
2025-11-08 16:50:26 +08:00
z-index: 999999;
2025-11-25 14:21:22 +08:00
border-radius:0 0 20rpx 20rpx;
2023-09-08 15:17:21 +08:00
.title {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.name {
display: flex;
align-items: center;
2025-11-25 14:21:22 +08:00
font-size: 26rpx;
2023-09-08 15:17:21 +08:00
float: left;
width: 70%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2025-11-25 14:21:22 +08:00
height: 60rpx;
line-height: 60rpx;
2023-09-08 15:17:21 +08:00
image {
2025-11-25 14:21:22 +08:00
width: 50rpx;
height: 50rpx;
2025-03-25 10:17:30 +08:00
border-radius: 50%;
2023-09-08 15:17:21 +08:00
margin-right: 5px;
}
2025-03-25 10:17:30 +08:00
text{
2025-11-25 14:21:22 +08:00
width: calc(100% - 60rpx);
2025-03-25 10:17:30 +08:00
display: inline-block;
}
2023-09-08 15:17:21 +08:00
}
.zan {
width: 30%;
float: left;
2025-11-25 14:21:22 +08:00
font-size: 26rpx;
2023-09-08 15:17:21 +08:00
display: flex;
align-items: center;
height: auto;
overflow: auto;
2025-11-25 14:21:22 +08:00
height: 60rpx;
line-height: 60rpx;
2025-03-25 10:17:30 +08:00
justify-content: flex-end;
2023-09-08 15:17:21 +08:00
.iconfont {
display: flex;
align-items: center;
position: absolute;
2025-11-25 14:21:22 +08:00
right: 30rpx;
bottom: 20rpx;
2023-09-08 15:17:21 +08:00
text-align: right;
z-index: 99;
2025-03-25 10:17:30 +08:00
margin-right: 5px;
2023-09-08 15:17:21 +08:00
}
}
.icon-icon3 {
2025-03-25 10:17:30 +08:00
color: $maincolor;
2023-09-08 15:17:21 +08:00
}
}
}
// 菜谱左侧导航
.menu {
2025-11-25 14:21:22 +08:00
width: calc(100% - 60rpx);
2023-09-08 15:17:21 +08:00
height: auto;
overflow: hidden;
.left {
position: absolute;
left: 0;
width: 100px;
bottom: 0;
top: 55px;
2025-11-25 14:21:22 +08:00
line-height: 100rpx;
2023-09-08 15:17:21 +08:00
font-size: 14px;
font-weight: bold;
overflow-y: scroll;
2025-07-28 16:57:16 +08:00
overflow-x: hidden;
2023-09-08 15:17:21 +08:00
height: calc(100vh - 70px);
.name {
2025-11-25 14:21:22 +08:00
padding-left: 30rpx;
2025-07-28 16:57:16 +08:00
white-space: nowrap;
overflow-x: auto;
width: 160rpx;
font-size: 26rpx;
2023-09-08 15:17:21 +08:00
}
2025-07-28 16:57:16 +08:00
.name::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
2023-09-08 15:17:21 +08:00
.active {
2025-03-25 10:17:30 +08:00
color: $maincolor;
2023-09-08 15:17:21 +08:00
background-color: #FFF;
2025-03-25 10:17:30 +08:00
border-left: 5px solid $maincolor;
2023-09-08 15:17:21 +08:00
}
}
.right {
position: absolute;
left: 100px;
right: 0;
top: 55px;
bottom: 0;
2025-11-25 14:21:22 +08:00
padding-bottom: 30rpx;
2023-09-08 15:17:21 +08:00
height: calc(100vh - 70px);
overflow-y: scroll;
background: #fff;
icon {
font-size: 14px;
}
.right_list {
2025-11-25 14:21:22 +08:00
padding: 0 20rpx;
2023-09-08 15:17:21 +08:00
.title {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
2025-11-25 14:21:22 +08:00
line-height: 100rpx;
2023-09-08 15:17:21 +08:00
font-weight: bold;
}
.list {
2025-07-28 16:57:16 +08:00
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
2023-09-08 15:17:21 +08:00
image {
width: 140rpx;
height: 140rpx;
2025-11-25 14:21:22 +08:00
border-radius: 20rpx;
2023-09-08 15:17:21 +08:00
}
text {
display: block;
text-align: center;
2025-11-25 14:21:22 +08:00
margin-bottom: 20rpx;
2023-09-08 15:17:21 +08:00
}
}
}
}
}
// 添加食谱
.addFood {
.title,
.textarea {
2025-11-25 14:21:22 +08:00
width: calc(100% - 40rpx);
margin-bottom: 20rpx;
2023-09-08 15:17:21 +08:00
background: #fff;
2025-11-25 14:21:22 +08:00
padding: 0 20rpx;
border-radius: 20rpx;
2023-09-08 15:17:21 +08:00
}
.food,
.step {
2025-11-25 14:21:22 +08:00
width: calc(100% - 40rpx);
margin-bottom: 20rpx;
2023-09-08 15:17:21 +08:00
background: #fff;
2025-11-25 14:21:22 +08:00
padding: 20rpx;
border-radius: 20rpx;
2023-09-08 15:17:21 +08:00
.h4 {
2025-11-25 14:21:22 +08:00
height: 60rpx;
line-height: 60rpx;
2023-09-08 15:17:21 +08:00
font-size: 14px;
display: flex;
font-weight: bold;
justify-content: space-between;
text {
font-size: 14px;
border: 1px solid #dfdfdf;
2025-11-25 14:21:22 +08:00
border-radius: 30rpx;
padding: 0 40rpx;
2023-09-08 15:17:21 +08:00
}
}
.foodlist {
column-count: 1;
.item {
display: flex;
justify-content: space-between;
2025-11-25 14:21:22 +08:00
width: calc(100% - 40rpx);
2023-09-08 15:17:21 +08:00
background: #f7f7f7;
2025-11-25 14:21:22 +08:00
border-radius: 20rpx;
padding: 8px 20rpx;
margin-top: 20rpx;
2023-09-08 15:17:21 +08:00
}
.name {
width: 30%;
border-right: 1px solid #999;
2025-11-25 14:21:22 +08:00
margin-right: 30rpx;
2023-09-08 15:17:21 +08:00
}
.input {
width: 30%;
display: flex;
align-items: center;
}
}
.edit {
width: 30%;
display: flex;
align-items: center;
2025-09-04 17:33:41 +08:00
justify-content: center;
2023-09-08 15:17:21 +08:00
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;
2025-03-25 10:17:30 +08:00
background: $maincolor;
2025-11-25 14:21:22 +08:00
margin-top: 30rpx;
border-radius: 20rpx;
2023-09-08 15:17:21 +08:00
color: #fff;
}
}
.step {
.top {
display: flex;
justify-content: space-between;
2025-11-25 14:21:22 +08:00
margin: 20rpx 0;
2023-09-08 15:17:21 +08:00
font-size: 14px;
font-weight: bold;
}
.textarea {
2025-11-25 14:21:22 +08:00
margin-top: 20rpx;
2023-09-08 15:17:21 +08:00
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;
2025-11-25 14:21:22 +08:00
border-radius: 20rpx;
margin-bottom: 30rpx;
2023-09-08 15:17:21 +08:00
}
.subbtn {
color: #fff;
2025-03-25 10:17:30 +08:00
border-color: $maincolor;
background-color: $maincolor;
2023-09-08 15:17:21 +08:00
}
}
}
// 弹框
.wrapper {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
2025-04-02 09:49:39 +08:00
z-index: 9990;
2023-09-08 15:17:21 +08:00
.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;
2025-11-25 14:21:22 +08:00
padding-bottom: 100rpx;
2023-09-08 15:17:21 +08:00
.item {
2025-11-25 14:21:22 +08:00
width: calc(100% - 40rpx);
2023-09-08 15:17:21 +08:00
display: flex;
justify-content: space-between;
2025-11-25 14:21:22 +08:00
height: 66rpx;
2023-09-08 15:17:21 +08:00
align-items: center;
padding-bottom: 5px;
2025-11-25 14:21:22 +08:00
padding: 5px 20rpx;
2023-09-08 15:17:21 +08:00
border-bottom: 1px solid #dfdfdf;
text {
width: 40%;
}
icon {
2025-03-25 10:17:30 +08:00
color: $maincolor;
2025-11-25 14:21:22 +08:00
font-size: 32rpx;
2023-09-08 15:17:21 +08:00
}
}
}
.box {
background-color: #fff;
position: absolute;
2025-11-08 16:50:26 +08:00
top:15%;
2023-09-08 15:17:21 +08:00
left: 0;
right: 0;
bottom: 0;
2025-11-25 14:21:22 +08:00
padding: 20rpx;
border-radius: 20rpx 20rpx 0 0;
2023-09-08 15:17:21 +08:00
.title {
display: flex;
justify-content: space-between;
.cancel {
2025-11-25 14:21:22 +08:00
width: 160rpx;
2023-09-08 15:17:21 +08:00
display: flex;
justify-content: flex-end;
}
}
.weight {
width: auto;
display: flex;
2025-11-25 14:21:22 +08:00
font-size: 26rpx;
2023-09-08 15:17:21 +08:00
background: $uni-color-warning;
2025-11-25 14:21:22 +08:00
border-radius: 20rpx;
2023-09-08 15:17:21 +08:00
color: #fff;
padding: 3px 8px;
align-items: center;
icon {
margin-right: 5px;
}
}
.name {
width: 100%;
text-align: center;
2025-11-25 14:21:22 +08:00
font-size: 32rpx;
2023-09-08 15:17:21 +08:00
font-weight: bold;
2025-11-25 14:21:22 +08:00
// margin-top:-30rpx
2023-09-08 15:17:21 +08:00
}
.val {
text-align: center;
2025-11-25 14:21:22 +08:00
margin: 30rpx 0;
2023-09-08 15:17:21 +08:00
text {
display: inline-block;
2025-11-25 14:21:22 +08:00
width:160rpx;
2023-09-08 15:17:21 +08:00
border-bottom: 1px solid #dfdfdf;
2025-11-25 14:21:22 +08:00
font-size: 44rpx;
2023-09-08 15:17:21 +08:00
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;
2025-11-25 14:21:22 +08:00
font-size: 36rpx;
2023-09-08 15:17:21 +08:00
display: flex;
justify-content: center;
align-items: center;
}
}
.text {
font-size: 14px !important;
}
}
image {
2025-11-25 14:21:22 +08:00
width: 50rpx;
height: 50rpx;
2023-09-08 15:17:21 +08:00
}
.MymaskList2 {
width: 22%;
display: flex;
flex-direction: column;
justify-content: space-between;
position: absolute;
2025-11-25 14:21:22 +08:00
right: 20rpx;
top: 20rpx;
bottom: 30rpx;
2023-09-08 15:17:21 +08:00
.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;
2025-03-25 10:17:30 +08:00
background-color: $maincolor;
2023-09-08 15:17:21 +08:00
}
.close {
2025-11-25 14:21:22 +08:00
width: 64rpx;
height: 40rpx;
2023-09-08 15:17:21 +08:00
}
}
}
@keyframes mytreat {
/*开始画面*/
0% {
background-color: #000;
}
50% {
background: none;
}
100% {
background-color: #000;
}
}
}
2025-03-25 10:17:30 +08:00
.nolist {
width: 100%;
2025-11-25 14:21:22 +08:00
padding-top: 100rpx;
2025-03-25 10:17:30 +08:00
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
icon {
2025-11-25 14:21:22 +08:00
font-size: 140rpx !important;
2025-03-25 10:17:30 +08:00
color: #ccc;
}
text {
display: inline-block;
width: 100%;
text-align: center;
}
2025-11-25 14:21:22 +08:00
}
.foodDetail {
background-color: #F7F7F7;
padding: 20rpx;
box-sizing: border-box;
.foodInfo {
display: flex;
width: 100%;
padding: 30rpx;
border-radius: 20rpx;
box-sizing: border-box;
background-color: #fff;
box-sizing: 0 0 20rpx #f1f1f1;
image {
width: 90rpx;
height: 90rpx;
border-radius: 15rpx;
}
.info {
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 30rpx;
.name {
font-size: 28rpx;
font-weight: 700;
margin-bottom: 10rpx;
}
.kcal {
width: 100% !important;
font-size: 26rpx;
color: #666;
padding: 0 !important;
margin: 0 !important;
}
}
}
.foodContent {
width: 100%;
padding: 30rpx;
margin-top: 16rpx;
box-sizing: border-box;
border-radius: 20rpx;
box-sizing: border-box;
background-color: #fff;
box-sizing: 0 0 20rpx #f1f1f1;
.title {
font-size: 28rpx;
font-weight: 600;
}
.progress {
display: flex;
align-items: center;
.chart-wrap {
position: relative;
width: 280rpx;
height: 280rpx;
margin-top: -30rpx;
margin-left: -20px;
// .uchart-kcal {
// position: absolute;
// left: 60rpx;
// top: 120rpx;
// width: 130rpx;
// font-size: 40rpx;
// text-align: center;
// z-index: 9;
// }
}
.info {
display: flex;
flex-direction: column;
justify-content: space-between;
font-size: 26rpx;
height: 200rpx;
.info-item {
display: flex;
align-items: center;
margin-top: 20rpx;
.color {
width: 6rpx;
height: 20rpx;
margin-right: 10rpx;
border-radius: 3rpx;
}
}
}
}
.tips {
display: flex;
justify-content: space-between;
border-bottom: 1px solid #f1f1f1;
padding: 16rpx 0;
font-size: 26rpx;
margin-top: 10rpx;
}
.foodDetailList {
margin-top: 10rpx;
.foodDetailItem {
display: flex;
justify-content: space-between;
padding: 20rpx 0;
box-sizing: border-box;
.name {
font-size: 26rpx;
color: #777;
}
.val {
font-size: 26rpx;
font-weight: 700;
color: #333;
}
}
}
}
}
.jishiqi {
margin-top: 30rpx;
.left {
float: left;
width: 270rpx;
height: 320rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
.center {
border: none;
width: 280rpx;
height: 210rpx;
position: absolute;
top: 64rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text {
font-size: 40rpx;
font-weight: bold;
margin: 20rpx 0;
}
}
.mubiao {
width: 100%;
margin-top: 32rpx;
text-align: center;
font-size: 26rpx;
text {
font-weight: bold;
color: $maincolor;
}
}
}
.right {
width: calc(100% - 290rpx);
display: flex;
flex-direction: column;
float: left;
height: 300rpx;
margin-left: 20rpx;
margin-top: 10px;
justify-content: space-between;
.item {
width: 100%;
font-size: 26rpx;
image{
width: 40rpx;
height: 40rpx;
}
.left-icon {
width: 90rpx;
float: left;
height: 80rpx;
display: flex;
align-items: center;
flex-direction: column;
justify-content: space-between;
}
.right-info {
width: calc(100% - 100rpx);
float: left;
height: 74rpx;
margin-left: 5px;
display: flex;
flex-direction: column;
justify-content: space-between;
.right-info-top {
width: 100%;
display: flex;
justify-content: space-between;
}
.right-info-bottom {
width: 100%;
height: 8px;
background-color: #f3f7f5;
border-radius: 5px;
position: relative;
.val {
width: 45%;
position: absolute;
left: 0;
top: 0;
z-index: 9;
height: 16rpx;
border-radius: 5px;
}
}
}
}
}
2025-03-25 10:17:30 +08:00
}