App.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  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. video {
  52. width: 100%;
  53. margin: 0 auto;
  54. max-height: 500px;
  55. }
  56. .Header {
  57. display: flex;
  58. background-color: #ececec;
  59. justify-content: space-between;
  60. align-items: center;
  61. .Logo {
  62. display: block;
  63. }
  64. &__inner {
  65. max-width: 1250px;
  66. margin: 0 auto;
  67. }
  68. &__search {
  69. display: block;
  70. padding: 0 10px;
  71. }
  72. &__search-link {
  73. display: flex;
  74. align-items: center;
  75. padding: 5px 20px;
  76. transition: all 0.3s;
  77. strong {
  78. padding-left: 15px;
  79. color: $defaultColorB;
  80. }
  81. &:hover {
  82. background-color: #0057ff1f;
  83. }
  84. }
  85. &__search-drop {
  86. max-width: 500px;
  87. min-width: 320px;
  88. max-height: 500px;
  89. padding: 16px 0;
  90. overflow: auto;
  91. }
  92. &__userNav {
  93. div {
  94. padding-left: 20px;
  95. }
  96. a {
  97. display: flex;
  98. align-items: center;
  99. justify-content: center;
  100. }
  101. svg {
  102. width: 24px;
  103. height: 24px;
  104. }
  105. }
  106. }
  107. .ant-popover {
  108. padding-top: 12px;
  109. &-arrow {
  110. width: 14px;
  111. height: 19px;
  112. &-content {
  113. width: 14px;
  114. height: 14px;
  115. }
  116. }
  117. &-inner-content {
  118. padding: 2px 0 0;
  119. }
  120. }
  121. .dropMenu {
  122. max-width: 200px;
  123. min-width: 150px;
  124. .anticon.anticon-user,
  125. li {
  126. transition: all 0.3s;
  127. &:hover {
  128. background-color: rgba($color: #0057ff, $alpha: 0.12);
  129. }
  130. }
  131. a {
  132. transition: all 0.3s;
  133. }
  134. button {
  135. cursor: pointer;
  136. text-align-last: left;
  137. width: 100%;
  138. background-color: transparent;
  139. border: none;
  140. padding: 0;
  141. margin: 0;
  142. transition: all 0.3s;
  143. }
  144. }
  145. .Authorization {
  146. height: 100%;
  147. background-position: right top;
  148. background-repeat: no-repeat;
  149. background-size: cover;
  150. a {
  151. font-size: 1.2em;
  152. }
  153. .active {
  154. color: red;
  155. }
  156. .ant-form-item {
  157. margin-bottom: 10px;
  158. }
  159. &__form {
  160. height: 100vh;
  161. padding-right: calc(10vw + 25px);
  162. }
  163. .login-form {
  164. text-align: center;
  165. button {
  166. width: 75%;
  167. }
  168. }
  169. .ant-divider {
  170. margin-bottom: 0;
  171. }
  172. }
  173. .ant-layout-header {
  174. height: 58px;
  175. line-height: 58px;
  176. padding: 0 20px;
  177. background-color: $defaultColorW;
  178. box-shadow: 0 0 9px 5px rgba($color: #001529, $alpha: 0.4);
  179. }
  180. .Main {
  181. padding-top: 58px;
  182. &__inner {
  183. padding-top: 22px;
  184. }
  185. }
  186. .owner .nick {
  187. padding-left: 15px;
  188. }
  189. .Post {
  190. padding: 10px 0;
  191. position: relative;
  192. img {
  193. width: 100%;
  194. margin: 0 auto;
  195. padding: 1px;
  196. max-height: 600px;
  197. object-fit: contain;
  198. }
  199. &__dots.slick-dots {
  200. bottom: -14px;
  201. li {
  202. border-radius: 50%;
  203. background-color: rgba($color: #1890ff, $alpha: 0.5);
  204. width: 10px;
  205. height: 10px;
  206. overflow: hidden;
  207. &.slick-active {
  208. border-radius: 5px;
  209. width: 20px;
  210. button {
  211. background-color: #1890ff;
  212. }
  213. }
  214. button {
  215. height: 10px;
  216. }
  217. }
  218. }
  219. .ant-empty-image {
  220. height: 300px;
  221. img {
  222. margin: 0 auto;
  223. width: auto;
  224. }
  225. }
  226. &__btn {
  227. border: none;
  228. position: absolute;
  229. padding: 0;
  230. background-color: rgba(0, 0, 0, 0.165);
  231. bottom: 1px;
  232. top: 1px;
  233. width: 50px;
  234. transition: 0.4s;
  235. cursor: pointer;
  236. svg {
  237. fill: $defaultColorW;
  238. opacity: 0.5;
  239. width: 50px;
  240. height: 30px;
  241. transition: 0.4s;
  242. }
  243. }
  244. &__prev {
  245. left: 0px;
  246. opacity: 0;
  247. &.--active {
  248. opacity: 1;
  249. }
  250. }
  251. &__next {
  252. right: 0px;
  253. opacity: 0;
  254. &.--active {
  255. opacity: 1;
  256. }
  257. }
  258. &__heart {
  259. button {
  260. min-width: auto;
  261. width: 30px;
  262. height: 30px;
  263. border: none;
  264. padding: 0;
  265. box-shadow: none;
  266. }
  267. strong {
  268. display: block;
  269. }
  270. }
  271. &__comments {
  272. a {
  273. font-size: 1.1em;
  274. color: $defaultColorB;
  275. font-weight: 500;
  276. }
  277. }
  278. &__send-comment {
  279. button {
  280. border: none;
  281. box-shadow: none;
  282. }
  283. }
  284. &__panel-btn {
  285. button {
  286. cursor: pointer;
  287. border: none;
  288. padding: 0;
  289. margin: 0;
  290. background-color: inherit;
  291. transition: all 0.3s;
  292. &:hover {
  293. text-shadow: 1px 1px 3px $defaultColorB;
  294. }
  295. }
  296. }
  297. }
  298. .Modal {
  299. .ant-modal-body {
  300. padding-left: 0;
  301. padding-right: 0;
  302. }
  303. &__inner {
  304. overflow: auto;
  305. max-height: 400px;
  306. .ant-skeleton-header {
  307. padding-left: 20px;
  308. }
  309. }
  310. li {
  311. padding-left: 35px;
  312. padding-right: 35px;
  313. }
  314. }
  315. .Profile {
  316. width: 100%;
  317. padding: 10px;
  318. padding-bottom: 30px;
  319. h1 {
  320. line-height: 1;
  321. }
  322. a {
  323. display: inline-block;
  324. }
  325. &__data {
  326. padding-top: 10px;
  327. }
  328. &__name {
  329. padding-bottom: 10px;
  330. }
  331. &__login {
  332. color: #8d8d8d;
  333. }
  334. &__count {
  335. padding-top: 10px;
  336. strong {
  337. font-size: 1.2em;
  338. padding-right: 5px;
  339. }
  340. span {
  341. font-size: 1.2em;
  342. }
  343. button {
  344. padding: 0;
  345. border: none;
  346. }
  347. }
  348. button {
  349. color: $defaultColorB;
  350. }
  351. &__link-message {
  352. display: inline-block;
  353. background: #1890ff;
  354. line-height: 1.5715;
  355. box-shadow: 0 2px 0 rgb(0 0 0 / 2%);
  356. transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  357. height: 32px;
  358. padding: 4px 15px;
  359. font-size: 14px;
  360. border-radius: 2px;
  361. color: rgba(0, 0, 0, 0.85);
  362. border: 1px solid #1890ff;
  363. &:hover {
  364. color: $defaultColorW;
  365. border-color: #40a9ff;
  366. background: #40a9ff;
  367. }
  368. }
  369. &__created {
  370. padding: 10px 0;
  371. }
  372. &__post {
  373. padding: 2px;
  374. div {
  375. padding: 0;
  376. }
  377. img,
  378. video {
  379. width: 100%;
  380. height: 100%;
  381. max-height: 175px;
  382. margin: 0 auto;
  383. object-fit: cover;
  384. }
  385. }
  386. &__box {
  387. position: relative;
  388. &-icon {
  389. position: absolute;
  390. top: 0;
  391. right: 0;
  392. }
  393. &-icon--video {
  394. position: absolute;
  395. top: 50%;
  396. left: 50%;
  397. transform: translate(-50%, -50%);
  398. font-size: 2.5em;
  399. svg {
  400. fill: $defaultColorW;
  401. stroke: $defaultColorB;
  402. }
  403. }
  404. }
  405. }
  406. .PostOne {
  407. max-width: 1250px;
  408. padding: 40px 15px 0;
  409. margin: 0 auto;
  410. &__inner {
  411. display: grid;
  412. grid-template-columns: repeat(2, 1fr);
  413. grid-template-rows: 0.1fr 1fr;
  414. grid-column-gap: 0px;
  415. grid-row-gap: 0px;
  416. align-items: center;
  417. box-shadow: 0 0 6px 2px rgba($color: $defaultColorB, $alpha: 0.5);
  418. border-radius: 5px;
  419. max-height: 650px;
  420. }
  421. &__title {
  422. grid-area: 1 / 2 / 2 / 3;
  423. padding: 10px 20px 5px;
  424. background-color: $defaultColorW;
  425. & .owner {
  426. font-size: 1.2em;
  427. font-weight: 500;
  428. }
  429. }
  430. &__image {
  431. grid-area: 1 / 1 / 3 / 2;
  432. width: 60vw;
  433. max-width: 700px;
  434. height: 100%;
  435. background-color: rgb(87, 87, 87);
  436. img {
  437. max-width: 100%;
  438. max-height: 550px;
  439. min-height: 450px;
  440. margin: 0 auto;
  441. object-fit: cover;
  442. }
  443. .Post__dots.slick-dots {
  444. bottom: 12px;
  445. }
  446. }
  447. &__description {
  448. grid-area: 2 / 2 / 3 / 3;
  449. background-color: $defaultColorW;
  450. padding: 5px 20px;
  451. height: 100%;
  452. .ant-typography {
  453. overflow-wrap: anywhere;
  454. margin-bottom: 5px;
  455. }
  456. .ant-divider {
  457. margin: 0;
  458. }
  459. }
  460. &__description-inner {
  461. display: flex;
  462. flex-direction: column;
  463. justify-content: space-between;
  464. height: 100%;
  465. max-height: 475px;
  466. }
  467. &__description-top {
  468. flex-grow: 1;
  469. overflow: auto;
  470. height: 100%;
  471. }
  472. .ant-empty-image {
  473. height: auto;
  474. }
  475. }
  476. .PostCommentAuthor {
  477. color: $defaultColorB;
  478. font-size: 1.2em;
  479. font-weight: 500;
  480. }
  481. .ContainerInner {
  482. width: 100%;
  483. background-color: $defaultColorW;
  484. padding: 15px 25px;
  485. box-shadow: 0 0 6px 2px rgba($defaultColorB, 0.5);
  486. border-radius: 5px;
  487. }
  488. .ContainEditPost {
  489. .title {
  490. width: 100%;
  491. text-align: center;
  492. display: inline-block;
  493. }
  494. .description {
  495. white-space: break-spaces;
  496. }
  497. }
  498. .EditPhotos {
  499. &__box {
  500. margin-bottom: 15px;
  501. }
  502. .ant-upload-drag-icon {
  503. margin-bottom: 5px;
  504. }
  505. }
  506. .SortableList {
  507. display: grid;
  508. grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  509. grid-gap: 10px;
  510. justify-items: center;
  511. }
  512. .SortableItemMask {
  513. position: absolute;
  514. display: flex;
  515. align-items: center;
  516. justify-content: center;
  517. top: 0px;
  518. left: 0px;
  519. right: 0px;
  520. border-radius: 4px;
  521. background-color: rgba($defaultColorB, 0.5);
  522. opacity: 0;
  523. z-index: 2;
  524. transition: 0.3s;
  525. button {
  526. svg {
  527. width: 15px;
  528. height: 15px;
  529. fill: $defaultColorW;
  530. }
  531. }
  532. }
  533. .SortableItem {
  534. .Handle {
  535. position: relative;
  536. max-width: 130px;
  537. border-radius: 4px;
  538. display: flex;
  539. align-items: center;
  540. justify-content: center;
  541. box-shadow: 0 0 6px 2px rgba($defaultColorB, 0.3);
  542. img,
  543. video {
  544. width: 100%;
  545. object-fit: cover;
  546. max-height: 150px;
  547. }
  548. &:hover .SortableItemMask {
  549. opacity: 1;
  550. }
  551. }
  552. .hiden-item,
  553. .ant-image-mask,
  554. .ant-image {
  555. display: none;
  556. position: absolute;
  557. top: 0;
  558. left: 0;
  559. clip: rect(0 0 0);
  560. pointer-events: none;
  561. padding: 10px;
  562. }
  563. }
  564. .ant-image-preview-img-wrapper {
  565. display: flex;
  566. align-items: center;
  567. justify-content: center;
  568. img {
  569. max-height: 60vh;
  570. }
  571. }
  572. .ant-dropdown {
  573. box-shadow: 0 0 2px 0 $defaultColorB;
  574. }
  575. .avatar-uploader > .ant-upload {
  576. width: 150px;
  577. height: 150px;
  578. border-radius: 50%;
  579. position: relative;
  580. .edit-icon {
  581. position: absolute;
  582. top: 0;
  583. right: 0;
  584. }
  585. }
  586. .EditMyData {
  587. label {
  588. display: flex;
  589. align-items: flex-end;
  590. padding-bottom: 10px;
  591. flex-wrap: nowrap;
  592. }
  593. h4 {
  594. margin: 0;
  595. padding-right: 10px;
  596. }
  597. button {
  598. display: none;
  599. margin: 0 auto;
  600. &.--block {
  601. display: block;
  602. }
  603. }
  604. &__lable-box {
  605. span {
  606. display: block;
  607. text-align: center;
  608. }
  609. input.--error {
  610. border-color: #ff4d4f;
  611. max-width: 100%;
  612. }
  613. .EditMyData__lable-text {
  614. font-size: 1.3em;
  615. display: inline-block;
  616. padding: 0 10px;
  617. span {
  618. display: inline-block;
  619. }
  620. svg {
  621. margin-left: 10px;
  622. }
  623. }
  624. }
  625. }