CartCss.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. body {
  2. /* background-color: transparent; */
  3. position: relative;
  4. margin: 0;
  5. font-family: 'Harmony SC';
  6. min-height: 100px;
  7. background-color: whitesmoke;
  8. }
  9. form {
  10. border-radius: 10px;
  11. /* position: relative; */
  12. width: 100%;
  13. min-height: 100px;
  14. /* min-width: 500px; */
  15. }
  16. form>div.Store {
  17. position: relative;
  18. margin-top: 10px;
  19. margin-left: 15px;
  20. margin-right: 15px;
  21. border-radius: 10px;
  22. background-color: white;
  23. font-size: 16px;
  24. overflow: hidden;
  25. }
  26. /* div#Cartlist>div.Store:last-child
  27. {
  28. margin-bottom: 0;
  29. } */
  30. form>div.Store>* {
  31. border-bottom: 1px solid gainsboro;
  32. }
  33. form>div.Store>*:last-child {
  34. border-bottom: 0;
  35. }
  36. form>div.Store>a#lable {
  37. height: 48px;
  38. line-height: 48px;
  39. display: flex;
  40. justify-items: center;
  41. overflow: hidden;
  42. background-color: transparent;
  43. }
  44. form>div.Store>a#lable>input {
  45. height: 24px;
  46. width: 24px;
  47. margin: 12px;
  48. margin-left: calc(1ch + 12px);
  49. }
  50. form>div.Store>a#lable>div#StoreIcon {
  51. height: 40px;
  52. width: 40px;
  53. margin: 4px;
  54. margin-left: calc(1ch + 4px);
  55. text-align: center;
  56. }
  57. form>div.Store>a#lable>div#StoreIcon>img {
  58. max-width: 100%;
  59. max-height: 100%;
  60. }
  61. form>div.Store>a#lable>h3 {
  62. margin: 0;
  63. }
  64. form>div.Store>div.goods {
  65. height: 96px;
  66. display: flex;
  67. justify-items: center;
  68. overflow: hidden;
  69. background-color: transparent;
  70. }
  71. form>div.Store>div.goods>input {
  72. height: 24px;
  73. min-width: 24px;
  74. margin: 36px;
  75. margin-left: calc(1ch + 12px);
  76. margin-right: calc(1ch + 12px);
  77. }
  78. form>div.Store>div.goods>div#GoodsIcon {
  79. height: 88px;
  80. min-width: 88px;
  81. margin: 4px;
  82. margin-left: calc(1ch + 4px);
  83. text-align: center;
  84. }
  85. form>div.Store>div.goods>div#GoodsIcon>img {
  86. max-width: 100%;
  87. max-height: 100%;
  88. }
  89. form>div.Store>div.goods>div#exp {
  90. position: relative;
  91. margin: 8px;
  92. height: 80px;
  93. width: 100%;
  94. min-width: 200px;
  95. }
  96. form>div.Store>div.goods>div#exp>* {
  97. width: 100%;
  98. margin: 0;
  99. }
  100. form>div.Store>div.goods>div#exp>p {
  101. color: gray;
  102. }
  103. form>div.Store>div.goods>div#exp>h4 {
  104. color: #E33333;
  105. position: absolute;
  106. bottom: 0;
  107. left: 0;
  108. }
  109. form>div.Store>div.goods>div#exp>h4::after {
  110. counter-reset: "$";
  111. color: #E33333;
  112. }
  113. form>div.Store>div.goods>div#exp>div#count {
  114. position: absolute;
  115. width: 25%;
  116. min-width: 16ch;
  117. height: 24px;
  118. border-radius: 10px;
  119. border: 1px solid gray;
  120. margin: 0;
  121. bottom: 0;
  122. right: 0;
  123. display: flex;
  124. overflow: hidden;
  125. }
  126. form>div.Store>div.goods>div#exp>div#count>* {
  127. width: 100%;
  128. height: 100%;
  129. margin: 0;
  130. padding: 0;
  131. border: 0;
  132. outline: 1px solid gray;
  133. text-align: center;
  134. background-color: white;
  135. user-select: none;
  136. }
  137. form>div.Store>div.goods>div#exp>div#count>*:hover {
  138. background-color: gainsboro;
  139. }
  140. form>div.Store>div.goods>div#exp>div#count>*:active {
  141. background-color: gray;
  142. }
  143. form>div#BottomBar {
  144. position: fixed;
  145. bottom: 0;
  146. width: calc(100% - 30px);
  147. padding: 15px;
  148. }
  149. form>div#BottomBar input:nth-of-type(1) {
  150. font-size: 15px;
  151. padding: 10px;
  152. color: #E33333;
  153. background-color: rgb(236, 200, 200);
  154. border: 2px solid #E33333;
  155. }
  156. form>div#BottomBar input:nth-of-type(2) {
  157. font-size: 15px;
  158. color: white;
  159. padding: 10px 30px;
  160. border: 2px solid rgb(82, 40, 236);
  161. background-color: rgb(171, 151, 243);
  162. }
  163. /* form>div#BottomBar input:nth-of-type(1) {
  164. float: right;
  165. } */
  166. form>div#BottomBar>h2#summary {
  167. float: right;
  168. margin: 0;
  169. color: #E33333;
  170. line-height: 30px;
  171. }
  172. form>div#BottomBar>p {
  173. float: right;
  174. margin: 0;
  175. line-height: 30px;
  176. }
  177. @font-face {
  178. font-family: 'Harmony SC';
  179. src: url(../fonts/HarmonyOS_Sans_SC_Medium.ttf);
  180. }