Skip to content

Instantly share code, notes, and snippets.

@backflip
Created December 26, 2011 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save backflip/1521070 to your computer and use it in GitHub Desktop.
Save backflip/1521070 to your computer and use it in GitHub Desktop.
WordPress Polldaddy CSS
/**
* Styles for the Polldaddy widget (not used for now, but who knows...)
* Some definitions were commented out when the design changed
*/
.PDS_Poll {
display: block !important;
}
/*.pds-box {
background: #f1f1f1;
-khtml-border-radius: 0.5em;
-moz-border-radius: 0.5em;
-ms-border-radius: 0.5em;
-o-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
border-radius: 0.5em;
padding: 1em;
}
.no-borderradius .pds-box {
margin-top: 1em;
padding: 0.6em 1em;
position: relative;
}
.no-borderradius .pds-box:before,
.no-borderradius .pds-box:after {
background: url('../img/fallback.png') no-repeat 100% -100px;
content: "";
display: block;
height: 5px;
left: 0;
position: absolute;
top: -5px;
width: 100%;
}
.no-borderradius .pds-box:after {
background-position: 100% -105px;
bottom: -5px;
top: auto;
}*/
.pds-clear {
display: block;
clear: both;
}
.pds-question-top {
font-size: 1.33em;
font-weight: bold;
margin-bottom: 0.75em;
position: relative;
}
.pds-answer {
padding-bottom: 1em;
}
.pds-radiobutton {
*margin: -0.2em;
}
.pds-answer label {
position: relative;
}
.pds-answer-group {
display: block;
margin-bottom: 0.75em;
}
.pds-answer-group br {
display: none;
}
.pds-answer-input {
display: block;
float: left;
width: 1.5em;
}
.pds-input-label {
cursor: pointer;
display: block;
}
.pds-answer-other br {
display: none;
}
.pds-other-label {
cursor: pointer;
}
.pds-feedback-group {
display: block;
margin-bottom: 1em;
}
.pds-feedback-label {
display: block;
}
.pds-feedback-result {
float: right;
}
.pds-answer-text {
float: left
}
.pds-feedback-per {
color: #039;
font-weight: bold;
}
.pds-feedback-votes {
color: #666;
font-weight: normal;
}
.pds-answer-feedback {
-khtml-border-radius: 0.25em;
-moz-border-radius: 0.25em;
-ms-border-radius: 0.25em;
-o-border-radius: 0.25em;
-webkit-border-radius: 0.25em;
border-radius: 0.25em;
background: #fff;
margin-top: 0.1em;
overflow: hidden;
padding: 0.45em;
position: relative;
}
.pds-answer-feedback-bar {
-khtml-border-radius: 0.25em;
-moz-border-radius: 0.25em;
-ms-border-radius: 0.25em;
-o-border-radius: 0.25em;
-webkit-border-radius: 0.25em;
border-radius: 0.25em;
background: #039;
height: 1.5em;
margin-right: 0.5em;
/*max-width: 85%;*/
min-width: 0.5em;
}
.pds-vote br {
display: none;
}
.pds-vote-button {
background: #f00;
border: 1px solid #d60000;
-khtml-border-radius: 0.2em;
-moz-border-radius: 0.2em;
-ms-border-radius: 0.2em;
-o-border-radius: 0.2em;
-webkit-border-radius: 0.2em;
border-radius: 0.2em;
color: #fff;
display: inline-block;
font-size: 1.2em;
font-weight: bold;
line-height: 1;
margin-bottom: 1em;
padding: 0.35em 1em 0.3em 1em;
white-space: nowrap;
}
.pds-vote-button:hover,
.pds-vote-button:focus,
.pds-vote-button:active {
background: #d60000;
color: #fff;
}
.no-borderradius .pds-vote-button,
.no-borderradius .pds-vote-button span {
background: url('../img/fallback.png') no-repeat 0 -250px;
border: none;
padding: 0 0 0 1em;
}
.no-borderradius .pds-vote-button span {
background-position: 100% -250px;
display: inline-block;
padding: 0.4em 1em 0.4em 0;
}
.no-borderradius .pds-vote-button:hover,
.no-borderradius .pds-vote-button:focus,
.no-borderradius .pds-vote-button:active {
background-position: 0 -300px;
}
.no-borderradius .pds-vote-button:hover span,
.no-borderradius .pds-vote-button:focus span,
.no-borderradius .pds-vote-button:active span {
background-position: 100% -300px;
}
.pds-vote-button-load span {
visibility: hidden;
}
.pds-links,
.pds-links-back {
display: block;
}
.pds-links a,
.pds-links-back a {
/*font-weight: bold;*/
}
.pds-links a:before,
.pds-links-back a:before {
background: url(../img/sprite.png) 0 -20px no-repeat;
content: '';
display: inline-block;
height: 11px;
margin-right: 0.5em;
position: relative;
width: 11px;
}
.pds-links a:hover:before,
.pds-links a:focus:before,
.pds-links a:active:before,
.pds-links-back a:hover:before,
.pds-links-back a:focus:before,
.pds-links-back a:active:before {
background-position: -20px -20px;
}
.pds-pd-link {
display: none;
}
.pds-total-votes {
font-size: 1.2em;
font-weight: bold;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment