shopping_list.less 2.6 KB
@import "m/var";
.shoppingList{
	background-color: #F5F5F5;
	.m-page{
		padding-bottom: 132px;
	}
	.m-table-view{
		padding: 0 10px;
		box-sizing: border-box;
		border-bottom: 1px solid #ddd;
	}
	.m-radio{
		float: left;
		margin-right: 15px;
	}
	.cell-extend-pic{
		.m-radio{
			margin-top: 20px;
		}
	}
	.edit, .done{
		color: #666;
		font-size: 12px;
	}
	.edit{
		display: block;
	}
	.done{
		display: none;
	}
	.cell{
		padding: 11px 0 11px 5px;
		&:last-child{
			border-bottom: none;
		}
	}
	.m-input{
		border: 1px solid #ddd;
		border-radius: 2px;
		padding: 3px 8px;
		width: 74px;
		display: block;
	}
	.remove{
		position: absolute;
		right: 0;
		bottom: 20px;
		width: 20px;
		height: 20px;
		font-size: 0;
		overflow: hidden;
		background: url("@{iconURI}remove@2x.png") center center no-repeat;
		background-size: 20px;
	}
	.cell-extend-pic{
		// padding: 10px 75px 10px 110px;
		padding: 15px 0 15px 5px;
		.m-radio{
			// margin-left: -105px;
		}
		.pic{
			margin: 0;
			margin-right: 10px;
		}
		.title, .detail{
			margin: 0 60px 0 105px;
			display: block;
		}
		.text{
			right: -10px;
			padding-right: 10px;
			em{
				display: inline;
				font-style: normal;
			}
		}
	}
	
	.extend{
		float: right;
		display: none;
		.m-input-number{
			float: right;
		}
		.m-btn{
			font-size: 12px;
			width: 40px;
			float: right;
			margin-left: 10px;
		}
		.fav{
			line-height: 1.5;
			padding: 12px 0;
		}
		.remove{
			line-height: 60px;
		}
	}
	// .edit-mode{
	// 	.extend{
	// 		display: block;
	// 	}
	// 	.m-radio{
	// 		display: none;
	// 	}
	// 	.cell-extend-pic {
	// 		.title, .text, .detail{
	// 		display: none;
	// 		}
	// 	}
	// 	.edit{
	// 		display: none;
	// 	}
	// 	.done{
	// 		display: block;
	// 	}
	// }
	.m-footer{
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, .9);
		padding: 12px;
		border-top: 1px solid #ddd;

		.total{
			float: left;
			line-height: 45px;
			font-size: 16px;
			color: #FA4535;
			font-weight: 700;
			text-align: left;
			em{
				display: inline;
				font-style: normal;
			}
		}

		.btn-success{
			float: right;
			min-width: 100px;
		}
	}
	.expi{
		position: absolute;
		left: 0;
		right: 0;
		top: -52px;
		color: #FFF;
		background-color: #aaa;
		line-height: 40px;
		padding: 0 10px;
		&:before, &:after{
			content: '';
			position: absolute;
			right: 7px;
			top: 50%;
			width: 0;
			height: 0;
			margin-top: -8px;
			font-size: 0;
			overflow: hidden;
			border: 8px solid #000;
			border-color: transparent transparent transparent #FFF; 
		}
		&:after{
			margin-right: 2px;
			border-color: transparent transparent transparent #aaa;
		}
	}
}