You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

219 lines
4.2 KiB

  1. .poll {
  2. margin-top: 16px;
  3. font-size: 14px;
  4. li {
  5. margin-bottom: 10px;
  6. position: relative;
  7. }
  8. &__chart {
  9. position: absolute;
  10. top: 0;
  11. left: 0;
  12. height: 100%;
  13. display: inline-block;
  14. border-radius: 4px;
  15. background: darken($ui-primary-color, 14%);
  16. &.leading {
  17. background: $ui-highlight-color;
  18. }
  19. }
  20. &__text {
  21. position: relative;
  22. display: flex;
  23. padding: 6px 0;
  24. line-height: 18px;
  25. cursor: default;
  26. overflow: hidden;
  27. input[type=radio],
  28. input[type=checkbox] {
  29. display: none;
  30. }
  31. .autossugest-input {
  32. flex: 1 1 auto;
  33. }
  34. input[type=text] {
  35. display: block;
  36. box-sizing: border-box;
  37. width: 100%;
  38. font-size: 14px;
  39. color: $inverted-text-color;
  40. outline: 0;
  41. font-family: inherit;
  42. background: $simple-background-color;
  43. border: 1px solid darken($simple-background-color, 14%);
  44. border-radius: 4px;
  45. padding: 6px 10px;
  46. &:focus {
  47. border-color: $highlight-text-color;
  48. }
  49. }
  50. &.selectable {
  51. cursor: pointer;
  52. }
  53. &.editable {
  54. display: flex;
  55. align-items: center;
  56. overflow: visible;
  57. }
  58. }
  59. &__input {
  60. display: inline-block;
  61. position: relative;
  62. border: 1px solid $ui-primary-color;
  63. box-sizing: border-box;
  64. width: 18px;
  65. height: 18px;
  66. flex: 0 0 auto;
  67. margin-right: 10px;
  68. top: -1px;
  69. border-radius: 50%;
  70. vertical-align: middle;
  71. margin-top: auto;
  72. margin-bottom: auto;
  73. flex: 0 0 18px;
  74. &.checkbox {
  75. border-radius: 4px;
  76. }
  77. &.active {
  78. border-color: $valid-value-color;
  79. background: $valid-value-color;
  80. }
  81. }
  82. &__number {
  83. display: inline-block;
  84. width: 52px;
  85. font-weight: 700;
  86. padding: 0 10px;
  87. padding-left: 8px;
  88. text-align: right;
  89. margin-top: auto;
  90. margin-bottom: auto;
  91. flex: 0 0 52px;
  92. }
  93. &__vote__mark {
  94. float: left;
  95. line-height: 18px;
  96. }
  97. &__footer {
  98. padding-top: 6px;
  99. padding-bottom: 5px;
  100. color: $dark-text-color;
  101. }
  102. &__link {
  103. display: inline;
  104. background: transparent;
  105. padding: 0;
  106. margin: 0;
  107. border: 0;
  108. color: $dark-text-color;
  109. text-decoration: underline;
  110. font-size: inherit;
  111. &:hover {
  112. text-decoration: none;
  113. }
  114. &:active,
  115. &:focus {
  116. background-color: rgba($dark-text-color, .1);
  117. }
  118. }
  119. .button {
  120. height: 36px;
  121. padding: 0 16px;
  122. margin-right: 10px;
  123. font-size: 14px;
  124. }
  125. }
  126. .compose-form__poll-wrapper {
  127. border-top: 1px solid darken($simple-background-color, 8%);
  128. ul {
  129. padding: 10px;
  130. }
  131. .poll__footer {
  132. border-top: 1px solid darken($simple-background-color, 8%);
  133. padding: 10px;
  134. display: flex;
  135. align-items: center;
  136. button,
  137. select {
  138. flex: 1 1 50%;
  139. }
  140. }
  141. .button.button-secondary {
  142. font-size: 14px;
  143. font-weight: 400;
  144. padding: 6px 10px;
  145. height: auto;
  146. line-height: inherit;
  147. color: $action-button-color;
  148. border-color: $action-button-color;
  149. margin-right: 5px;
  150. }
  151. li {
  152. display: flex;
  153. align-items: center;
  154. .poll__text {
  155. flex: 0 0 auto;
  156. width: calc(100% - (23px + 6px));
  157. margin-right: 6px;
  158. }
  159. }
  160. select {
  161. appearance: none;
  162. box-sizing: border-box;
  163. font-size: 14px;
  164. color: $inverted-text-color;
  165. display: inline-block;
  166. width: auto;
  167. outline: 0;
  168. font-family: inherit;
  169. background: $simple-background-color url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.933 18.467' height='19.698' width='15.929'><path d='M3.467 14.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='#{hex-color(darken($simple-background-color, 14%))}'/></svg>") no-repeat right 8px center / auto 16px;
  170. border: 1px solid darken($simple-background-color, 14%);
  171. border-radius: 4px;
  172. padding: 6px 10px;
  173. padding-right: 30px;
  174. }
  175. .icon-button.disabled {
  176. color: darken($simple-background-color, 14%);
  177. }
  178. }
  179. .muted .poll {
  180. color: $dark-text-color;
  181. &__chart {
  182. background: rgba(darken($ui-primary-color, 14%), 0.2);
  183. &.leading {
  184. background: rgba($ui-highlight-color, 0.2);
  185. }
  186. }
  187. }