calculator.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* mHome/pages/calculator/calculator.wxss */
  2. .container {
  3. display: flex;
  4. flex-direction: column;
  5. width: 100%;
  6. .cell-view {
  7. display: flex;
  8. border-bottom: 1px solid #f0f0f0;
  9. align-items: center;
  10. margin: 0px 10px;
  11. text {
  12. width: 90px;
  13. text-align: left;
  14. color: #333;
  15. font-size: 22rpx;
  16. }
  17. .content {
  18. display: flex;
  19. flex-direction: row;
  20. flex-wrap: wrap;
  21. width: 100%;
  22. align-content: center;
  23. button {
  24. margin: 5px;
  25. height: 30px;
  26. color: #333;
  27. width: 21.3%;
  28. border-radius: 5px;
  29. }
  30. /* 选中时添加这个 样式 */
  31. .active {
  32. background: #dae9fd;
  33. }
  34. /* 三角形 */
  35. .active::before {
  36. content: '';
  37. display: inline-block;
  38. position: absolute;
  39. right: 0;
  40. bottom: 0;
  41. width: 0;
  42. height: 0;
  43. border-bottom: 15px solid rebeccapurple;
  44. border-left: 14px solid transparent;
  45. }
  46. }
  47. button {
  48. color: #000;
  49. font-size: 22rpx;
  50. }
  51. }
  52. .rate view, .weight view, .discount view {
  53. flex-wrap: nowrap;
  54. text-align: center;
  55. }
  56. .zsshape, .weight, .rate, .discount, .result {
  57. height: 50px
  58. }
  59. .zsclarity, .zscolor {
  60. height: 130px;
  61. }
  62. .buttom_view {
  63. display: flex;
  64. flex-direction: row;
  65. justify-content: space-between;
  66. margin-top: 20px;
  67. button {
  68. width: 70%;
  69. color: white;
  70. background-color: red;
  71. }
  72. }
  73. }