comments.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. .comments {
  2. &__block {
  3. margin-top: 40px;
  4. }
  5. &__header {
  6. background: #d7d7d7;
  7. border-radius: 20px 0 0 0;
  8. padding: 4px 12px 3px 12px;
  9. position: relative;
  10. margin-bottom: 20px;
  11. display: flex;
  12. flex-direction: row;
  13. justify-content: space-between;
  14. align-content: center;
  15. }
  16. &__title {
  17. display: inline-block;
  18. width: calc(80% - 0.25em);
  19. margin: 0;
  20. }
  21. &__add-link {
  22. display: block;
  23. font-size: 15px;
  24. font-family: $fontopensans;
  25. vertical-align: middle;
  26. text-decoration: none;
  27. &-text {
  28. display: inline-block;
  29. color: #929292;
  30. text-decoration: none;
  31. border-bottom: 1px dotted #929292;
  32. }
  33. &:hover {
  34. .comments__add-link-text {
  35. color: #5597d1;
  36. border-bottom: 1px dotted #5597d1;
  37. }
  38. .comments__ico {
  39. background: url("../img/comments/commentsIco-hover.png");
  40. }
  41. }
  42. }
  43. &__ico {
  44. display: inline-block;
  45. background: url("../img/comments/commentsIco.png");
  46. width: 40px;
  47. height: 40px;
  48. vertical-align: middle;
  49. }
  50. &__comment {
  51. border-radius: 20px 0 0 0;
  52. border: 1px solid #f3f3f3;
  53. box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
  54. margin-bottom: 20px;
  55. margin-right: 3px;
  56. }
  57. &__comment--level2 {
  58. width: calc(100% - 90px);
  59. margin-left: 87px;
  60. position: relative;
  61. margin-right: 3px;
  62. &:before {
  63. position: absolute;
  64. content: '';
  65. display: block;
  66. top: -10px;
  67. left: 50px;
  68. width: 20px;
  69. height: 10px;
  70. background: url("../img/comments/commentsBefore.png");
  71. }
  72. }
  73. &__comment-text {
  74. padding: 10px;
  75. font-size: 15px;
  76. font-family: $fontopensans;
  77. color: #404040;
  78. }
  79. &__comment-info {
  80. background: #f3f3f3;
  81. padding: 10px;
  82. }
  83. &__comment-name {
  84. font-size: 17px;
  85. font-family: $fontcuprum;
  86. color: #929292;
  87. display: inline-block;
  88. padding-right: 20px;
  89. }
  90. &__comment-date {
  91. display: inline-block;
  92. font-size: 13px;
  93. font-family: $fontopensans;
  94. color: #929292;
  95. }
  96. &__comment-reply {
  97. font-size: 13px;
  98. font-family: $fontopensans;
  99. color: #a2a1a1;
  100. text-decoration: none;
  101. border-bottom: 1px dotted #a2a1a1;
  102. display: inline-block;
  103. position: relative;
  104. float: right;
  105. margin-right: 31px !important;
  106. cursor: pointer;
  107. &:after {
  108. position: absolute;
  109. content: '';
  110. display: block;
  111. width: 20px;
  112. height: 20px;
  113. right: -30px;
  114. background: url("../img/comments/commentsReply.png");
  115. top: 50%;
  116. transform: translate(0, -50%);
  117. }
  118. &:hover {
  119. color: #004d7b;
  120. border-bottom: 1px dotted #004d7b;
  121. &:after {
  122. background: url("../img/comments/commentsReply-hover.png");
  123. }
  124. }
  125. }
  126. &__show-all {
  127. font-size: 14px;
  128. font-family: $fontopensans;
  129. color: #004d7b;
  130. text-align: center;
  131. background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 47%, #fff 100%);
  132. padding: 15px 0;
  133. top: -66px;
  134. position: relative;
  135. cursor: pointer;
  136. }
  137. &__add-back-log {
  138. display: none;
  139. position: fixed;
  140. top: 0;
  141. left: 0;
  142. right: 0;
  143. bottom: 0;
  144. background: rgba(0, 0, 0, 0.7);
  145. z-index: 20;
  146. }
  147. &__add-popup {
  148. display: none;
  149. z-index: 21;
  150. position: fixed;
  151. top: 50%;
  152. background: #d7d7d7;
  153. width: 960px;
  154. padding: 15px;
  155. box-sizing: border-box;
  156. }
  157. &__add-popup-form-group--small {
  158. display: inline-block;
  159. vertical-align: top;
  160. width: calc(25% - 0.25em - 11px);
  161. margin-right: 15px;
  162. }
  163. &__add-popup-form-group--big {
  164. display: inline-block;
  165. vertical-align: top;
  166. width: calc(75% - 0.25em);
  167. }
  168. &__add-popup-form-input {
  169. width: 100%;
  170. padding: 10px;
  171. border-radius: 20px;
  172. border: none;
  173. box-sizing: border-box;
  174. margin-bottom: 15px;
  175. font-size: 11px;
  176. font-family: $fontopensans;
  177. color: #929292;
  178. }
  179. &__add-popup-form-textarea {
  180. resize: none;
  181. width: 100%;
  182. height: 140px;
  183. border: none;
  184. border-radius: 20px;
  185. padding: 15px;
  186. box-sizing: border-box;
  187. font-size: 11px;
  188. font-family: $fontopensans;
  189. color: #929292;
  190. }
  191. &__add-popup-form-submit-block {
  192. position: relative;
  193. margin-top: 10px;
  194. }
  195. &__add-popup-form-submit {
  196. font-size: 11px;
  197. font-family: $fontopensans;
  198. color: #929292;
  199. text-decoration: none;
  200. border: none;
  201. border-bottom: 1px dotted #004d7b;
  202. background: none;
  203. cursor: pointer;
  204. }
  205. &__add-popup-ico {
  206. position: absolute;
  207. display: block;
  208. right: 0;
  209. top: 10px;
  210. transform: translate(0, -50%);
  211. background: url("../img/commentsIcoPopup.png");
  212. width: 40px;
  213. height: 40px;
  214. }
  215. &__add-popup-close {
  216. position: absolute;
  217. top: -40px;
  218. right: 0;
  219. width: 28px;
  220. background: url("../img/popupclose.png");
  221. cursor: pointer;
  222. height: 28px;
  223. }
  224. }