style.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. body{
  2. box-sizing: border-box;
  3. margin: 0;
  4. }
  5. header{
  6. position: sticky;
  7. top: 0;
  8. left: 0;
  9. width: 100%;
  10. z-index: 1;
  11. }
  12. #mainContainer {
  13. display: flex;
  14. position: relative;
  15. }
  16. #aside {
  17. min-width: 15%;
  18. height: 100vh;
  19. position: sticky;
  20. top: 0;
  21. left: 0;
  22. background-color: rgb(252, 252, 252);
  23. overflow-y: auto;
  24. &::-webkit-scrollbar { width: 0 !important }
  25. }
  26. a{
  27. display: block;
  28. padding: 5px 10px ;
  29. text-decoration: none;
  30. color: black;
  31. &:hover{
  32. background-color: rgb(184, 184, 184);
  33. }
  34. }
  35. #main{
  36. padding: 20px;
  37. overflow-y: auto;
  38. a{
  39. display: block;
  40. margin: 0 auto;
  41. height: 35px;
  42. width: 300px;
  43. border-radius: 3px;
  44. background-color: rgb(236, 236, 235);
  45. box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4);
  46. }
  47. }
  48. nav{
  49. padding: 10px 30px;
  50. height: 50px;
  51. background-color: rgb(236, 236, 235);
  52. box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4);
  53. display: flex;
  54. justify-content: space-between;
  55. align-items: center;
  56. #signin, #register, #logout{
  57. display: inline;
  58. padding: 10px;
  59. border-radius: 3px;
  60. width: 150px;
  61. height: 30px;
  62. background-color: rgb(245, 245, 245);
  63. box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4);
  64. text-decoration: none;
  65. color: black;
  66. }
  67. #logout{
  68. width: 70px;
  69. height: 25px;
  70. padding: 0;
  71. }
  72. }
  73. #user{
  74. display: inline;
  75. margin-right: 15px;
  76. }
  77. #cart-btn, #dashboard-btn{
  78. display: inline;
  79. // padding: 10px;
  80. border-radius: 3px;
  81. width: 80px;
  82. height: 30px;
  83. background-color: rgb(245, 245, 245);
  84. box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4);
  85. text-decoration: none;
  86. color: black;
  87. margin-right: 20px;
  88. }
  89. #userlogout-wrap{
  90. display: none;
  91. }
  92. .overlay{
  93. position: fixed;
  94. height: 100%;
  95. width: 100%;
  96. top: 0;
  97. padding: 40px;
  98. z-index: 200;
  99. display: none;
  100. background-color: rgba(0, 0, 0, .55);
  101. }
  102. #signup-form, #login-form{
  103. position: absolute;
  104. top: 50%;
  105. left: 50%;
  106. transform: translate(-50%, -50%);
  107. display: none;
  108. width: 350px;
  109. height: 250px;
  110. padding: 25px 15px;
  111. margin: 0 auto;
  112. background-color: rgb(255, 255, 255);
  113. box-shadow: 1px 1.5px 4.8px 0.3px rgba(0, 0, 0, 0.4);
  114. border-radius: 5px;
  115. }
  116. #signup, #signup-password, #login, #login-password{
  117. display: block;
  118. margin: 0 auto;
  119. border: none;
  120. width: 85%;
  121. height: 30px;
  122. font-size: 16px;
  123. box-shadow: 1px 1.5px 4.8px 0.3px rgba(0, 0, 0, 0.4);
  124. border-radius: 4px;
  125. margin-bottom: 0px;
  126. padding: 5px 10px;
  127. }
  128. .form-btn{
  129. border: none;
  130. width: 120px;
  131. height: 30px;
  132. display: block;
  133. margin: 15px auto;
  134. box-shadow: 1px 1.5px 4.8px 0.3px rgba(0, 0, 0, 0.4);
  135. background-color:aliceblue;
  136. color:rgb(134, 134, 134);
  137. }
  138. .form-error{
  139. width: 100%;
  140. margin-top: 30px;
  141. color: rgb(207, 109, 109);
  142. text-align: center;
  143. }
  144. .close{
  145. position: absolute;
  146. font-size: 35px;
  147. color:rgb(202, 202, 202);
  148. top: -5px;
  149. right: -25px;
  150. cursor: pointer;
  151. }
  152. .category-name{
  153. // background-color: darkgray;
  154. font-size: 30px;
  155. padding: 5px;
  156. border-radius: 3px;
  157. background-color: rgb(236, 236, 235);
  158. box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4);
  159. }
  160. .btn-buy{
  161. display: block;
  162. margin: 0 auto;
  163. height: 35px;
  164. width: 100px;
  165. border-radius: 3px;
  166. background-color: rgb(236, 236, 235);
  167. box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4);
  168. }
  169. #btn-buy{
  170. display: none;
  171. }
  172. #cart-wrap, #dashboard-wrap{
  173. position: absolute;
  174. top: 50%;
  175. left: 50%;
  176. transform: translate(-50%, -50%);
  177. display: none;
  178. width: 70%;
  179. min-height: 250px;
  180. max-height: 300px;
  181. padding: 25px 15px;
  182. margin: 0 auto;
  183. background-color: rgb(255, 255, 255);
  184. box-shadow: 1px 1.5px 4.8px 0.3px rgba(0, 0, 0, 0.4);
  185. border-radius: 5px;
  186. div{
  187. max-height: 300px;
  188. overflow-y: auto;
  189. &::-webkit-scrollbar { width: 0}
  190. }
  191. }
  192. #cart, #dashboard{
  193. list-style-type: none;
  194. padding: 0;
  195. li{
  196. display: flex;
  197. justify-content: space-between;
  198. align-items: center;
  199. img{
  200. height: 60px;
  201. width: 60px;
  202. }
  203. input{
  204. height: 20px;
  205. width: 40px;
  206. }
  207. }
  208. }
  209. #dashboard{
  210. display: flex;
  211. flex-direction: column-reverse;
  212. li{
  213. display: block;
  214. }
  215. }