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.

210 lines
4.1 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. &.checkbox {
  72. border-radius: 4px;
  73. }
  74. &.active {
  75. border-color: $valid-value-color;
  76. background: $valid-value-color;
  77. }
  78. }
  79. &__number {
  80. display: inline-block;
  81. width: 36px;
  82. font-weight: 700;
  83. padding: 0 10px;
  84. text-align: right;
  85. margin-top: auto;
  86. margin-bottom: auto;
  87. flex: 0 0 36px;
  88. }
  89. &__footer {
  90. padding-top: 6px;
  91. padding-bottom: 5px;
  92. color: $dark-text-color;
  93. }
  94. &__link {
  95. display: inline;
  96. background: transparent;
  97. padding: 0;
  98. margin: 0;
  99. border: 0;
  100. color: $dark-text-color;
  101. text-decoration: underline;
  102. font-size: inherit;
  103. &:hover {
  104. text-decoration: none;
  105. }
  106. &:active,
  107. &:focus {
  108. background-color: rgba($dark-text-color, .1);
  109. }
  110. }
  111. .button {
  112. height: 36px;
  113. padding: 0 16px;
  114. margin-right: 10px;
  115. font-size: 14px;
  116. }
  117. }
  118. .compose-form__poll-wrapper {
  119. border-top: 1px solid darken($simple-background-color, 8%);
  120. ul {
  121. padding: 10px;
  122. }
  123. .poll__footer {
  124. border-top: 1px solid darken($simple-background-color, 8%);
  125. padding: 10px;
  126. display: flex;
  127. align-items: center;
  128. button,
  129. select {
  130. flex: 1 1 50%;
  131. }
  132. }
  133. .button.button-secondary {
  134. font-size: 14px;
  135. font-weight: 400;
  136. padding: 6px 10px;
  137. height: auto;
  138. line-height: inherit;
  139. color: $action-button-color;
  140. border-color: $action-button-color;
  141. margin-right: 5px;
  142. }
  143. li {
  144. display: flex;
  145. align-items: center;
  146. .poll__text {
  147. flex: 0 0 auto;
  148. width: calc(100% - (23px + 6px));
  149. margin-right: 6px;
  150. }
  151. }
  152. select {
  153. appearance: none;
  154. box-sizing: border-box;
  155. font-size: 14px;
  156. color: $inverted-text-color;
  157. display: inline-block;
  158. width: auto;
  159. outline: 0;
  160. font-family: inherit;
  161. 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;
  162. border: 1px solid darken($simple-background-color, 14%);
  163. border-radius: 4px;
  164. padding: 6px 10px;
  165. padding-right: 30px;
  166. }
  167. .icon-button.disabled {
  168. color: darken($simple-background-color, 14%);
  169. }
  170. }
  171. .muted .poll {
  172. color: $dark-text-color;
  173. &__chart {
  174. background: rgba(darken($ui-primary-color, 14%), 0.2);
  175. &.leading {
  176. background: rgba($ui-highlight-color, 0.2);
  177. }
  178. }
  179. }