You are here

alternate.css in Vote Up/Down 8

/* Alternate widget CSS files */

.vud-widget-alternate {
  clear: left;
  padding: 0;
  margin: 5px 6px 1px 0;
  width: 50px;
}

.vud-widget-alternate .up.active,
.vud-widget-alternate .up.inactive {
  height: 22px;
  width: 50px;
  margin-top: 1px;
  background-image: url(plus.png);
}

.vud-widget-alternate .up.active,
.vud-widget-alternate .up.inactive:hover {
  background-position: 0px -7px;
}

.vud-widget-alternate .up.inactive {
  background-position: 0px -43px;
}

.vud-widget-alternate .up.active {
  cursor: default;
}

.vud-widget-alternate .up.inactive:hover {
  cursor: pointer;
}

.vud-widget-alternate .alternate-votes-display {
  font-family: Georgia, serif;
  border: 1px solid #ccc;
  text-align: center;
  height: 26px;
  font-size: 18px;
  padding: 2px;
}

/**
 * Hide elements visually, but keep them available for screen-readers.
 *
 * Used for information required for screen-reader users to understand and use
 * the site where visual display is undesirable. Information provided in this
 * manner should be kept concise, to avoid unnecessary burden on the user. Must
 * not be used for focusable elements (such as links and form elements) as this
 * causes issues for keyboard only or voice recognition users. "!important" is
 * used to prevent unintentional overrides.
 */
.element-invisible {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
}

File

widgets/alternate/alternate.css
View source
  1. /* Alternate widget CSS files */
  2. .vud-widget-alternate {
  3. clear: left;
  4. padding: 0;
  5. margin: 5px 6px 1px 0;
  6. width: 50px;
  7. }
  8. .vud-widget-alternate .up.active,
  9. .vud-widget-alternate .up.inactive {
  10. height: 22px;
  11. width: 50px;
  12. margin-top: 1px;
  13. background-image: url(plus.png);
  14. }
  15. .vud-widget-alternate .up.active,
  16. .vud-widget-alternate .up.inactive:hover {
  17. background-position: 0px -7px;
  18. }
  19. .vud-widget-alternate .up.inactive {
  20. background-position: 0px -43px;
  21. }
  22. .vud-widget-alternate .up.active {
  23. cursor: default;
  24. }
  25. .vud-widget-alternate .up.inactive:hover {
  26. cursor: pointer;
  27. }
  28. .vud-widget-alternate .alternate-votes-display {
  29. font-family: Georgia, serif;
  30. border: 1px solid #ccc;
  31. text-align: center;
  32. height: 26px;
  33. font-size: 18px;
  34. padding: 2px;
  35. }
  36. /**
  37. * Hide elements visually, but keep them available for screen-readers.
  38. *
  39. * Used for information required for screen-reader users to understand and use
  40. * the site where visual display is undesirable. Information provided in this
  41. * manner should be kept concise, to avoid unnecessary burden on the user. Must
  42. * not be used for focusable elements (such as links and form elements) as this
  43. * causes issues for keyboard only or voice recognition users. "!important" is
  44. * used to prevent unintentional overrides.
  45. */
  46. .element-invisible {
  47. position: absolute !important;
  48. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  49. clip: rect(1px, 1px, 1px, 1px);
  50. }