MasterDalK

dbdpoll.css

Aug 19th, 2020 (edited)
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. /*
  2. Use your custom theme:
  3. Select "Custom" theme in the dashboard
  4. On your https://poll.ma.pe/overlay/<id>/ URL add ?customCss=https://example.com/style.css
  5.  
  6. Please keep the link to https://poll.ma.pe visible for a short period of time.
  7. */
  8.  
  9. @import url(https://fonts.googleapis.com/css?family=Roboto);
  10.  
  11. /*
  12. * "custom" refers to the theme assigned to the poll element
  13. */
  14. .custom {
  15. background: none;
  16. width: 1920px;
  17. transition: opacity 1s;
  18. padding: 10px;
  19.  
  20. font-family: Roboto;
  21.  
  22. // Hide when not active
  23. opacity: 0;
  24. }
  25.  
  26. .custom.finished,
  27. .custom.active {
  28. opacity: 1;
  29. }
  30.  
  31. .custom .metaInfo {
  32. display: none;
  33. }
  34. .custom .total, .custom .duration {
  35. display: none;
  36. }
  37. .custom .total strong,
  38. .custom .duration strong {
  39. display: none;
  40. }
  41. .custom.finished .options li,
  42. .custom.removing .options li {
  43. opacity: 0.3;
  44. transition: all 1s;
  45. }
  46. .custom.finished .options li.highest,
  47. .custom.removing .options li.highest {
  48. color: #ffa;
  49. opacity: 1;
  50. }
  51.  
  52. .custom.finished .options li.help,
  53. .custom.removing .options li.help {
  54. height: 0;
  55. }
  56. .custom.finished .metaInfo,
  57. .custom.removing .metaInfo {
  58. opacity: 0.3;
  59. }
  60. .custom.active .options li.help {
  61. height: 35px;
  62. }
  63. .custom .options li {
  64. position: relative;
  65. border: 1px;
  66. padding: 10px;
  67. color: #a9131a;
  68. text-overflow: ellipsis;
  69. background: none;
  70. padding-right: 55px;
  71. padding-left: 55px;
  72. font-size: 15px;
  73. }
  74. .custom .options li.question {
  75. display: none;
  76. }
  77. .custom .options li.help {
  78. display: none;
  79. }
  80. .custom .options li.help span {
  81. display: block;
  82. padding: 10px;
  83. display: none;
  84. }
  85. .custom .options li .procent {
  86. position: absolute;
  87. top: 10px;
  88. right: 15px;
  89. }
  90. .custom .options li .number {
  91. }
  92. .custom .options li .bar {
  93. background: #4a4a4a;
  94. height: 15px;
  95. margin-top: 5px;
  96. }
  97. .custom .options li .bar .bar-inner {
  98. background: #a9131a;
  99. height: 100%;
  100. width: 0;
  101. transition: width 1s;
  102. position: relative;
  103. }
  104. .custom .options li .text {
  105. line-height: 1.3;
  106. }
  107.  
  108. /*
  109. * Optional outer border
  110. */
  111. .custom .border {
  112. border: none;
  113. }
  114.  
  115.  
  116. .custom .credits {
  117. opacity: 0;
  118. height: 0;
  119. }
  120. .custom .credits {
  121. text-align: center;
  122. opacity: 1;
  123. transition: all 1s;
  124. height: 25px;
  125. clear: both;
  126. overflow: hidden;
  127. }
  128. .custom.active .credits, .custom.removing .credits {
  129. height: 0;
  130. opacity: 0;
  131. }
  132.  
  133.  
  134. /*
  135. * Positioning
  136. */
  137. .custom.topLeft {
  138. top: 20px;
  139. left: 20px;
  140. }
  141. .custom.topCenter {
  142. top: 20px;
  143. left: 50%;
  144. transform: translate(-50%, 0);
  145. }
  146. .custom.topRight {
  147. top: 20px;
  148. right: 20px;
  149. }
  150. .custom.middleLeft {
  151. top: 50%;
  152. transform: translate(0, -50%);
  153. left: 20px;
  154. }
  155. .custom.middleCenter {
  156. top: 50%;
  157. transform: translate(-50%, -50%);
  158. left: 50%;
  159. }
  160. .custom.middleRight {
  161. top: 50%;
  162. transform: translate(0, -50%);
  163. right: 20px;
  164. }
  165. .custom.bottomLeft {
  166. bottom: 20px;
  167. left: 20px;
  168. }
  169. .custom.bottomCenter {
  170. bottom: 20px;
  171. left: 50%;
  172. transform: translate(-50%, 0);
  173. }
  174. .custom.bottomRight {
  175. bottom: 20px;
  176. right: 20px;
  177. }
  178.  
Add Comment
Please, Sign In to add comment