.drug { display: flex; align-items: center; justify-content: space-between; padding: 24rpx 30rpx; // height: 200rpx; border-bottom: 1rpx solid #e5e5e5; } .drug-info { flex-grow: 1 } .drug-name { font-size: 30rpx; font-weight: bold; line-height: 60rpx; } .drug-spec { font-size: 28rpx; line-height: 48rpx; color: #999; } .drug-btn { flex-shrink: 0; font-size: 28rpx; color: $theme-brown-primary; } .drug-btn--unactive { color: #999; } .drug-memo { font-size: 28rpx; line-height: 48rpx; color: #333; } .drug-name-bar { display: flex; justify-content: space-between; align-items: center; } .drug-quantity { flex-shrink: 0; max-width: 200rpx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: $theme-brown-primary; font-size: 32rpx; } .drug-action { display: flex; justify-content: flex-end; padding-top: 10rpx; margin-top: 10rpx; } .drug-action-item { border: 1px solid #e5e5e5; border-radius: 30rpx; font-size: 28rpx; color: #333; height: 48rpx; line-height: 48rpx; padding: 0 40rpx; @at-root &--active { color: $theme-brown-primary; margin-right: 40rpx; border-color: $theme-brown-primary; } }