index.scss 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. * {
  2. padding: 0;
  3. margin: 0;
  4. }
  5. .Link {
  6. color: inherit;
  7. text-decoration: none;
  8. }
  9. .ProfileImageEditor {
  10. & .profileImageWrapper {
  11. position: relative;
  12. overflow: hidden;
  13. & .ProfileImage {
  14. max-width: 100%;
  15. min-height: 400px;
  16. & img {
  17. object-fit: contain;
  18. }
  19. }
  20. & .letter {
  21. z-index: 2;
  22. display: block;
  23. position: absolute;
  24. width: 100%;
  25. transition: 0.2s;
  26. text-align: center;
  27. background: #cecece;
  28. padding: 10px;
  29. opacity: 0.9;
  30. &.show {
  31. margin-top: -43px;
  32. }
  33. }
  34. }
  35. }
  36. .Modal {
  37. position: fixed;
  38. z-index: 1;
  39. left: 0;
  40. top: 0;
  41. width: 100%;
  42. height: 100vw;
  43. overflow: auto;
  44. background-color: rgba(0, 0, 0, 0.1);
  45. & .modalContent {
  46. background-color: #fefefe;
  47. margin: 15% auto;
  48. padding: 20px;
  49. border-radius: 7px;
  50. width: 50%;
  51. }
  52. }
  53. .AuthPage {
  54. display: flex;
  55. justify-content: center;
  56. min-width: 100%;
  57. height: 100vh;
  58. align-items: center;
  59. & .LoginForm {
  60. min-width: 400px;
  61. }
  62. }
  63. .carousel {
  64. & .thumb {
  65. border: 1px solid rgba(0, 0, 0, 0) !important;
  66. cursor: pointer;
  67. &:hover {
  68. border: 1px solid #c9c5ca !important;
  69. }
  70. }
  71. }
  72. .GoodCard {
  73. & .BuyButton {
  74. margin-left: auto;
  75. white-space: nowrap;
  76. }
  77. }
  78. .DrawerCart {
  79. width: 350px;
  80. & .header {
  81. justify-content: space-between;
  82. width: 100%;
  83. }
  84. & .header {
  85. padding: 10px;
  86. }
  87. & .DrawerCartItem {
  88. width: 100%;
  89. display: flex;
  90. & img {
  91. object-fit: contain;
  92. }
  93. & .content {
  94. flex: 1;
  95. }
  96. & .buttons {
  97. padding: 10px;
  98. display: flex;
  99. align-items: center;
  100. }
  101. }
  102. & .list {
  103. }
  104. }
  105. .App {
  106. & .Error404 {
  107. height: 99vh;
  108. }
  109. & .Header {
  110. margin-bottom: 30px;
  111. & .AppBar {
  112. background: white;
  113. color: #6750a4;
  114. & .ToolBar {
  115. padding-left: 50px;
  116. padding-right: 50px;
  117. & .AvatarButton {
  118. height: 46px;
  119. width: 46px;
  120. }
  121. & .Logo {
  122. width: 50px;
  123. height: 50px;
  124. margin-right: 10px;
  125. }
  126. & .SearchBarWrapper {
  127. flex-grow: 1;
  128. margin-left: 10px;
  129. & .SearchBar {
  130. position: relative;
  131. justify-content: center;
  132. padding-left: 20%;
  133. & .SearchBarInput {
  134. width: 100%;
  135. max-width: 500px;
  136. }
  137. & .SearchResults {
  138. position: absolute;
  139. width: 100%;
  140. max-width: 480px;
  141. background: white;
  142. padding: 10px;
  143. z-index: 2;
  144. & .SearchGoodResultItem {
  145. text-align: left;
  146. & img {
  147. width: 100%;
  148. max-height: 100px;
  149. object-fit: contain;
  150. }
  151. &:hover {
  152. background: #f1f2f4;
  153. }
  154. }
  155. }
  156. }
  157. }
  158. & .CartIcon {
  159. & .MuiBadge-badge {
  160. right: 4px;
  161. top: 35px;
  162. padding: 0 4px;
  163. }
  164. & .CartLogo {
  165. color: #6750a4;
  166. width: 30px;
  167. height: 30px;
  168. }
  169. }
  170. & .LogoutIcon {
  171. & .LogoutLogo {
  172. color: #6750a4;
  173. width: 30px;
  174. height: 30px;
  175. }
  176. }
  177. }
  178. }
  179. }
  180. & .Aside {
  181. margin-left: 50px;
  182. & .body {
  183. padding: 10px 0px 100px 0px;
  184. border-radius: 5px;
  185. border: 1px solid #c9c5ca;
  186. & .Categories {
  187. }
  188. }
  189. }
  190. & .Content {
  191. margin-left: 50px;
  192. margin-right: 50px;
  193. min-height: 600px;
  194. border-radius: 5px;
  195. flex: 1;
  196. border: 1px solid #c9c5ca;
  197. & .DashboardPage {
  198. padding: 20px;
  199. & .Paper {
  200. padding: 20px;
  201. }
  202. & .ProfileForm {
  203. MuiTableCell-root {
  204. border-right: 1px solid grey;
  205. }
  206. }
  207. & .DashboardOrder {
  208. padding: 20px;
  209. & .DashboardOrderGood {
  210. & img {
  211. width: 100%;
  212. }
  213. }
  214. }
  215. }
  216. & .AdminLayoutPage {
  217. padding: 10px;
  218. padding-bottom: 400px;
  219. & .AdminOrderPage {
  220. text-align: left;
  221. }
  222. & .AdminUserList {
  223. & .AdminUserItem {
  224. & img {
  225. width: 100px;
  226. }
  227. }
  228. }
  229. & .AdminGoodPage {
  230. & .GoodForm {
  231. width: 40%;
  232. text-align: left;
  233. }
  234. & .EntityEditor {
  235. & .DropZoneImage {
  236. width: 100%;
  237. }
  238. & .Dropzone {
  239. background: #f1f2f4;
  240. width: 100%;
  241. padding: 70px 0;
  242. border: 1px dashed #e9eaec;
  243. border-radius: 5px;
  244. text-align: center;
  245. }
  246. }
  247. }
  248. & .AdminGoodList {
  249. & .AdminGoodItem {
  250. & img {
  251. width: 100px;
  252. }
  253. }
  254. }
  255. & .AdminCategoryPage {
  256. & .CategoryForm {
  257. width: 40%;
  258. text-align: left;
  259. }
  260. & .AdminCategoryList {
  261. width: 90%;
  262. display: flex;
  263. justify-content: center;
  264. flex-wrap: wrap;
  265. margin-left: 5%;
  266. }
  267. }
  268. & .searchBarWrapper {
  269. display: flex;
  270. justify-content: center;
  271. margin-bottom: 10px;
  272. & .SearchBar {
  273. position: relative;
  274. & .SearchBarInput {
  275. width: 100%;
  276. max-width: 500px;
  277. min-width: 500px;
  278. }
  279. & .SearchResults {
  280. position: absolute;
  281. width: 100%;
  282. max-width: 480px;
  283. background: white;
  284. padding: 10px;
  285. z-index: 2;
  286. & .SearchGoodResultItem,
  287. & .SearchUserResultItem {
  288. text-align: left;
  289. & img {
  290. width: 100%;
  291. max-height: 100px;
  292. object-fit: contain;
  293. }
  294. &:hover {
  295. background: #f1f2f4;
  296. }
  297. }
  298. & .SearchOrderResultItem {
  299. text-align: left;
  300. &:hover {
  301. background: #f1f2f4;
  302. }
  303. }
  304. }
  305. }
  306. }
  307. }
  308. & .MainPage {
  309. padding: 10px;
  310. & .MainPageImage {
  311. width: 100%;
  312. border-radius: 10px;
  313. }
  314. }
  315. & .CartPage {
  316. & .OrderForm {
  317. padding: 10px 15px;
  318. text-align: left;
  319. }
  320. }
  321. & .GoodPage {
  322. padding: 10px;
  323. & img {
  324. max-height: 500px;
  325. object-fit: contain;
  326. }
  327. & .content {
  328. text-align: left;
  329. }
  330. }
  331. & .GoodsPage {
  332. padding: 10px;
  333. & .sortOptionsWrapper {
  334. display: flex;
  335. justify-content: right;
  336. padding-right: 15px;
  337. }
  338. & .Divider {
  339. margin-top: 10px;
  340. margin-bottom: 10px;
  341. }
  342. & .SubCategories {
  343. padding-top: 10px;
  344. padding-bottom: 10px;
  345. display: flex;
  346. & .SubCategory {
  347. width: 250px;
  348. padding: 15px 7px;
  349. margin-right: 15px;
  350. margin-bottom: 15px;
  351. cursor: pointer;
  352. }
  353. }
  354. }
  355. }
  356. & .Footer {
  357. margin-top: 70px;
  358. background-color: #f4eff4;
  359. padding: 25px 0px;
  360. & .TableCell {
  361. border-bottom: none;
  362. padding: 0;
  363. padding-top: 5px;
  364. }
  365. }
  366. }