App.scss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. // RESET STYLE
  2. html {
  3. box-sizing: border-box;
  4. }
  5. *,
  6. *::after,
  7. *::before {
  8. box-sizing: inherit;
  9. }
  10. ul[class],
  11. ol[class] {
  12. padding: 0;
  13. }
  14. body,
  15. h1,
  16. h2,
  17. h3,
  18. h4,
  19. h5,
  20. h6,
  21. p,
  22. ul[class],
  23. ol[class],
  24. li,
  25. figure,
  26. figcaption,
  27. blockquote,
  28. dl,
  29. dd {
  30. margin: 0;
  31. }
  32. ul[class] {
  33. list-style: none;
  34. }
  35. img {
  36. max-width: 100%;
  37. display: block;
  38. }
  39. input,
  40. button,
  41. textarea,
  42. select {
  43. font: inherit;
  44. }
  45. body {
  46. background-color: #f9f9f9;
  47. }
  48. .Header {
  49. display: flex;
  50. background-color: #ececec;
  51. justify-content: space-between;
  52. align-items: center;
  53. .Logo {
  54. display: block;
  55. }
  56. &__inner {
  57. max-width: 1250px;
  58. margin: 0 auto;
  59. }
  60. &__search {
  61. display: block;
  62. padding: 0 10px;
  63. }
  64. &__search-link {
  65. display: flex;
  66. align-items: center;
  67. padding: 5px 20px;
  68. transition: all 0.3s;
  69. strong {
  70. padding-left: 15px;
  71. color: #000;
  72. }
  73. &:hover {
  74. background-color: #0057ff1f;
  75. }
  76. }
  77. &__search-drop {
  78. max-width: 500px;
  79. min-width: 320px;
  80. max-height: 500px;
  81. padding: 16px 0;
  82. overflow: auto;
  83. }
  84. &__userNav {
  85. div {
  86. padding-left: 20px;
  87. }
  88. a {
  89. display: flex;
  90. align-items: center;
  91. justify-content: center;
  92. }
  93. svg {
  94. width: 24px;
  95. height: 24px;
  96. }
  97. }
  98. }
  99. .ant-popover {
  100. padding-top: 12px;
  101. &-arrow {
  102. width: 14px;
  103. height: 19px;
  104. &-content {
  105. width: 14px;
  106. height: 14px;
  107. }
  108. }
  109. &-inner-content {
  110. padding: 2px 0 0;
  111. }
  112. }
  113. .dropMenu {
  114. max-width: 200px;
  115. min-width: 150px;
  116. .anticon.anticon-user,
  117. li {
  118. transition: all 0.3s;
  119. &:hover {
  120. background-color: rgba($color: #0057ff, $alpha: 0.12);
  121. }
  122. }
  123. a {
  124. transition: all 0.3s;
  125. }
  126. button {
  127. cursor: pointer;
  128. text-align-last: left;
  129. width: 100%;
  130. background-color: transparent;
  131. border: none;
  132. padding: 0;
  133. margin: 0;
  134. transition: all 0.3s;
  135. }
  136. }
  137. .Authorization {
  138. height: 100%;
  139. background-position: right top;
  140. background-repeat: no-repeat;
  141. background-size: cover;
  142. a {
  143. font-size: 1.2em;
  144. }
  145. .active {
  146. color: red;
  147. }
  148. .ant-form-item {
  149. margin-bottom: 10px;
  150. }
  151. &__form {
  152. height: 100vh;
  153. padding-right: calc(10vw + 25px);
  154. }
  155. .login-form {
  156. text-align: center;
  157. button {
  158. width: 75%;
  159. }
  160. }
  161. .ant-divider {
  162. margin-bottom: 0;
  163. }
  164. }
  165. .ant-layout-header {
  166. height: 58px;
  167. line-height: 58px;
  168. padding: 0 20px;
  169. background-color: #fff;
  170. box-shadow: 0 0 9px 5px rgba($color: #001529, $alpha: 0.4);
  171. }
  172. .Main {
  173. padding-top: 58px;
  174. &__inner {
  175. padding-top: 15px;
  176. }
  177. }
  178. .owner .nick {
  179. padding-left: 15px;
  180. }
  181. .Post {
  182. padding: 10px 0;
  183. position: relative;
  184. img {
  185. margin: 0 auto;
  186. padding: 1px;
  187. }
  188. &__dots.slick-dots {
  189. bottom: -14px;
  190. li {
  191. border-radius: 50%;
  192. background-color: rgba($color: #1890ff, $alpha: 0.5);
  193. width: 10px;
  194. height: 10px;
  195. overflow: hidden;
  196. &.slick-active {
  197. border-radius: 5px;
  198. width: 20px;
  199. button {
  200. background-color: #1890ff;
  201. }
  202. }
  203. button {
  204. height: 10px;
  205. }
  206. }
  207. }
  208. .ant-empty-image {
  209. height: 300px;
  210. img {
  211. margin: 0 auto;
  212. }
  213. }
  214. &__btn {
  215. border: none;
  216. position: absolute;
  217. padding: 0;
  218. background-color: rgba(0, 0, 0, 0.165);
  219. bottom: 1px;
  220. top: 1px;
  221. width: 50px;
  222. transition: 0.4s;
  223. cursor: pointer;
  224. svg {
  225. fill: #fff;
  226. opacity: 0.5;
  227. width: 50px;
  228. height: 30px;
  229. transition: 0.4s;
  230. }
  231. }
  232. &__prev {
  233. left: 0px;
  234. opacity: 0;
  235. &.--active {
  236. opacity: 1;
  237. }
  238. }
  239. &__next {
  240. right: 0px;
  241. opacity: 0;
  242. &.--active {
  243. opacity: 1;
  244. }
  245. }
  246. &__heart {
  247. button {
  248. min-width: auto;
  249. width: 30px;
  250. height: 30px;
  251. border: none;
  252. padding: 0;
  253. box-shadow: none;
  254. }
  255. strong {
  256. display: block;
  257. }
  258. }
  259. &__comments {
  260. a {
  261. font-size: 1.1em;
  262. color: #000;
  263. font-weight: 500;
  264. }
  265. }
  266. &__send-comment {
  267. button {
  268. border: none;
  269. box-shadow: none;
  270. }
  271. }
  272. }
  273. .Modal {
  274. .ant-modal-body {
  275. padding-left: 0;
  276. padding-right: 0;
  277. }
  278. &__inner {
  279. overflow: auto;
  280. max-height: 400px;
  281. .ant-skeleton-header {
  282. padding-left: 20px;
  283. }
  284. }
  285. li {
  286. padding-left: 35px;
  287. }
  288. }
  289. .Profile {
  290. width: 100%;
  291. padding: 10px;
  292. padding-bottom: 30px;
  293. h1 {
  294. line-height: 1;
  295. }
  296. &__name {
  297. padding-bottom: 10px;
  298. }
  299. &__login {
  300. color: #8d8d8d;
  301. }
  302. &__count {
  303. padding-top: 10px;
  304. strong {
  305. font-size: 1.2em;
  306. padding-right: 5px;
  307. }
  308. span {
  309. font-size: 1.2em;
  310. }
  311. }
  312. button {
  313. color: #000;
  314. }
  315. &__link-message {
  316. display: inline-block;
  317. background: #1890ff;
  318. line-height: 1.5715;
  319. box-shadow: 0 2px 0 rgb(0 0 0 / 2%);
  320. transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  321. height: 32px;
  322. padding: 4px 15px;
  323. font-size: 14px;
  324. border-radius: 2px;
  325. color: rgba(0, 0, 0, 0.85);
  326. border: 1px solid #1890ff;
  327. &:hover {
  328. color: #fff;
  329. border-color: #40a9ff;
  330. background: #40a9ff;
  331. }
  332. }
  333. &__post {
  334. padding: 2px;
  335. div {
  336. padding: 0;
  337. }
  338. img {
  339. width: 100%;
  340. height: 160px;
  341. margin: 0 auto;
  342. object-fit: cover;
  343. }
  344. }
  345. &__box {
  346. position: relative;
  347. &-icon {
  348. position: absolute;
  349. top: 0;
  350. right: 0;
  351. }
  352. }
  353. }
  354. .PostOne {
  355. max-width: 1250px;
  356. padding: 0 15px;
  357. margin: 0 auto;
  358. &__inner {
  359. display: grid;
  360. grid-template-columns: repeat(2, 1fr);
  361. grid-template-rows: 0.1fr 1fr;
  362. grid-column-gap: 0px;
  363. grid-row-gap: 0px;
  364. box-shadow: 0 0 6px 2px rgba($color: #000000, $alpha: 0.5);
  365. border-radius: 5px;
  366. max-height: 750px;
  367. }
  368. &__title {
  369. grid-area: 1 / 2 / 2 / 3;
  370. padding: 10px 10px 5px;
  371. background-color: #fff;
  372. }
  373. &__image {
  374. grid-area: 1 / 1 / 3 / 2;
  375. width: 60vw;
  376. max-width: 700px;
  377. background-color: rgb(87, 87, 87);
  378. img {
  379. max-width: 100%;
  380. margin: 0 auto;
  381. object-fit: cover;
  382. }
  383. .Post__dots.slick-dots {
  384. bottom: 12px;
  385. }
  386. }
  387. &__description {
  388. grid-area: 2 / 2 / 3 / 3;
  389. background-color: #fff;
  390. padding: 5px 10px;
  391. .ant-typography {
  392. overflow-wrap: anywhere;
  393. margin-bottom: 5px;
  394. }
  395. .ant-divider {
  396. margin: 0;
  397. }
  398. }
  399. &__description-inner {
  400. display: flex;
  401. flex-direction: column;
  402. justify-content: space-between;
  403. height: 100%;
  404. max-height: 500px;
  405. }
  406. &__description-top {
  407. flex-grow: 1;
  408. overflow: auto;
  409. }
  410. &__description-bottom {
  411. }
  412. }