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.

204 lines
4.0 KiB

  1. .poll {
  2. margin-top: 16px;
  3. font-size: 14px;
  4. li {
  5. margin-bottom: 10px;
  6. position: relative;
  7. height: 18px + 12px;
  8. }
  9. &__chart {
  10. position: absolute;
  11. top: 0;
  12. left: 0;
  13. height: 100%;
  14. display: inline-block;
  15. border-radius: 4px;
  16. background: darken($ui-primary-color, 14%);
  17. &.leading {
  18. background: $ui-highlight-color;
  19. }
  20. }
  21. &__text {
  22. position: relative;
  23. display: inline-block;
  24. padding: 6px 0;
  25. line-height: 18px;
  26. cursor: default;
  27. white-space: nowrap;
  28. overflow: hidden;
  29. text-overflow: ellipsis;
  30. input[type=radio],
  31. input[type=checkbox] {
  32. display: none;
  33. }
  34. input[type=text] {
  35. display: block;
  36. box-sizing: border-box;
  37. flex: 1 1 auto;
  38. width: 20px;
  39. font-size: 14px;
  40. color: $inverted-text-color;
  41. display: block;
  42. outline: 0;
  43. font-family: inherit;
  44. background: $simple-background-color;
  45. border: 1px solid darken($simple-background-color, 14%);
  46. border-radius: 4px;
  47. padding: 6px 10px;
  48. &:focus {
  49. border-color: $highlight-text-color;
  50. }
  51. }
  52. &.selectable {
  53. cursor: pointer;
  54. }
  55. &.editable {
  56. display: flex;
  57. align-items: center;
  58. }
  59. }
  60. &__input {
  61. display: inline-block;
  62. position: relative;
  63. border: 1px solid $ui-primary-color;
  64. box-sizing: border-box;
  65. width: 18px;
  66. height: 18px;
  67. flex: 0 0 auto;
  68. margin-right: 10px;
  69. top: -1px;
  70. border-radius: 50%;
  71. vertical-align: middle;
  72. &.checkbox {
  73. border-radius: 4px;
  74. }
  75. &.active {
  76. border-color: $valid-value-color;
  77. background: $valid-value-color;
  78. }
  79. }
  80. &__number {
  81. display: inline-block;
  82. width: 36px;
  83. font-weight: 700;
  84. padding: 0 10px;
  85. text-align: right;
  86. }
  87. &__footer {
  88. padding-top: 6px;
  89. padding-bottom: 5px;
  90. color: $dark-text-color;
  91. }
  92. &__link {
  93. display: inline;
  94. background: transparent;
  95. padding: 0;
  96. margin: 0;
  97. border: 0;
  98. color: $dark-text-color;
  99. text-decoration: underline;
  100. font-size: inherit;
  101. &:hover,
  102. &:focus,
  103. &:active {
  104. text-decoration: none;
  105. }
  106. }
  107. .button {
  108. height: 36px;
  109. padding: 0 16px;
  110. margin-right: 10px;
  111. font-size: 14px;
  112. }
  113. }
  114. .compose-form__poll-wrapper {
  115. border-top: 1px solid darken($simple-background-color, 8%);
  116. ul {
  117. padding: 10px;
  118. }
  119. .poll__footer {
  120. border-top: 1px solid darken($simple-background-color, 8%);
  121. padding: 10px;
  122. display: flex;
  123. align-items: center;
  124. button,
  125. select {
  126. flex: 1 1 50%;
  127. }
  128. }
  129. .button.button-secondary {
  130. font-size: 14px;
  131. font-weight: 400;
  132. padding: 6px 10px;
  133. height: auto;
  134. line-height: inherit;
  135. color: $action-button-color;
  136. border-color: $action-button-color;
  137. margin-right: 5px;
  138. }
  139. li {
  140. display: flex;
  141. align-items: center;
  142. .poll__text {
  143. flex: 0 0 auto;
  144. width: calc(100% - (23px + 6px));
  145. margin-right: 6px;
  146. }
  147. }
  148. select {
  149. appearance: none;
  150. box-sizing: border-box;
  151. font-size: 14px;
  152. color: $inverted-text-color;
  153. display: inline-block;
  154. width: auto;
  155. outline: 0;
  156. font-family: inherit;
  157. 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;
  158. border: 1px solid darken($simple-background-color, 14%);
  159. border-radius: 4px;
  160. padding: 6px 10px;
  161. padding-right: 30px;
  162. }
  163. .icon-button.disabled {
  164. color: darken($simple-background-color, 14%);
  165. }
  166. }
  167. .muted .poll {
  168. color: $dark-text-color;
  169. &__chart {
  170. background: rgba(darken($ui-primary-color, 14%), 0.2);
  171. &.leading {
  172. background: rgba($ui-highlight-color, 0.2);
  173. }
  174. }
  175. }