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.

_polls.scss 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. .poll-dialog {
  2. font-size: 14px;
  3. font-weight: 400;
  4. line-height: 20px;
  5. h1, span, li, strong {
  6. color: #bce;
  7. }
  8. ol {
  9. margin: 0;
  10. }
  11. }
  12. .poll-question-field {
  13. padding: 8px 16px;
  14. padding-bottom: 24px;
  15. border-bottom: 1px solid #525252;
  16. }
  17. .poll-header {
  18. margin-bottom: 8px;
  19. }
  20. .poll-answer-container {
  21. background: #3D3D3D;
  22. border-radius: 3px;
  23. margin-bottom: 8px;
  24. @media (max-width: 580px) {
  25. &> span {
  26. padding: 8px 0;
  27. }
  28. svg {
  29. margin-top: 6px;
  30. }
  31. }
  32. }
  33. .poll-answer-option {
  34. font-weight: 400;
  35. display: block;
  36. margin: 4px;
  37. @media (max-width: 580px) {
  38. font-size: 16px;
  39. margin: 11px 8px
  40. }
  41. }
  42. .poll-answer-field-list, .poll-answer-list, .poll-result-list {
  43. list-style-type: none;
  44. padding: 0;
  45. margin: 0;
  46. }
  47. .poll-answer-field-list {
  48. padding: 0 16px;
  49. }
  50. ol.poll-result-list {
  51. margin-bottom: 1.5em;
  52. }
  53. .poll-result-list > li {
  54. margin-bottom: 16px;
  55. }
  56. .poll-answer-field {
  57. flex-direction: column;
  58. align-items: stretch;
  59. margin-bottom: 16;
  60. }
  61. .poll-answer-field:last-child {
  62. margin-bottom: 0;
  63. }
  64. .poll-create-option-row {
  65. display: 'flex';
  66. margin-bottom: 4;
  67. }
  68. // Needeed to override atlaskit default blue color
  69. .poll-create-container .jsYMHu {
  70. background: #292929;
  71. border-color: #808090;
  72. color: #fff // #808090
  73. }
  74. .poll-add-button {
  75. display: flex;
  76. justify-content: center;
  77. padding: 8px 16px;
  78. }
  79. .poll-remove-option-button {
  80. background: 0 0;
  81. border: none;
  82. color: #E04757;
  83. padding-left: 0;
  84. }
  85. .poll-create-add-option {
  86. border: none;
  87. background-color: #292929;
  88. padding: 3px;
  89. width: 100%;
  90. }
  91. .poll-icon-button, .poll-drag-handle {
  92. .jitsi-icon svg {
  93. fill: #929292;
  94. }
  95. }
  96. .poll-drag-handle {
  97. background-color: transparent;
  98. border: none;
  99. cursor: grab;
  100. padding-left: 8;
  101. padding-top: 8px;
  102. display: flex;
  103. }
  104. .poll-dragged {
  105. opacity: 0.5;
  106. * {
  107. cursor: grabbing !important;
  108. }
  109. }
  110. .poll-question {
  111. font-size: 16px;
  112. font-weight: 600;
  113. margin-bottom: 16px;
  114. }
  115. .poll-answer-voters {
  116. font-weight: lighter;
  117. list-style-type: none;
  118. border: #616161 solid 1px;
  119. border-radius: 3px;
  120. padding: 2px 6px;
  121. margin: 4px 0px 12px;
  122. background-color: #616161;
  123. }
  124. .poll-answer-header {
  125. display: flex;
  126. justify-content: space-between;
  127. }
  128. .poll-answer-vote-name {
  129. flex-shrink: 1;
  130. overflow-wrap: anywhere
  131. }
  132. .poll-answer-vote-count-container{
  133. display: flex;
  134. }
  135. .poll-answer-vote-count {
  136. margin-left: 10px;
  137. white-space: nowrap;
  138. flex: 1;
  139. text-align: right;
  140. }
  141. .poll-answer-short-results{
  142. display: flex;
  143. min-width: 10em;
  144. justify-content: space-between;
  145. align-items: center;
  146. }
  147. .poll-bar-container, .poll-bar {
  148. border-radius: 3px;
  149. height: 6px;
  150. }
  151. .poll-bar-container {
  152. background-color: #616161;
  153. max-width: 160px;
  154. margin-top: 3px;
  155. flex: 1;
  156. }
  157. .poll-bar {
  158. background-color: #246FE5;
  159. }
  160. .poll-message-footer {
  161. display: flex;
  162. justify-content: space-between;
  163. align-items: center;
  164. font-size: 12px;
  165. margin-top: 5px;
  166. }
  167. .poll-notice {
  168. font-weight: 100;
  169. margin-right: 10px;
  170. }
  171. .poll-show-details {
  172. background-color: transparent;
  173. border: none;
  174. &:hover {
  175. text-decoration: underline;
  176. }
  177. }
  178. .poll-result-links {
  179. display: flex;
  180. flex-direction: row;
  181. justify-content: space-between;
  182. a.poll-detail-link, a.poll-change-vote-link {
  183. color: #669AEC;
  184. cursor: pointer;
  185. font-weight: 600;
  186. text-decoration: none;
  187. &:hover {
  188. color: #669AEC;
  189. }
  190. &:visited {
  191. color: #669AEC;
  192. }
  193. }
  194. }
  195. .polls-pane-content {
  196. height: calc(100% - 102px);
  197. position: relative;
  198. @media (max-width: 580px) {
  199. height: 100%;
  200. }
  201. }
  202. .pane-content{
  203. display: flex;
  204. flex-direction: column;
  205. height: 100%;
  206. justify-content: center;
  207. align-items: center;
  208. width: 100%;
  209. }
  210. .empty-pane-icon {
  211. width: 50%;
  212. padding: 24px;
  213. }
  214. .empty-pane-icon svg {
  215. fill: #3D3D3D;
  216. width: 100%;
  217. height: auto;
  218. }
  219. .empty-pane-message {
  220. color: #fff;
  221. padding: 0 16px;
  222. text-align: center;
  223. }
  224. .poll-results, .poll-answer {
  225. background: #292929;
  226. border-radius: 8px;
  227. border: 1px solid #666666;
  228. margin: 16px;
  229. padding: 16px;
  230. word-break: break-word;
  231. }
  232. .poll-results {
  233. color: #fff;
  234. }
  235. .poll-answer {
  236. h1, strong ,span {
  237. color: #fff;
  238. }
  239. }
  240. .poll-create-label {
  241. color: #C2C2C2;
  242. display: flex;
  243. font-weight: 400;
  244. margin-bottom: 4;
  245. }
  246. .expandable-input{
  247. line-height: 18px;
  248. resize: none;
  249. width: 100%;
  250. height: 40px;
  251. box-sizing: border-box;
  252. overflow: hidden;
  253. border: 1px solid #666666;
  254. background-color: #141414;
  255. color: #FFF;
  256. border-radius: 6px;
  257. padding: 10px 16px;
  258. }
  259. .poll-container {
  260. font-size: 14px;
  261. font-weight: 600;
  262. height: calc(100% - 88px);
  263. line-height: 20px;
  264. overflow-y: auto;
  265. position: relative;
  266. & > * + *:not(.ignore-child) {
  267. margin-top: 16px;
  268. }
  269. @media (max-width: 580px) {
  270. height: calc(100% - 102px);
  271. }
  272. }
  273. .poll-create-header {
  274. color: #fff;
  275. font-size: 20px;
  276. line-height: 28px;
  277. margin: 20px 16px;
  278. font-weight: 600;
  279. }
  280. .poll-create-container {
  281. padding: 8px 0;
  282. }
  283. .poll-create-footer {
  284. background-color: #141414;
  285. bottom: 0;
  286. position: absolute;
  287. width: calc(100% - 32px);
  288. }
  289. .poll-footer {
  290. display: flex;
  291. justify-content: space-between;
  292. padding: 0 16px 16px 16px;
  293. }
  294. .poll-answer-footer {
  295. padding: 8px 0 0 0;
  296. }
  297. .poll-button {
  298. align-items: center;
  299. border: 0;
  300. border-radius: 6px;
  301. font-size: 14px;
  302. font-weight: 600;
  303. display: flex;
  304. justify-content: center;
  305. min-height: 40px;
  306. width: 100%;
  307. &:disabled {
  308. cursor: initial;
  309. }
  310. @media (max-width: 580px) {
  311. min-height: 48px;
  312. }
  313. }
  314. .poll-button-primary {
  315. background-color: #0056E0;
  316. &:hover {
  317. background-color: #246FE5;
  318. }
  319. &:active {
  320. background-color: #0045B3;
  321. }
  322. &:focus {
  323. background-color: #0045B3;
  324. border: 3px solid #99BBF3;
  325. }
  326. &:disabled {
  327. background-color: #00225A;
  328. color: #858585;
  329. }
  330. }
  331. .poll-button-secondary {
  332. background-color: #3D3D3D;
  333. &:hover {
  334. background-color: #525252;
  335. }
  336. &:active {
  337. background-color: #292929;
  338. }
  339. &:focus {
  340. background-color: #292929;
  341. border: 3px solid #858585;
  342. }
  343. &:disabled {
  344. background-color: #141414;
  345. color: #858585;
  346. }
  347. }
  348. .poll-button-short {
  349. max-width: 132px;
  350. }
  351. .poll-button-shortest {
  352. max-width: 117px;
  353. }
  354. .poll-button-short,
  355. .poll-button-shortest {
  356. @media (max-width: 580px) {
  357. min-width: 49%;
  358. }
  359. }