poll.less 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. .poll {
  2. margin-bottom: 59px;
  3. &__wrapper {
  4. padding: 23px 31px 28px;
  5. background-color: @color-dark-blue;
  6. }
  7. &__topic {
  8. margin-bottom: 14px;
  9. }
  10. &__topic-wrapper {
  11. display: flex;
  12. justify-content: space-between;
  13. align-items: center;
  14. }
  15. &__topic-title {
  16. padding: 0 8px;
  17. letter-spacing: 0.08em;
  18. white-space: nowrap;
  19. text-transform: uppercase;
  20. color: rgba(@color-white, .5);
  21. font: 700 12px/17px @font-main;
  22. }
  23. &__topic-line {
  24. .size(100%, 1px);
  25. flex-grow: 1;
  26. background-color: rgba(@color-white, .5);
  27. }
  28. &__title {
  29. margin-bottom: 32px;
  30. font: 700 18px/26px @font-main;
  31. color: @color-white;
  32. text-align: center;
  33. }
  34. }
  35. @media @media-sm {
  36. .poll {
  37. margin-bottom: 24px;
  38. &__wrapper {
  39. padding: 20px 16px;
  40. }
  41. }
  42. }
  43. .poll_small {
  44. position: relative;
  45. margin-bottom: 0;
  46. height: 402px;
  47. .poll {
  48. &__wrapper {
  49. padding: 23px 28px 22px 21px;
  50. height: 100%;
  51. }
  52. &__first {
  53. position: absolute;
  54. left: 0;
  55. right: 0;
  56. bottom: 0;
  57. top: 46px;
  58. background-color: @color-dark-blue;
  59. z-index: 10;
  60. }
  61. &__topic {
  62. margin-bottom: 6px;
  63. }
  64. }
  65. }
  66. .poll-first {
  67. height: 100%;
  68. padding: 0 28px 30px;
  69. &__title {
  70. margin-top: 96px;
  71. margin-bottom: 39px;
  72. min-height: 105px;
  73. text-align: center;
  74. font: 24px/34px @font-main;
  75. color: @color-white;
  76. }
  77. &__actions {
  78. display: flex;
  79. justify-content: center;
  80. margin-bottom: 21px;
  81. }
  82. &__result {
  83. text-align: center;
  84. font: 14px/20px @font-main;
  85. color: @color-white;
  86. }
  87. }
  88. .poll-second {
  89. &__title {
  90. display: flex;
  91. align-items: flex-end;
  92. text-align: center;
  93. margin-bottom: 44px;
  94. min-height: 107px;
  95. font: 24px/34px @font-main;
  96. color: @color-white;
  97. }
  98. }
  99. .poll-form {
  100. &__list {
  101. display: flex;
  102. flex-wrap: wrap;
  103. margin: 0 -26.5px;
  104. }
  105. &__item {
  106. flex: 0 1 33.33333333%;
  107. max-width: 33.33333333%;
  108. padding: 0 26.5px;
  109. margin-bottom: 18px;
  110. }
  111. &__actions {
  112. display: flex;
  113. justify-content: center;
  114. }
  115. }
  116. @media @media-sm {
  117. .poll-form {
  118. &__list {
  119. margin: 0 -10px;
  120. }
  121. &__item {
  122. flex: 0 1 50%;
  123. max-width: 50%;
  124. padding: 0 10px;
  125. margin-bottom: 20px;
  126. }
  127. }
  128. }
  129. @media @media-xs {
  130. .poll-form {
  131. &__list {
  132. margin: 0 0 24px 0;
  133. }
  134. &__item {
  135. flex: 0 1 100%;
  136. max-width: 100%;
  137. padding: 0;
  138. margin-bottom: 20px;
  139. }
  140. }
  141. }
  142. .poll-form_columns {
  143. .poll-form {
  144. &__list {
  145. display: block;
  146. margin-bottom: 17px;
  147. }
  148. &__item {
  149. margin-bottom: 0;
  150. max-width: none;
  151. &:not(:last-child) {
  152. margin-bottom: 22px;
  153. }
  154. }
  155. &__votes {
  156. display: none;
  157. padding-left: 40px;
  158. font: 14px/18px @font-main;
  159. color: @color-white;
  160. }
  161. &__radio {
  162. &.disabled {
  163. .radio {
  164. pointer-events: none;
  165. }
  166. }
  167. }
  168. }
  169. .radio__text {
  170. font: 700 18px/23px @font-main;
  171. }
  172. }
  173. @media @media-xs {
  174. .poll-form_columns {
  175. .radio__text {
  176. font: 700 15px/20px @font-main;
  177. }
  178. .poll-form {
  179. &__votes {
  180. padding-left: 0;
  181. }
  182. }
  183. }
  184. }