App.scss 8.6 KB

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