style.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. html {
  2. box-sizing: border-box;
  3. }
  4. body {
  5. margin: 0;
  6. }
  7. a {
  8. text-decoration: none;
  9. font-size: 18px;
  10. text-align: center;
  11. justify-content: center;
  12. }
  13. a:hover {
  14. color: red;
  15. }
  16. img {
  17. max-width: 50%;
  18. }
  19. img:hover{
  20. transform: scale(1.05);
  21. transform-origin:bottom;
  22. }
  23. button {
  24. text-align: center;
  25. min-width: 70px;
  26. background-color: white;
  27. }
  28. button:hover {
  29. opacity: 90%;
  30. }
  31. h3,h4 {
  32. font-family: 'Montserrat', sans-serif;
  33. color: royalblue;
  34. }
  35. h1 {
  36. color: purple;
  37. }
  38. .header {
  39. position: relative;
  40. display: flex;
  41. justify-content: space-around;
  42. align-items: center;
  43. width: 100vw;
  44. height: 100px;
  45. background-color: purple;
  46. }
  47. #loginName {
  48. background-image: url(user-128.png);
  49. background-size: 67px;
  50. min-height: 50px;
  51. min-width: 80px;
  52. display: flex;
  53. justify-content: flex-end;
  54. color: aliceblue;
  55. }
  56. .cartIcon {
  57. background-image: url(normBasket.png);
  58. background-size: 50px;
  59. min-height: 50px;
  60. min-width: 50px;
  61. display: flex;
  62. justify-content: flex-end;
  63. color: aliceblue;
  64. }
  65. .cartIcon:hover {
  66. transform: scale(1.2);
  67. transform-origin:bottom;
  68. }
  69. #mainContainer {
  70. display: flex;
  71. }
  72. #main {
  73. width: 70%;
  74. height: auto;
  75. border-left: 1px solid silver;
  76. }
  77. #mainCard{
  78. display: flex;
  79. justify-content: center;
  80. align-items: center;
  81. flex-wrap: wrap;
  82. flex-direction: column;
  83. padding: 3% 10%;
  84. }
  85. #divMain {
  86. display: flex;
  87. justify-content: center;
  88. align-items: center;
  89. flex-wrap: wrap;
  90. flex-direction: column;
  91. }
  92. .Cart{
  93. margin-top: 3vh;
  94. padding: 3% 1%;
  95. width: 50%;
  96. text-align: center;
  97. }
  98. .Cart img {
  99. max-width: 20%;
  100. }
  101. .Cart input,button {
  102. text-align: center;
  103. border: 1px solid purple;
  104. margin-left: 5px;
  105. }
  106. .cartResult {
  107. display: flex;
  108. flex-direction: column;
  109. justify-content: center;
  110. align-items: center;
  111. text-align: center;
  112. width: 150px;
  113. background-color: azure;
  114. color: green;
  115. border: 1px solid purple;
  116. padding: 1%;
  117. }
  118. .history {
  119. padding: 2%;
  120. text-align: center;
  121. width: 60%;
  122. margin-top: 1%;
  123. }
  124. #aside {
  125. padding-top: 2%;
  126. flex-direction: column;
  127. width: 30%;
  128. }
  129. .asideLink {
  130. padding: 3% 15% 0 15%;
  131. }
  132. .registration {
  133. display: flex;
  134. flex-direction: column;
  135. justify-content: center;
  136. align-items: center;
  137. }
  138. .registration input {
  139. margin-top: 5%;
  140. }
  141. .registration button {
  142. margin-top: 5%;
  143. }