style.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. *,
  2. *:before,
  3. *:after {
  4. box-sizing: border-box;
  5. }
  6. body {
  7. margin: 0;
  8. height: 100vh;
  9. padding: 10px;
  10. }
  11. main {
  12. display: flex;
  13. flex-wrap: wrap;
  14. width: 100%;
  15. }
  16. aside {
  17. margin-top: 22px;
  18. padding-right: 10px;
  19. }
  20. aside a {
  21. text-decoration: none;
  22. color: white;
  23. background-color: rgb(170, 170, 170);
  24. margin-bottom: 5px;
  25. padding: 5px;
  26. transition: .2s;
  27. cursor: pointer;
  28. }
  29. aside a:hover {
  30. background-color: rgb(133, 133, 133);
  31. }
  32. h1 {
  33. width: 100%;
  34. margin: 10px;
  35. margin-left: 10px;
  36. }
  37. .card {
  38. display: block;
  39. width: calc(25% - 20px);
  40. margin: 10px;
  41. border: 1px solid grey;
  42. padding: 10px;
  43. text-align: center;
  44. text-decoration: none;
  45. color: dimgray;
  46. transition: .2s;
  47. position: relative;
  48. }
  49. .card:hover{
  50. box-shadow: 0px 0px 5px rgba(9, 110, 24, 0.5)
  51. }
  52. .cardImgWrapper{
  53. height: 200px;
  54. display: flex;
  55. justify-content: center;
  56. align-items: center;
  57. margin-bottom: 10px;
  58. }
  59. .cardImg {
  60. display: block;
  61. max-width: 100%;
  62. max-height: 100%;
  63. object-position: 50% 50%;
  64. object-fit: contain;
  65. }
  66. .cardName {
  67. max-width: 100%;
  68. font-size: 1em;
  69. text-decoration: none;
  70. }
  71. .cardPrice {
  72. min-width: 80px;
  73. padding: 5px;
  74. color: white;
  75. background-color: rgba(0, 133, 0, 0.85);
  76. position: absolute;
  77. right: -10px;
  78. top: 40px;
  79. }
  80. .imgSlider {
  81. width: calc(50% - 20px);
  82. padding: 10px
  83. }
  84. .sliderImg {
  85. display: block;
  86. max-width: 100%;
  87. }
  88. .asideDesriptionPriceCard {
  89. width: calc(50% - 20px);
  90. padding: 10px
  91. }
  92. .goodPrice {
  93. color:rgb(38,151,38);
  94. font-weight: bolder;
  95. font-size: 1.5em;
  96. margin-bottom: 20px;
  97. }
  98. .goodCountInput{
  99. padding: 5px;
  100. color: rgb(38,151,38);
  101. width: 150px;
  102. font-weight: bolder;
  103. margin: 10px 20px 20px 0;
  104. border-radius: 0;
  105. }
  106. .goodButtonAddToCart {
  107. display: inline-block;
  108. padding: 6px 10px;
  109. color: white;
  110. background-color: rgb(38,151,38);
  111. width: 150px;
  112. font-weight: bolder;
  113. margin: 10px 20px 20px 0;
  114. transition: .2s;
  115. cursor: pointer;
  116. text-align: center;
  117. }
  118. .goodButtonAddToCart:hover {
  119. background-color: rgb(215, 155, 14);
  120. }
  121. .description {
  122. margin-bottom: 20px;
  123. margin-top: 20px;
  124. font-size: 1.2em;
  125. }
  126. .iconwrapper {
  127. display: block;
  128. width: 50px;
  129. padding: 5px;
  130. position: relative;
  131. color: white;
  132. cursor: pointer;
  133. }
  134. .iconwrapper img {
  135. max-width: 100%;
  136. }
  137. #cartIcon {
  138. position: absolute;
  139. bottom: 13px;
  140. right: -10px;
  141. background-color: rgb(38,151,38);
  142. border-radius: 3px;
  143. padding: 2px;
  144. }
  145. /* .table_price{} */
  146. .table_price {
  147. border-collapse: collapse;
  148. width: 100%;
  149. }
  150. .tdSumm{
  151. color: rgb(38,151,38);
  152. font-size: 1.5rem;
  153. }
  154. .table_price td, .table_price th {
  155. padding: 10px;
  156. }
  157. .table_price th {
  158. text-align: left;
  159. font-size: 18px;
  160. }
  161. .table_price tr:nth-child(2n) {
  162. background: #E5E5E5;
  163. }
  164. .table_price td:last-of-type {
  165. text-align: center;
  166. }
  167. .table_price a {
  168. display: inline-block;
  169. padding: 5px 10px;
  170. background: #F79361;
  171. box-shadow: 2px 2px 0 0 #a22800;
  172. position: relative;
  173. }
  174. .table_price a:hover {
  175. box-shadow: none;
  176. top: 2px;
  177. left: 2px;
  178. }
  179. .addOrder {
  180. padding: 5px 10px;
  181. background-color: #F79361;
  182. color: white;
  183. cursor: pointer;
  184. display: block;
  185. margin-top: 20px;
  186. }
  187. .containerSubcategoryLink {
  188. width: 100%;
  189. }
  190. .subcategoryLink {
  191. display: inline-block;
  192. text-decoration: none;
  193. background-color: rgb(170, 170, 170);
  194. color: white;
  195. padding: 2px 5px;
  196. margin: 10px 3px;
  197. transition: .3s;
  198. }
  199. .subcategoryLink:hover{
  200. background-color: rgb(133, 133, 133);
  201. }
  202. .subcategoryLink:first-child {
  203. margin-left: 10px;
  204. }
  205. .breadcrumbsContainer {
  206. width: 100%;
  207. }
  208. .breadcrumbsContainer >* {
  209. display: inline-block;
  210. margin: 10px 3px;
  211. color: black;
  212. }
  213. .breadcrumbsContainer > div {
  214. color: rgb(189, 189, 189);
  215. font-weight: bolder;
  216. }
  217. .breadcrumbsContainer >a:hover {
  218. color: rgb(38,151,38);
  219. }
  220. #user {
  221. color: white;
  222. font-weight: bold;
  223. }
  224. #user > button {
  225. margin: 5px;
  226. background-color: rgb(247,147,97);
  227. color: white;
  228. transition: .3s;
  229. border: 0;
  230. padding: 3px 5px;
  231. }
  232. #user > button:hover {
  233. background-color: rgb(246, 120, 57);
  234. }