You are here

advpoll.css in Advanced Poll 7

Same filename and directory in other branches
  1. 7.3 css/advpoll.css
  2. 7.2 css/advpoll.css
.poll {
  overflow: hidden;
}
.poll .bar {
  height: 1em;
  margin: 1px 0;
  background-color: #ddd;
}
.poll .bar .foreground {
  background-color: #000;
  height: 1em;
  float: left; /* LTR */
}
.poll .links {
  text-align: center;
}
.poll .percent {
  text-align: right; /* LTR */
}
.poll .total {
  text-align: center;
}
.poll .vote-form {
  text-align: center;
}
.poll .vote-form .choices {
  text-align: left; /* LTR */
  margin: 0 auto;
  display: table;
}
.poll .vote-form .choices .title {
  font-weight: bold;
}
.node-form #edit-poll-more {
  margin: 0;
}
.node-form #poll-choice-table .form-text {
  display: inline;
  width: auto;
}
.node-form #poll-choice-table td.choice-flag {
  white-space: nowrap;
  width: 4em;
}
td.poll-chtext {
  width: 80%;
}
td.poll-chvotes .form-text {
  width: 85%;
}

.node-advpoll #message {
    color: #DD0000;
    font-style: italic;
}

.advpoll-write-in {
    position: relative;
    width: 375px;
}

.advpoll-write-in .form-item {
    padding: 0px;
    margin: 0px;
    position: relative;
    top: -18px;
    left: 18px;
}

.advpoll-ranking-wrapper ul.selectable-list {
    margin: 0;
    padding: 0;
    float: left;
    width: 50%;
}

.advpoll-ranking-wrapper .advpoll-vote-region {
    float: right;
}

.advpoll-ranking-wrapper #message {
    clear: both;
}

.advpoll-ranking-wrapper .tabledrag-toggle-weight-wrapper {
    display: none;
}

#advpolltable {
    display: none;
    max-width: 265px;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
}

#advpolltable tbody {
    margin: 5px;
    padding-bottom: 0;
    background-color: #eee;
    text-align: left;
    
}

#advpolltable thead th {
    color: #000;
    font-weight: bold;
    text-align: center;
    padding: 5px 0 10px 0;
    background-color: transparent;
    width: 260px;
}

#advpolltable thead tr {
    background: none transparent;
}

#advpolltable tfoot td {
    text-align: center;
    padding: 0;
    margin: 0;
    width: 265px;    
}

#advpolltable tfoot tr {
    background: transparent;
    
}

#advpolltable tfoot .form-submit {
    margin: 10px 0;
}


#advpolltable tr .form-item {
    white-space: normal;
}

#advpolltable td li {
  display: block;
  width: 198px;
  list-style: none;
  float: right;
}

#advpolltable td label {
  display: block;
  word-wrap: break-word;
  width: 200px;
}

#advpolltable td .form-item label {
    display: block;
    padding: 0;
    margin: 0 0 5px 0;
    width: 210px;
    float: right;
}

.advpoll-ranking-wrapper ul.selectable-list label a,
#advpolltable td .form-item label a {
    float: right;
}

.node-advpoll .run-off-poll {
    margin: 0;
}

.node-advpoll .run-off-poll ol {
   margin: 0;
   padding: 10px 0 10px 30px;
}

.run-off-poll caption {
    text-align: center;
}

File

css/advpoll.css
View source
  1. .poll {
  2. overflow: hidden;
  3. }
  4. .poll .bar {
  5. height: 1em;
  6. margin: 1px 0;
  7. background-color: #ddd;
  8. }
  9. .poll .bar .foreground {
  10. background-color: #000;
  11. height: 1em;
  12. float: left; /* LTR */
  13. }
  14. .poll .links {
  15. text-align: center;
  16. }
  17. .poll .percent {
  18. text-align: right; /* LTR */
  19. }
  20. .poll .total {
  21. text-align: center;
  22. }
  23. .poll .vote-form {
  24. text-align: center;
  25. }
  26. .poll .vote-form .choices {
  27. text-align: left; /* LTR */
  28. margin: 0 auto;
  29. display: table;
  30. }
  31. .poll .vote-form .choices .title {
  32. font-weight: bold;
  33. }
  34. .node-form #edit-poll-more {
  35. margin: 0;
  36. }
  37. .node-form #poll-choice-table .form-text {
  38. display: inline;
  39. width: auto;
  40. }
  41. .node-form #poll-choice-table td.choice-flag {
  42. white-space: nowrap;
  43. width: 4em;
  44. }
  45. td.poll-chtext {
  46. width: 80%;
  47. }
  48. td.poll-chvotes .form-text {
  49. width: 85%;
  50. }
  51. .node-advpoll #message {
  52. color: #DD0000;
  53. font-style: italic;
  54. }
  55. .advpoll-write-in {
  56. position: relative;
  57. width: 375px;
  58. }
  59. .advpoll-write-in .form-item {
  60. padding: 0px;
  61. margin: 0px;
  62. position: relative;
  63. top: -18px;
  64. left: 18px;
  65. }
  66. .advpoll-ranking-wrapper ul.selectable-list {
  67. margin: 0;
  68. padding: 0;
  69. float: left;
  70. width: 50%;
  71. }
  72. .advpoll-ranking-wrapper .advpoll-vote-region {
  73. float: right;
  74. }
  75. .advpoll-ranking-wrapper #message {
  76. clear: both;
  77. }
  78. .advpoll-ranking-wrapper .tabledrag-toggle-weight-wrapper {
  79. display: none;
  80. }
  81. #advpolltable {
  82. display: none;
  83. max-width: 265px;
  84. margin: 0;
  85. padding: 0;
  86. border: 1px solid #ccc;
  87. }
  88. #advpolltable tbody {
  89. margin: 5px;
  90. padding-bottom: 0;
  91. background-color: #eee;
  92. text-align: left;
  93. }
  94. #advpolltable thead th {
  95. color: #000;
  96. font-weight: bold;
  97. text-align: center;
  98. padding: 5px 0 10px 0;
  99. background-color: transparent;
  100. width: 260px;
  101. }
  102. #advpolltable thead tr {
  103. background: none transparent;
  104. }
  105. #advpolltable tfoot td {
  106. text-align: center;
  107. padding: 0;
  108. margin: 0;
  109. width: 265px;
  110. }
  111. #advpolltable tfoot tr {
  112. background: transparent;
  113. }
  114. #advpolltable tfoot .form-submit {
  115. margin: 10px 0;
  116. }
  117. #advpolltable tr .form-item {
  118. white-space: normal;
  119. }
  120. #advpolltable td li {
  121. display: block;
  122. width: 198px;
  123. list-style: none;
  124. float: right;
  125. }
  126. #advpolltable td label {
  127. display: block;
  128. word-wrap: break-word;
  129. width: 200px;
  130. }
  131. #advpolltable td .form-item label {
  132. display: block;
  133. padding: 0;
  134. margin: 0 0 5px 0;
  135. width: 210px;
  136. float: right;
  137. }
  138. .advpoll-ranking-wrapper ul.selectable-list label a,
  139. #advpolltable td .form-item label a {
  140. float: right;
  141. }
  142. .node-advpoll .run-off-poll {
  143. margin: 0;
  144. }
  145. .node-advpoll .run-off-poll ol {
  146. margin: 0;
  147. padding: 10px 0 10px 30px;
  148. }
  149. .run-off-poll caption {
  150. text-align: center;
  151. }