You are here

MEMO.txt in Star Rating 8.4

Same filename and directory in other branches
  1. 8 css/MEMO.txt
  2. 8.2 css/MEMO.txt
  3. 8.3 css/MEMO.txt
1. .css file has to have the name (icon_type).css. (icon_type) is defined in
the module file.


2. .css file has to have the 5 div entiries.

 div.(icon_type)(icon-color)-on    ... used for displaying the rating icon
 div.(icon_type)-off               ... used for displaying the blank icon

 These div element should define the following attributes.

 div.(icon_type)(icon_color)-on {
   float: left;  /* use 'right' for the RTL languages */
   width: ??px;  /* width of the icon */
   height: ??px; /* height of the icon */
 }

For example, in case of the icon type 'star', div.star1-on, div.star2-on ...
and div.star-off should be defined in the CSS file.


3. Additional classes

The star rating div tags has following additional classese so that users can
customize the result by defining/overriding CSS style.

  even, odd
  s1, s2, s3, s4, s5  (for 5 star rating)
  s1, s2, ....... s10 (for 10 star rating)


4. Icon image

Below is the figure of icon image used. However, it's depends on the CSS file
and not neccesarry to be like below.

 (0,0)           (width, 0)
  +-------------+
  |             |
  |             |
  | Blank icon  |
  |             |
  |             |
  +-------------+ (width, height)
  |             |
  |             |
  | Normal icon |
  |  (color 1)  |
  |             |
  |             |
  +-------------+ (width, height x 2)
  |             |
  |             |
  | Normal icon |
  |  (color 2)  |
  |             |
  |             |
  +-------------+ (width, height x 3)
  |             |
         :
         :
  |             |
  +-------------+
  |             |
  |             |
  | Normal icon |
  |  (color 7)  |
  |             |
  |             |
  +-------------+

File

css/MEMO.txt
View source
  1. 1. .css file has to have the name (icon_type).css. (icon_type) is defined in
  2. the module file.
  3. 2. .css file has to have the 5 div entiries.
  4. div.(icon_type)(icon-color)-on ... used for displaying the rating icon
  5. div.(icon_type)-off ... used for displaying the blank icon
  6. These div element should define the following attributes.
  7. div.(icon_type)(icon_color)-on {
  8. float: left; /* use 'right' for the RTL languages */
  9. width: ??px; /* width of the icon */
  10. height: ??px; /* height of the icon */
  11. }
  12. For example, in case of the icon type 'star', div.star1-on, div.star2-on ...
  13. and div.star-off should be defined in the CSS file.
  14. 3. Additional classes
  15. The star rating div tags has following additional classese so that users can
  16. customize the result by defining/overriding CSS style.
  17. even, odd
  18. s1, s2, s3, s4, s5 (for 5 star rating)
  19. s1, s2, ....... s10 (for 10 star rating)
  20. 4. Icon image
  21. Below is the figure of icon image used. However, it's depends on the CSS file
  22. and not neccesarry to be like below.
  23. (0,0) (width, 0)
  24. +-------------+
  25. | |
  26. | |
  27. | Blank icon |
  28. | |
  29. | |
  30. +-------------+ (width, height)
  31. | |
  32. | |
  33. | Normal icon |
  34. | (color 1) |
  35. | |
  36. | |
  37. +-------------+ (width, height x 2)
  38. | |
  39. | |
  40. | Normal icon |
  41. | (color 2) |
  42. | |
  43. | |
  44. +-------------+ (width, height x 3)
  45. | |
  46. :
  47. :
  48. | |
  49. +-------------+
  50. | |
  51. | |
  52. | Normal icon |
  53. | (color 7) |
  54. | |
  55. | |
  56. +-------------+