The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

211 lines
4.1 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. .autossugest-input {
  35. flex: 1 1 auto;
  36. }
  37. input[type=text] {
  38. display: block;
  39. box-sizing: border-box;
  40. width: 100%;
  41. font-size: 14px;
  42. color: $inverted-text-color;
  43. outline: 0;
  44. font-family: inherit;
  45. background: $simple-background-color;
  46. border: 1px solid darken($simple-background-color, 14%);
  47. border-radius: 4px;
  48. padding: 6px 10px;
  49. &:focus {
  50. border-color: $highlight-text-color;
  51. }
  52. }
  53. &.selectable {
  54. cursor: pointer;
  55. }
  56. &.editable {
  57. display: flex;
  58. align-items: center;
  59. overflow: visible;
  60. }
  61. }
  62. &__input {
  63. display: inline-block;
  64. position: relative;
  65. border: 1px solid $ui-primary-color;
  66. box-sizing: border-box;
  67. width: 18px;
  68. height: 18px;
  69. flex: 0 0 auto;
  70. margin-right: 10px;
  71. top: -1px;
  72. border-radius: 50%;
  73. vertical-align: middle;
  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: 36px;
  85. font-weight: 700;
  86. padding: 0 10px;
  87. text-align: right;
  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. }