You are here

fivestar.css in Fivestar 8

/* Plain HTML Version */
form.fivestar-widget {
  clear: both;
  display: block;
}
form.fivestar-widget select,
form.fivestar-widget input {
  margin: 0;
}

/* Combo Static and Rate Widget */
.fivestar-combo-stars .fivestar-static-form-item {
  float: left; /* LTR */
  margin-right: 40px; /* LTR */
  margin-left: 40px; /* LTR */
}

.fivestar-combo-stars .fivestar-form-item {
  float: left; /* LTR */
}

/* Fivestar form items */
.fivestar-static-form-item .form-item,
.fivestar-form-item .form-item {
  margin: 0;
}

/* Static View-only Star Version */
div.fivestar-widget-static {
  display: block;
}

div.fivestar-widget-static br {
  clear: left; /* LTR */
}

div.fivestar-widget-static .star {
  float: left; /* LTR */
  width: 17px;
  height: 15px;
  overflow: hidden;
  text-indent: -999em;
  background: url(../widgets/default/star.gif) no-repeat 0 0; /* LTR */
}

div.fivestar-widget-static .star span.on {
  display: block;
  width: 100%;
  height: 100%;
  background: url(../widgets/default/star.gif) no-repeat 0 -32px; /* LTR */
}

div.fivestar-widget-static .star span.off {
  display: block;
  width: 100%;
  height: 100%;
  background: url(../widgets/default/star.gif) no-repeat 0 0; /* LTR */
}

/* Javascript Star Version */
div.fivestar-widget {
  display: block;
}

div.fivestar-widget .cancel,
div.fivestar-widget .star {
  float: left; /* LTR */
  width: 17px;
  height: 15px;
  overflow: hidden;
  text-indent: -999em;
}
div.fivestar-widget .cancel,
div.fivestar-widget .cancel a {
  background: url(../../widgets/default/delete.gif) no-repeat 0 -16px; /* LTR */
  text-decoration: none;
}

div.fivestar-widget .star,
div.fivestar-widget .star a {
  background: url(../../widgets/default/star.gif) no-repeat 0 0; /* LTR */
  text-decoration: none;
}

div.fivestar-widget .cancel a,
div.fivestar-widget .star a {
  display: block;
  width: 100%;
  height: 100%;
  background-position: 0 0; /* LTR */
  cursor: pointer;
}

div.fivestar-widget div.on a {
  background-position: 0 -16px; /* LTR */
}
div.fivestar-widget div.hover a,
div.rating div a:hover {
  background-position: 0 -32px; /* LTR */
}
form.fivestar-widget div.description {
  margin-bottom: 0;
}

html.js .fivestar-submit {
  display: none;
}

.fivestar-combo-stars .form-type-fivestar .form-item {
  float: left;
}

File

css/fivestar.css
View source
  1. /* Plain HTML Version */
  2. form.fivestar-widget {
  3. clear: both;
  4. display: block;
  5. }
  6. form.fivestar-widget select,
  7. form.fivestar-widget input {
  8. margin: 0;
  9. }
  10. /* Combo Static and Rate Widget */
  11. .fivestar-combo-stars .fivestar-static-form-item {
  12. float: left; /* LTR */
  13. margin-right: 40px; /* LTR */
  14. margin-left: 40px; /* LTR */
  15. }
  16. .fivestar-combo-stars .fivestar-form-item {
  17. float: left; /* LTR */
  18. }
  19. /* Fivestar form items */
  20. .fivestar-static-form-item .form-item,
  21. .fivestar-form-item .form-item {
  22. margin: 0;
  23. }
  24. /* Static View-only Star Version */
  25. div.fivestar-widget-static {
  26. display: block;
  27. }
  28. div.fivestar-widget-static br {
  29. clear: left; /* LTR */
  30. }
  31. div.fivestar-widget-static .star {
  32. float: left; /* LTR */
  33. width: 17px;
  34. height: 15px;
  35. overflow: hidden;
  36. text-indent: -999em;
  37. background: url(../widgets/default/star.gif) no-repeat 0 0; /* LTR */
  38. }
  39. div.fivestar-widget-static .star span.on {
  40. display: block;
  41. width: 100%;
  42. height: 100%;
  43. background: url(../widgets/default/star.gif) no-repeat 0 -32px; /* LTR */
  44. }
  45. div.fivestar-widget-static .star span.off {
  46. display: block;
  47. width: 100%;
  48. height: 100%;
  49. background: url(../widgets/default/star.gif) no-repeat 0 0; /* LTR */
  50. }
  51. /* Javascript Star Version */
  52. div.fivestar-widget {
  53. display: block;
  54. }
  55. div.fivestar-widget .cancel,
  56. div.fivestar-widget .star {
  57. float: left; /* LTR */
  58. width: 17px;
  59. height: 15px;
  60. overflow: hidden;
  61. text-indent: -999em;
  62. }
  63. div.fivestar-widget .cancel,
  64. div.fivestar-widget .cancel a {
  65. background: url(../../widgets/default/delete.gif) no-repeat 0 -16px; /* LTR */
  66. text-decoration: none;
  67. }
  68. div.fivestar-widget .star,
  69. div.fivestar-widget .star a {
  70. background: url(../../widgets/default/star.gif) no-repeat 0 0; /* LTR */
  71. text-decoration: none;
  72. }
  73. div.fivestar-widget .cancel a,
  74. div.fivestar-widget .star a {
  75. display: block;
  76. width: 100%;
  77. height: 100%;
  78. background-position: 0 0; /* LTR */
  79. cursor: pointer;
  80. }
  81. div.fivestar-widget div.on a {
  82. background-position: 0 -16px; /* LTR */
  83. }
  84. div.fivestar-widget div.hover a,
  85. div.rating div a:hover {
  86. background-position: 0 -32px; /* LTR */
  87. }
  88. form.fivestar-widget div.description {
  89. margin-bottom: 0;
  90. }
  91. html.js .fivestar-submit {
  92. display: none;
  93. }
  94. .fivestar-combo-stars .form-type-fivestar .form-item {
  95. float: left;
  96. }