cube.wxss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. .rubik-cube {
  2. overflow: hidden;
  3. padding: 20rpx;
  4. /* display: flex;
  5. flex-wrap: wrap; */
  6. }
  7. .rubik-cube .item {
  8. float: left;
  9. text-align: center;
  10. line-height: 0;
  11. box-sizing: border-box;
  12. }
  13. .rubik-cube .item image {
  14. width: 100%;
  15. max-width: 100%;
  16. /* max-height: 388rpx; */
  17. }
  18. .rubik-cube .item.row1-of2 {
  19. width: 50%;
  20. padding-bottom: 0!important;
  21. padding-top: 0!important;
  22. }
  23. .rubik-cube .item.row1-of2:nth-child(1) {
  24. padding-left: 0!important;
  25. }
  26. .rubik-cube .item.row1-of2:nth-child(2) {
  27. padding-right: 0!important;
  28. }
  29. .rubik-cube .item.row1-of3 {
  30. width: 33.33%;
  31. padding-bottom: 0!important;
  32. padding-top: 0!important;
  33. }
  34. .rubik-cube .item.row1-of3:nth-child(1) {
  35. padding-left: 0!important;
  36. }
  37. .rubik-cube .item.row1-of3:nth-child(3) {
  38. padding-right: 0!important;
  39. }
  40. .rubik-cube .item.row1-of4 {
  41. width: 25%;
  42. padding-bottom: 0!important;
  43. padding-top: 0!important;
  44. }
  45. .rubik-cube .item.row1-of4:nth-child(1) {
  46. padding-left: 0!important;
  47. }
  48. .rubik-cube .item.row1-of4:nth-child(4) {
  49. padding-right: 0!important;
  50. }
  51. .rubik-cube .item.row2-lt-of2-rt {
  52. width: 50%;
  53. display: inline-block;
  54. }
  55. .rubik-cube .item.row2-lt-of2-rt:nth-child(1) {
  56. padding-left: 0!important;
  57. padding-top: 0!important;
  58. }
  59. .rubik-cube .item.row2-lt-of2-rt:nth-child(2) {
  60. padding-right: 0!important;
  61. padding-top: 0!important;
  62. }
  63. .rubik-cube .item.row2-lt-of2-rt:nth-child(3) {
  64. padding-left: 0!important;
  65. padding-bottom: 0!important;
  66. }
  67. .rubik-cube .item.row2-lt-of2-rt:nth-child(4) {
  68. padding-right: 0!important;
  69. padding-bottom: 0!important;
  70. }
  71. .rubik-cube .item.row1-lt-of2-rt {
  72. width: 50%;
  73. }
  74. .rubik-cube .item.row1-lt-of2-rt:nth-child(1) {
  75. width: 48%;
  76. padding-left: 0!important;
  77. padding-top: 0!important;
  78. }
  79. .rubik-cube .item.row1-lt-of2-rt:nth-child(2) {
  80. float: right;
  81. padding-top: 0!important;
  82. padding-right: 0!important;
  83. }
  84. .rubik-cube .item.row1-lt-of2-rt:nth-child(3) {
  85. float: right;
  86. padding-bottom: 0!important;
  87. padding-right: 0!important;
  88. }
  89. .rubik-cube .item.row1-tp-of2-bm:nth-child(1) {
  90. width: 100%;
  91. padding-left: 0!important;
  92. padding-top: 0!important;
  93. padding-right: 0!important;
  94. }
  95. .rubik-cube .item.row1-tp-of2-bm:nth-child(2) {
  96. padding-left: 0!important;
  97. }
  98. .rubik-cube .item.row1-tp-of2-bm:nth-child(3) {
  99. padding-right: 0!important;
  100. }
  101. .rubik-cube .item.row1-tp-of2-bm:nth-child(2),
  102. .rubik-cube .item.row1-tp-of2-bm:nth-child(3) {
  103. width: 50%;
  104. padding-bottom: 0!important;
  105. }
  106. .rubik-cube .item.row1-lt-of1-tp-of2-bm:nth-child(1) {
  107. width: 50%;
  108. padding-left: 0!important;
  109. padding-top: 0!important;
  110. padding-bottom: 0!important;
  111. }
  112. .rubik-cube .item.row1-lt-of1-tp-of2-bm:nth-child(2) {
  113. width: 50%;
  114. padding-right: 0!important;
  115. padding-top: 0!important;
  116. }
  117. .rubik-cube .item.row1-lt-of1-tp-of2-bm:nth-child(3) {
  118. /* padding-left: 0!important; */
  119. }
  120. .rubik-cube .item.row1-lt-of1-tp-of2-bm:nth-child(4) {
  121. /* padding-right: 0!important; */
  122. }
  123. .rubik-cube .item.row1-lt-of1-tp-of2-bm:nth-child(3),
  124. .rubik-cube .item.row1-lt-of1-tp-of2-bm:nth-child(4) {
  125. width: 25%;
  126. padding-bottom: 0!important;
  127. }