comments.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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: 710px;
  154. padding: 15px;
  155. box-sizing: border-box;
  156. }
  157. &__add-popup-form {
  158. &:before,
  159. &:after {
  160. content: '';
  161. clear: both;
  162. display: block;
  163. }
  164. }
  165. &__add-popup-form-group--small {
  166. float: left;
  167. width: calc(32% - 15px);
  168. margin-right: 15px;
  169. }
  170. &__add-popup-form-group--big {
  171. float: left;
  172. width: calc(68%);
  173. }
  174. &__add-popup-form-input {
  175. width: 100%;
  176. padding: 10px;
  177. border-radius: 20px;
  178. border: none;
  179. box-sizing: border-box;
  180. margin-bottom: 15px;
  181. font-size: 13px;
  182. font-family: $fontopensans;
  183. color: #929292;
  184. background-color: #fff;
  185. }
  186. &__add-popup-form-textarea {
  187. resize: none;
  188. width: 100%;
  189. height: 140px;
  190. border: none;
  191. border-radius: 20px;
  192. padding: 15px;
  193. box-sizing: border-box;
  194. font-size: 13px;
  195. font-family: $fontopensans;
  196. color: #929292;
  197. background-color: #fff;
  198. }
  199. &__add-popup-form-submit-block {
  200. position: relative;
  201. margin-top: 10px;
  202. }
  203. &__add-popup-form-submit {
  204. font-size: 13px;
  205. font-family: $fontopensans;
  206. color: #595959;
  207. text-decoration: none;
  208. border: none;
  209. background: none;
  210. cursor: pointer;
  211. vertical-align: middle;
  212. }
  213. &__add-popup-form-submit {
  214. &:hover {
  215. text-decoration: underline;
  216. }
  217. }
  218. &__add-popup-ico {
  219. vertical-align: middle;
  220. display: inline-block;
  221. background: url("../img/comments/commentsIcoPopup.png");
  222. width: 40px;
  223. height: 40px;
  224. margin-left: 5px !important;
  225. }
  226. &__add-popup-close {
  227. position: absolute;
  228. top: -40px;
  229. right: 0;
  230. width: 28px;
  231. background: url("../img/comments/popupclose.png");
  232. cursor: pointer;
  233. height: 28px;
  234. }
  235. &__add-error {
  236. font-size: 13px;
  237. color: #f00;
  238. }
  239. &__accept-rules {
  240. color: #595959;
  241. margin-top: 10px;
  242. input[type=checkbox] {
  243. -webkit-appearance: checkbox;
  244. -moz-appearance: checkbox;
  245. appearance: checkbox;
  246. vertical-align: top;
  247. }
  248. label {
  249. width: 90%;
  250. display: inline-block;
  251. }
  252. }
  253. }