calculator.less 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* mHome/pages/calculator/calculator.wxss */
  2. .container {
  3. display: flex;
  4. flex-direction: row;
  5. width: 100%;
  6. align-items: flex-start;
  7. }
  8. .shape {
  9. width: 16%;
  10. }
  11. .shape-item, .color-item, .neatness-item {
  12. display: grid;
  13. align-items: center;
  14. align-content: center;
  15. justify-content: center;
  16. text-align: center;
  17. border-bottom: 1px solid #ccc;
  18. border-right: 1px solid #ccc;
  19. height: 90px;
  20. text {
  21. margin-top: 5px;
  22. font-size: 22rpx;
  23. color: #333;
  24. }
  25. }
  26. .color, .neatness {
  27. width: 13%;
  28. font-size: 14px;
  29. }
  30. .calculator {
  31. display: flex;
  32. flex-wrap: wrap;
  33. flex-direction: row;
  34. width: 58%;
  35. height: 370px;
  36. view {
  37. width: 50%;
  38. height: 100px;
  39. display: grid;
  40. align-content: center;
  41. border-bottom: 1px solid #ddd;
  42. justify-content: start;
  43. text {
  44. margin: 10px;
  45. color: #333;
  46. }
  47. }
  48. }
  49. input {
  50. margin: 0px 0px 0px 10px;
  51. background-color: white;
  52. height: 40px;
  53. font-size: 14px;
  54. }
  55. .calculator view text:nth-child(1) {
  56. font-size: 13px;
  57. height: 15px;
  58. }
  59. .calculator view text:nth-child(2) {
  60. font-size: 16px;
  61. color: #333;
  62. height: 10px;
  63. }
  64. .calculator view text:nth-child(3) {
  65. font-size: 12px;
  66. color: #999;
  67. height: 15px;
  68. }