rtl.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. /*
  2. Theme Name: Radcliffe 2
  3. Adding support for languages 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. https://codex.wordpress.org/Right-to-Left_Language_Support
  7. */
  8. body {
  9. direction: rtl;
  10. unicode-bidi: embed;
  11. }
  12. th {
  13. text-align: right;
  14. }
  15. .contact-info-area span.contact-info-label {
  16. left: auto;
  17. right: -999999em;
  18. }
  19. .main-navigation ul {
  20. padding-right: 0;
  21. }
  22. .main-navigation li {
  23. float: right;
  24. }
  25. .main-navigation a .icon {
  26. margin-left: 0;
  27. margin-right: 6px;
  28. }
  29. .main-navigation ul ul ul {
  30. left: auto;
  31. right: -999em;
  32. }
  33. .main-navigation ul li:hover > ul,
  34. .main-navigation ul li.focus > ul {
  35. right: auto;
  36. }
  37. .main-navigation ul ul li:hover > ul,
  38. .main-navigation ul ul li.focus > ul {
  39. left: auto;
  40. right: 100%;
  41. }
  42. /* Small menu. */
  43. .menu-toggle .icon {
  44. margin-left: 6px;
  45. margin-right: 0;
  46. }
  47. /* Jetpack social menu */
  48. .jetpack-social-navigation {
  49. margin-left: 0;
  50. margin-right: -0.5em;
  51. }
  52. .jetpack-social-navigation li {
  53. margin-left: 0.25em;
  54. margin-right: 0;
  55. }
  56. /* Comment and Post menus */
  57. .nav-next .icon {
  58. margin-left: 0;
  59. margin-right: 6px;
  60. }
  61. .nav-previous .icon {
  62. margin-left: 6px;
  63. margin-right: 0;
  64. }
  65. .screen-reader-text:focus {
  66. left: auto;
  67. right: 5px;
  68. }
  69. /*--------------------------------------------------------------
  70. # Layout
  71. --------------------------------------------------------------*/
  72. /* Search toggle */
  73. .search-toggle {
  74. left: 0;
  75. right: auto;
  76. }
  77. /*--------------------------------------------------------------
  78. # Widgets
  79. --------------------------------------------------------------*/
  80. .widget ul {
  81. padding-right: 0;
  82. }
  83. #wp-calendar tfoot #prev {
  84. text-align: right;
  85. }
  86. #wp-calendar tfoot #next {
  87. text-align: left;
  88. }
  89. /* widget */
  90. .search-form .search-field {
  91. padding: 5% 5% 5% 20%;
  92. }
  93. /*--------------------------------------------------------------
  94. # Content
  95. --------------------------------------------------------------*/
  96. /*--------------------------------------------------------------
  97. ## Posts and pages
  98. --------------------------------------------------------------*/
  99. .archive .entry-thumbnail + .entry-header,
  100. .blog .entry-thumbnail + .entry-header,
  101. .search .entry-thumbnail + .entry-header {
  102. left: auto;
  103. right: 0;
  104. }
  105. .byline:before,
  106. .comments-link:before {
  107. content: "\\";
  108. margin: 0 .3em 0 .5em;
  109. }
  110. .date-hidden .byline:before,
  111. .date-hidden.author-hidden .comments-link:before {
  112. content: "";
  113. }
  114. .entry-author {
  115. margin-left: 0;
  116. }
  117. .entry-author .author-bio,
  118. .entry-author .author-heading {
  119. padding-left: 0;
  120. padding-right: 80px;
  121. }
  122. .cat-links,
  123. .tags-links,
  124. .edit-link {
  125. padding-left: 0;
  126. padding-right: 30px;
  127. }
  128. .cat-links .icon,
  129. .tags-links .icon,
  130. .edit-link .icon {
  131. left: auto;
  132. right: 0;
  133. }
  134. /*--------------------------------------------------------------
  135. ## Comments
  136. --------------------------------------------------------------*/
  137. .comments .children {
  138. margin-left: 0;
  139. margin-right: 5%;
  140. }
  141. .comment-wrapper,
  142. .pingback,
  143. .trackback {
  144. margin-right: 0;
  145. }
  146. ol.children ol.children {
  147. padding-right: 0;
  148. }
  149. .comment-wrapper:after {
  150. border-left-color: #fff;
  151. border-right-color: transparent;
  152. left: auto;
  153. right: -24px;
  154. }
  155. .comment .avatar {
  156. left: auto;
  157. right: 0;
  158. }
  159. .comment-header span {
  160. margin-left: 0;
  161. margin-right: 5px;
  162. }
  163. .comment-actions a {
  164. margin-left: 0;
  165. margin-right: 10px;
  166. }
  167. .bypostauthor .by-post-author {
  168. left: auto;
  169. right: 12px;
  170. }
  171. /*--------------------------------------------------------------
  172. # Infinite scroll
  173. --------------------------------------------------------------*/
  174. #infinite-handle span {
  175. float: right;
  176. }
  177. /*--------------------------------------------------------------
  178. # Media Queries
  179. --------------------------------------------------------------*/
  180. @media all and (max-width: 768px) {
  181. .dropdown-toggle {
  182. left: 6px;
  183. right: auto;
  184. }
  185. .main-navigation.toggled ul li {
  186. float: none;
  187. }
  188. .main-navigation.toggled .sub-menu {
  189. padding: 0 25px 0 0;
  190. }
  191. }
  192. @media all and (min-width: 600px) {
  193. .jetpack-social-navigation {
  194. margin-right: 0;
  195. }
  196. .jetpack-social-navigation li {
  197. margin-right: 0;
  198. }
  199. .entry-author {
  200. margin-left: 40px;
  201. margin-right: 0;
  202. }
  203. .comment-wrapper,
  204. .pingback ,
  205. .trackback {
  206. margin-left: 0;
  207. margin-right: 110px;
  208. }
  209. ol.children {
  210. padding-left: 0;
  211. padding-right: 40px;
  212. }
  213. .bypostauthor .by-post-author {
  214. left: auto;
  215. right: -2px;
  216. }
  217. .comment-navigation .nav-previous,
  218. .posts-navigation .nav-previous,
  219. .post-navigation .nav-previous {
  220. float: right;
  221. text-align: right;
  222. }
  223. .comment-navigation .nav-next,
  224. .posts-navigation .nav-next,
  225. .post-navigation .nav-next {
  226. float: left;
  227. text-align: left;
  228. }
  229. }
  230. @media screen and (min-width: 768px) {
  231. .contact-info-area span.contact-info-label {
  232. right: auto;
  233. }
  234. #header-menu {
  235. margin-left: 0;
  236. margin-right: -15px;
  237. }
  238. .main-navigation ul ul {
  239. left: auto;
  240. right: -999em;
  241. }
  242. .main-navigation ul ul a {
  243. padding-left: 18px;
  244. padding-right: 15px;
  245. }
  246. .main-navigation ul ul .menu-item-has-children > a > .icon,
  247. .main-navigation ul ul .page_item_has_children > a > .icon {
  248. left: 0.5em;
  249. right: auto;
  250. -ms-transform: rotate(90deg);
  251. -moz-transform: rotate(90deg);
  252. -webkit-transform: rotate(90deg);
  253. transform: rotate(90deg);
  254. }
  255. .main-navigation ul ul ul {
  256. padding-left: 0;
  257. padding-right: 20px;
  258. }
  259. .main-navigation ul ul ul:after {
  260. border-right-color: transparent;
  261. border-left-color: #222;
  262. left: auto;
  263. right: 0;
  264. }
  265. }