You are here

nice_menus_default-rtl.css in Nice Menus 6.2

Same filename and directory in other branches
  1. 7.3 css/nice_menus_default-rtl.css
  2. 7.2 css/nice_menus_default-rtl.css
/*
  This is the default overrides for nice menu to work with right-to-left
  languages (RTL). The major change, compared to the regular
  nice_menus_default.css file, is that horizontal menus float the items to
  the right and open the sub menus to the left.
*/

/******************************
 Global CSS for ALL menu types
******************************/

ul.nice-menu li {
  float: right;
}

ul.nice-menu ul {
  left: auto;
  right: -1px;
  margin-left: 0;
}

/* Fix vertical menus position */
ul.nice-menu-left ul,
ul.nice-menu-right ul {
  right: auto;
}

/******************************
 HORIZONTAL (down) menus
******************************/

/* IE6 doesn't correctly calculate the width of a floated element that contains right floated elements. */
ul.nice-menu-down {
  float: none;
}

ul.nice-menu-down ul {
  left: auto;
  right: 0;
  width: 12.5em;
}

ul.nice-menu-down li ul li ul {
  left: auto;
  right: 12.5em;
}

ul.nice-menu-down .menuparent a {
  padding-right: 5px;
  padding-left: 15px;
}

ul.nice-menu-down li.menuparent {
  background-position: left center;
}

ul.nice-menu-down li.menuparent:hover {
  background-position: left center;
}

ul.nice-menu-down li li.menuparent {
  background: #eee url("../images/arrow-left.png") left center no-repeat;
}

ul.nice-menu-down li li.menuparent:hover {
  background: #ccc url("../images/arrow-left.png") left center no-repeat;
}

/******************************
 Garland-specific CSS
******************************/

/**
 * Global CSS for ALL menu types
*/
ul.nice-menu li {
  padding-right: 0;
}

#header-region ul.nice-menu ul {
  left: auto;
  right: -1px;
  margin-left: 0;
}

/**
 * HORIZONTAL (down) menus
*/
#header-region ul.nice-menu-down li ul li ul {
  left: auto;
  right: 12.5em;
}

#header-region ul.nice-menu-down li.menuparent {
  background-position: left center;
}

#header-region ul.nice-menu-down li.menuparent:hover {
  background-position: left center;
}

#header-region ul.nice-menu-down li li.menuparent {
  background: #eee url("../images/arrow-left.png") left center no-repeat;
}

#header-region ul.nice-menu-down li li.menuparent:hover {
  background: #ccc url("../images/arrow-left.png") left center no-repeat;
}

File

css/nice_menus_default-rtl.css
View source
  1. /*
  2. This is the default overrides for nice menu to work with right-to-left
  3. languages (RTL). The major change, compared to the regular
  4. nice_menus_default.css file, is that horizontal menus float the items to
  5. the right and open the sub menus to the left.
  6. */
  7. /******************************
  8. Global CSS for ALL menu types
  9. ******************************/
  10. ul.nice-menu li {
  11. float: right;
  12. }
  13. ul.nice-menu ul {
  14. left: auto;
  15. right: -1px;
  16. margin-left: 0;
  17. }
  18. /* Fix vertical menus position */
  19. ul.nice-menu-left ul,
  20. ul.nice-menu-right ul {
  21. right: auto;
  22. }
  23. /******************************
  24. HORIZONTAL (down) menus
  25. ******************************/
  26. /* IE6 doesn't correctly calculate the width of a floated element that contains right floated elements. */
  27. ul.nice-menu-down {
  28. float: none;
  29. }
  30. ul.nice-menu-down ul {
  31. left: auto;
  32. right: 0;
  33. width: 12.5em;
  34. }
  35. ul.nice-menu-down li ul li ul {
  36. left: auto;
  37. right: 12.5em;
  38. }
  39. ul.nice-menu-down .menuparent a {
  40. padding-right: 5px;
  41. padding-left: 15px;
  42. }
  43. ul.nice-menu-down li.menuparent {
  44. background-position: left center;
  45. }
  46. ul.nice-menu-down li.menuparent:hover {
  47. background-position: left center;
  48. }
  49. ul.nice-menu-down li li.menuparent {
  50. background: #eee url("../images/arrow-left.png") left center no-repeat;
  51. }
  52. ul.nice-menu-down li li.menuparent:hover {
  53. background: #ccc url("../images/arrow-left.png") left center no-repeat;
  54. }
  55. /******************************
  56. Garland-specific CSS
  57. ******************************/
  58. /**
  59. * Global CSS for ALL menu types
  60. */
  61. ul.nice-menu li {
  62. padding-right: 0;
  63. }
  64. #header-region ul.nice-menu ul {
  65. left: auto;
  66. right: -1px;
  67. margin-left: 0;
  68. }
  69. /**
  70. * HORIZONTAL (down) menus
  71. */
  72. #header-region ul.nice-menu-down li ul li ul {
  73. left: auto;
  74. right: 12.5em;
  75. }
  76. #header-region ul.nice-menu-down li.menuparent {
  77. background-position: left center;
  78. }
  79. #header-region ul.nice-menu-down li.menuparent:hover {
  80. background-position: left center;
  81. }
  82. #header-region ul.nice-menu-down li li.menuparent {
  83. background: #eee url("../images/arrow-left.png") left center no-repeat;
  84. }
  85. #header-region ul.nice-menu-down li li.menuparent:hover {
  86. background: #ccc url("../images/arrow-left.png") left center no-repeat;
  87. }