main.css 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*!
  2. * FileName : main.css
  3. * WebSite : 通用投票
  4. * Desc :
  5. * Author : petsa
  6. * Version : 0.0.1_beta
  7. * LastChange :
  8. * */
  9. body {
  10. margin: 0;
  11. word-wrap: break-word;
  12. min-height: 100%;
  13. _height: 100%;
  14. }
  15. dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,select,textarea,p,blockquote,th,td,
  16. article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  17. margin: 0;
  18. padding: 0;
  19. }
  20. /* 去除默认边框 */
  21. fieldset,iframe,img,abbr,acronym {
  22. border: 0 none;
  23. }
  24. img {
  25. -ms-interpolation-mode: bicubic;
  26. }
  27. /* 修复下方3pxBug */
  28. img,iframe {
  29. vertical-align: middle;
  30. }
  31. input,button,textarea,select,optgroup,option {
  32. font-family: inherit;
  33. font-size: inherit;
  34. font-style: inherit;
  35. font-weight: inherit;
  36. }
  37. /* 列表元素 */
  38. ol,ul,menu {
  39. list-style: none outside none;
  40. }
  41. /* 表格元素 */
  42. table {
  43. border-collapse: collapse;
  44. border-spacing: 0;
  45. }
  46. address,caption,cite,code,dfn,em,i,th,var,optgroup {
  47. font-style: normal;
  48. font-weight: normal;
  49. }
  50. .dw-vote-ctn *{
  51. padding:0px;
  52. margin:0px;
  53. }
  54. .dw-vote-ctn{padding:20px; font-size: 12px!important; color:#666!important;}
  55. .dw-vote-hd{}
  56. .dw-vote-hd h2{font-size: 16px!important; color:#007EC3; padding-left:18px; background:url(../img/icon-vote.png) no-repeat center left;}
  57. .dw-vote-hd h2 .note-desc{font-size: 12px; color:#666!important; font-weight:normal;}
  58. .dw-vote-hd .info{padding:10px 0px;}
  59. .dw-vote-hd .info .vote-people{padding-right: 12px;}
  60. .dw-vote-hd .info .vote-time em{padding:0px 4px;}
  61. .dw-vote-hidebox{
  62. padding:12px 15px; border: 1px solid #EAEAEA;
  63. margin-bottom:20px;
  64. background:transparent;
  65. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7fFDFDFD,endColorstr=#7fFDFDFD);
  66. zoom: 1;
  67. background-color: rgba(253,253,253,0.5); border: 1px solid rgba(213,213,213,0.5);
  68. }
  69. :root .dw-vote-hidebox{filter:none\9}/*for IE9*/
  70. .dw-vote-hidebox p{line-height: 1.5em;}
  71. .dw-vote-hidebox .hide-note{display:block; padding-top:12px; color:#FF0000;}
  72. .dw-vote-content{padding:20px 18px 1px; margin-bottom:20px;}
  73. .dw-vote-content-requier{padding:19px 17px 0px; border: 1px solid #F0E7C5; border: 1px solid rgba(216,197,125,0.5);
  74. background:transparent;
  75. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7ffcfcce,endColorstr=#7ffcfcce);
  76. zoom: 1;
  77. background-color: rgba(252,252,206,0.5);}
  78. :root .dw-vote-content-requier{filter:none\9}/*for IE9*/
  79. .dw-vote-content .dw-vote-item-hd{padding-bottom:15px; color:#333;}
  80. .dw-vote-content .dw-vote-item-hd h3 .note-desc{font-size: 12px; color:#666!important; font-weight:normal;}
  81. .dw-vote-list li{padding: 0px 110px 25px 20px; position: relative; *zoom:1;}
  82. .dw-vote-list li .vote-input{position: absolute; top: 0px; left: 0px; /*HACK ie6,ie7*/ *top: -2px; *left: -2px;}
  83. .dw-vote-list li .vote-state{ position: absolute; bottom: 25px; right: 0px; width: 110px; text-indent: 1em;}
  84. .dw-vote-list li .vote-state .persent{color:#333!important;}
  85. .dw-vote-list .vote-handle label{padding-bottom:8px; display:block; cursor: pointer;}
  86. .dw-vote-list .vote-handle .vote-bar{background-color: #F0F0F0; height:10px; display:block; width: 100%; border: 1px solid #D8D8D8; position: relative;
  87. -webkit-box-shadow: inset 0 1px 1px 0 #fff;
  88. box-shadow: inset 0 1px 1px 0 #fff;
  89. border-radius:4px;
  90. background-image:-webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #E9E9E9), color-stop(1, #FCFCFC));
  91. }
  92. .dw-vote-list .vote-handle .vote-bar-inner{position: absolute; top: -1px; left: -1px; height:10px; border: 1px solid #8B8B8B; background-color: #999; width: 30%; font-size: 0;
  93. border-radius:4px;
  94. -webkit-box-shadow: inset 0 1px 1px 0 #fff;
  95. box-shadow: inset 0 1px 1px 0 #fff;
  96. }
  97. .dw-vote-list .vote-list-c1 .vote-handle .vote-bar-inner{
  98. border-color: #6EB56C;
  99. -webkit-box-shadow: inset 0 1px 1px 0 #D9F2B7;
  100. box-shadow: inset 0 1px 1px 0 #D9F2B7;
  101. background-image:-webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #AFE26C), color-stop(1, #8ACD4B));
  102. background-color: #92D252;
  103. }
  104. .dw-vote-list .vote-list-c2 .vote-handle .vote-bar-inner{
  105. border-color: #D0266D;
  106. -webkit-box-shadow: inset 0 1px 1px 0 #FEBECE;
  107. box-shadow: inset 0 1px 1px 0 #FEBECE;
  108. background-image:-webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #FC799C), color-stop(1, #F24C85));
  109. background-color: #F76290;
  110. }
  111. .dw-vote-list .vote-list-c3 .vote-handle .vote-bar-inner{
  112. border-color: #EC8929;
  113. -webkit-box-shadow: inset 0 1px 1px 0 #FFDEAD;
  114. box-shadow: inset 0 1px 1px 0 #FFDEAD;
  115. background-image:-webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #FFBB59), color-stop(1, #FDA246));
  116. background-color: #FEAB4D;
  117. }
  118. .dw-vote-list .vote-list-c4 .vote-handle .vote-bar-inner{
  119. border-color: #D26BCA;
  120. -webkit-box-shadow: inset 0 1px 1px 0 #F7D3F4;
  121. box-shadow: inset 0 1px 1px 0 #F7D3F4;
  122. background-image:-webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #ECA3E7), color-stop(1, #DB7FD5));
  123. background-color: #E18CDC;
  124. }
  125. .dw-vote-list .vote-list-c5 .vote-handle .vote-bar-inner{
  126. border-color: #438ECA;
  127. -webkit-box-shadow: inset 0 1px 1px 0 #BCE7FD;
  128. box-shadow: inset 0 1px 1px 0 #BCE7FD;
  129. background-image:-webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #77CDF8), color-stop(1, #61B1E3));
  130. background-color: #6CBFED;
  131. }
  132. .dw-vote-list .vote-list-c1 .vote-state .vote-num{color:#619828!important;}
  133. .dw-vote-list .vote-list-c2 .vote-state .vote-num{color:#F4568A!important;}
  134. .dw-vote-list .vote-list-c3 .vote-state .vote-num{color:#E58521!important;}
  135. .dw-vote-list .vote-list-c4 .vote-state .vote-num{color:#CC50C4!important;}
  136. .dw-vote-list .vote-list-c5 .vote-state .vote-num{color:#2F8AC3!important;}
  137. .dw-vote-ft{padding:0px 0px 0px 38px;}
  138. .dw-vote-ft .dw-vote-button{border: 1px solid #2791CA; background-color: #269DDC;
  139. margin-right:8px;
  140. background-image:-webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #38A7E4), color-stop(1, #1D97D8));
  141. -webkit-box-shadow: inset 0 1px 1px 0 #74C2EC;
  142. box-shadow: inset 0 1px 1px 0 #74C2EC;
  143. display:inline-block; *display:inline; *zoom:1;
  144. }
  145. .dw-vote-ft .dw-vote-button input.handle{ background: none; border: 0 solid #CCC; color:#fff; padding:0px 15px; font-weight:bold; font-size: 16px!important; height: 30px;}
  146. .dw-vote-ft .dw-vote-button input.handle:active{padding-top:1px;}
  147. .dw-vote-ft .dw-vote-button-forbit{
  148. border: 1px solid #C8C8C8; background-color: #F0F0F0;
  149. background-image:-webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #FFFFFF), color-stop(1, #E7E7E7));
  150. -webkit-box-shadow: inset 1px 0px 1px 0 #fff;
  151. box-shadow: inset 1px 0px 1px 0 #fff;
  152. display:inline-block; *display:inline; *zoom:1;
  153. }
  154. .dw-vote-ft .dw-vote-button-forbit input.handle{color:#999999; cursor: not-allowed;}
  155. .dw-vote-ft .vote-tips{font-size: 16px; color:#666666; font-weight:bold;}
  156. /*浅色样式1黄色*/
  157. .dw-vote-ctn-s1 .dw-vote-hidebox{border: 1px solid #D2D8CB;}
  158. .dw-vote-ctn-s1 .dw-vote-hidebox p{color:#333;}
  159. /*浅色样式2绿色框*/
  160. .dw-vote-ctn-s2 .dw-vote-hidebox{border: 1px solid #E1DBC2;}
  161. .dw-vote-ctn-s2 .dw-vote-hidebox p{color:#333;}
  162. /*深色样式3*/
  163. .dw-vote-ctn-s3 .dw-vote-bd{ color:#999!important;}
  164. .dw-vote-ctn-s3 .dw-vote-hidebox{
  165. background:transparent;
  166. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f565656,endColorstr=#7f565656);
  167. zoom: 1;
  168. border: 1px solid #434342;
  169. background-color: rgba(86,86,86,0.5); border: 1px solid rgba(117,117,117,0.5);}
  170. .dw-vote-ctn-s3 .dw-vote-hidebox p{color:#CCCCCC;}
  171. .dw-vote-ctn-s3 .dw-vote-item-hd h3{color:#ccc;}
  172. .dw-vote-ctn-s3 .dw-vote-list li .vote-state .persent{color:#999!important;}
  173. .dw-vote-ctn-s3 .dw-vote-content-requier{padding:19px 17px 0px; border: 1px solid #1C2E40; border: 1px solid rgba(39,75,112,0.5);
  174. background:transparent;
  175. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f1B2C3C,endColorstr=#7f1B2C3C);
  176. zoom: 1;
  177. background-color: rgba(27,44,60,0.5);}
  178. :root .dw-vote-ctn-s3 .dw-vote-content-requier{filter:none\9}/*for IE9*/