index.scss 9.5 KB

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