rtl.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /*
  2. Theme Name: Pique
  3. Adding support for language written in a Right To Left (RTL) direction is easy -
  4. it's just a matter of overwriting all the horizontal positioning attributes
  5. of your CSS stylesheet in a separate stylesheet file named rtl.css.
  6. http://codex.wordpress.org/Right_to_Left_Language_Support
  7. */
  8. body {
  9. direction: rtl;
  10. unicode-bidi: embed;
  11. }
  12. /* Swap around menu elements */
  13. .main-navigation ul ul {
  14. text-align: right;
  15. }
  16. /* Hide stuff to the right, rather than left */
  17. .main-navigation ul ul{
  18. left: auto;
  19. right: -999em;
  20. }
  21. .main-navigation li.focus > ul {
  22. left: auto;
  23. right: 0;
  24. }
  25. /* Adjust teeny menu */
  26. @media (max-width: 767px) {
  27. .main-navigation a {
  28. padding-right: 10px;
  29. padding-left: 0;
  30. }
  31. .main-navigation ul ul ul {
  32. padding-left: 0;
  33. padding-right: 25px;
  34. }
  35. }
  36. /* Swap around direction of menu fly-outs */
  37. @media (min-width: 768px) {
  38. .main-navigation ul ul::before {
  39. left: auto;
  40. right: 15px;
  41. }
  42. .main-navigation ul ul::before {
  43. left: auto;
  44. right: 15px;
  45. }
  46. .main-navigation #primary-menu > li:nth-last-child(1):hover > ul,
  47. .main-navigation #primary-menu > li:nth-last-child(2):hover > ul {
  48. left: 0;
  49. right: auto;
  50. }
  51. .main-navigation #primary-menu > li:nth-last-child(1):hover ul::before,
  52. .main-navigation #primary-menu > li:nth-last-child(2):hover ul::before {
  53. left: 15px;
  54. right: auto;
  55. }
  56. .main-navigation #primary-menu > li:nth-last-child(1) li:hover ul, .main-navigation #primary-menu > li:nth-last-child(2) li:hover u {
  57. left: 103%;
  58. right: auto;
  59. }
  60. }
  61. /* Right-align content within panels */
  62. .pique-grid-three p,
  63. .overlay,
  64. label,
  65. form,
  66. .pique-panel-content .entry-content,
  67. #pique-hero .pique-panel-content .entry-content p,
  68. blockquote p,
  69. .pique-template-testimonials .pique-testimonials article .entry-content p {
  70. text-align: right;
  71. }
  72. h3,
  73. blockquote cite,
  74. .pique-template-testimonials .pique-testimonials article .entry-content cite,
  75. blockquote p, .pique-template-testimonials .pique-testimonials article .entry-content p,
  76. .widget-title {
  77. text-align: right;
  78. }
  79. .pique-template-testimonials .pique-testimonials .attachment-pique-thumbnail-avatar {
  80. float: right;
  81. margin-right: 0;
  82. margin-left: 20px;
  83. }
  84. .pique-template-testimonials .pique-testimonials h2 {
  85. float: right;
  86. text-align: right;
  87. }
  88. /* Adjust padding on post format icons */
  89. .sticky .entry-title::before {
  90. margin-left: 0.5em;
  91. margin-right: 0;
  92. }
  93. /* Swap direction of arrows in read more buttons */
  94. .archive .read-more a::after, .blog .read-more a::after, .search-results .read-more a::after {
  95. content: '\f060';
  96. }
  97. .archive .read-more a:hover, .blog .read-more a:hover, .search-results .read-more a:hover {
  98. padding-left: calc(3em - 40px);
  99. padding-right: 3em;
  100. }
  101. .archive .read-more a:hover::after, .blog .read-more a:hover::after, .search-results .read-more a:hover::after {
  102. padding-right: 20px;
  103. }
  104. /* Adjust padding on taxonomy icons */
  105. .cat-links::before, .tags-links::before {
  106. margin-left: 5px;
  107. margin-right: 0;
  108. }
  109. /* Float nav arrows */
  110. .comment-navigation .nav-previous span::before, .posts-navigation .nav-previous span::before, .post-navigation .nav-previous span::before {
  111. float: left;
  112. }
  113. .comment-navigation .nav-next span::after, .posts-navigation .nav-next span::after, .post-navigation .nav-next span::after {
  114. float: right;
  115. }
  116. /* Right-align entry meta */
  117. .entry-meta, .widget_rss .rss-date, .widget_rss cite {
  118. text-align: right;
  119. }
  120. /* Rearrange comments */
  121. .comment-author .avatar {
  122. float: right;
  123. margin-right: 0;
  124. margin-left: 0.5em;
  125. }
  126. .reply {
  127. float: left;
  128. }