rtl.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. /*
  2. Theme Name: Ixion
  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. https://codex.wordpress.org/Right_to_Left_Languagecomponentsupport
  7. */
  8. body {
  9. direction: rtl;
  10. unicode-bidi: embed;
  11. }
  12. .screen-reader-text:focus {
  13. right: 5px;
  14. left: auto;
  15. }
  16. .alignright {
  17. float: right;
  18. margin-left: 1.5em;
  19. margin-right: auto;
  20. }
  21. .alignleft {
  22. float: left;
  23. margin-right: 1.5em;
  24. margin-left: auto;
  25. }
  26. .aligncenter {
  27. margin-right: auto;
  28. margin-left: auto;
  29. }
  30. textarea {
  31. padding-right: 3px;
  32. padding-left: 0;
  33. }
  34. #infinite-handle span {
  35. float: left;
  36. }
  37. #infinite-handle span:after {
  38. margin-right: 6px;
  39. margin-left: auto;
  40. }
  41. ul, ol {
  42. margin: 0 1.6em 1.6em 0;
  43. padding-right: 0;
  44. padding-left: 0;
  45. }
  46. li > ul,
  47. li > ol {
  48. margin-right: 1.5em;
  49. margin-left: auto;
  50. }
  51. .main-navigation .menu-toggle {
  52. left: 1.6em;
  53. right: auto;
  54. }
  55. .main-navigation .menu-toggle:before {
  56. margin-left: 6px;
  57. margin-right: auto;
  58. }
  59. .main-navigation ul:before {
  60. right: 0;
  61. text-align: left;
  62. left: auto;
  63. }
  64. .main-navigation ul ul {
  65. margin: 0 1.6em 0 0;
  66. }
  67. .main-navigation ul ul ul {
  68. margin-right: 3.2em;
  69. margin-left: auto;
  70. }
  71. .comment-navigation .nav-previous a:before,
  72. .posts-navigation .nav-previous a:before,
  73. .post-navigation .nav-previous a:before {
  74. content: '\2192';
  75. margin-left: 6px;
  76. margin-right: auto;
  77. }
  78. .comment-navigation .nav-next a,
  79. .posts-navigation .nav-next a,
  80. .post-navigation .nav-next a {
  81. text-align: left;
  82. }
  83. .comment-navigation .nav-next a:after,
  84. .posts-navigation .nav-next a:after,
  85. .post-navigation .nav-next a:after {
  86. content: '\2190';
  87. margin-right: 6px;
  88. margin-left: auto;
  89. }
  90. .no-sidebar .content-area {
  91. margin-right: auto;
  92. margin-left: auto;
  93. }
  94. .no-sidebar .recent-posts-header,
  95. .no-sidebar .entry-meta,
  96. .no-sidebar .hentry,
  97. .no-sidebar .comments-area,
  98. .no-sidebar.singular .entry-title,
  99. .no-sidebar .post-navigation,
  100. .no-sidebar .posts-navigation,
  101. .no-sidebar .page-header {
  102. margin-right: auto;
  103. margin-left: auto;
  104. }
  105. .recent-posts:after {
  106. transform: translateX(1.4em);
  107. }
  108. .author-avatar {
  109. float: left;
  110. }
  111. .author-heading {
  112. float: right;
  113. }
  114. .widget .testimonial-entry:after,
  115. .quote:after {
  116. left: -8px;
  117. right: auto;
  118. transform: scaleX(-1);
  119. }
  120. .testimonial-entry-content {
  121. margin: 0 !important 1.6em 0;
  122. }
  123. .testimonials .post-thumbnail,
  124. .widget .testimonial-featured-image img {
  125. float: left;
  126. }
  127. .more-testimonials,
  128. .more-testimonials:visited {
  129. text-align: left;
  130. }
  131. .meta-nav {
  132. margin-right: 6px;
  133. margin-left: auto;
  134. }
  135. .comment-list .avatar {
  136. float: right;
  137. margin-right: -70px;
  138. margin-left: auto;
  139. }
  140. .comment-body {
  141. padding-right: 70px;
  142. padding-left: 0;
  143. }
  144. .comment-metadata .edit-link:before {
  145. margin-right: 5px;
  146. margin-left: auto;
  147. }
  148. .comments-title,
  149. #respond h3 {
  150. margin: 0 !important .8em 0;
  151. padding: 0 !important .8em 0;
  152. }
  153. .widget > ul,
  154. .widget > div > ul {
  155. margin-right: 0;
  156. margin-left: auto;
  157. }
  158. .search-form-icon:before {
  159. left: 0;
  160. right: auto;
  161. }
  162. .widget_calendar td#next {
  163. text-align: left;
  164. }
  165. .infinite-loader {
  166. float: left;
  167. }
  168. .wp-caption img[class*="wp-image-"] {
  169. margin-right: auto;
  170. margin-left: auto;
  171. }
  172. .branding-container {
  173. justify-content: right;
  174. }
  175. .site-header .search-form {
  176. float: left;
  177. }
  178. .site-header .search-form-icon:before {
  179. border-right: 1px solid #eeece8;
  180. border-left: none;
  181. }
  182. .site-header .search-form .search-field {
  183. left: 0;
  184. padding-right: 0;
  185. right: auto;
  186. padding-left: 0;
  187. }
  188. .site-header .search-form:hover .search-form-icon:before,
  189. .site-header .search-field:focus + .search-form-icon:before {
  190. transform: translateX(300px);
  191. }
  192. .featured-content .post-link {
  193. right: 0;
  194. left: auto;
  195. }
  196. .featured-content .hentry .entry-title {
  197. right: 0;
  198. left: auto;
  199. }
  200. .site-header .jetpack-social-navigation {
  201. float: right;
  202. }
  203. .site-header .jetpack-social-navigation li {
  204. margin-right: -3px;
  205. margin-left: auto;
  206. }
  207. .site-header .jetpack-social-navigation a:before {
  208. border-left: 1px solid #eeece8;
  209. border-right: none;
  210. }
  211. @media screen and (min-width: 37.5em) {
  212. .main-navigation ul li {
  213. margin-right: 2.4em;
  214. margin-left: 0;
  215. }
  216. .main-navigation ul ul {
  217. right: -999em;
  218. left: auto;
  219. margin: 0;
  220. }
  221. .main-navigation ul ul ul {
  222. margin: 0;
  223. }
  224. .main-navigation ul ul:before {
  225. right: 0;
  226. left: auto;
  227. }
  228. .main-navigation ul li:hover > ul,
  229. .main-navigation ul li.focus > ul {
  230. transform: translateX(50%);
  231. right: 50%;
  232. left: auto;
  233. }
  234. .main-navigation ul ul li:hover > ul {
  235. right: 100%;
  236. left: auto;
  237. }
  238. .main-navigation ul > li.page_item_has_children > a:after,
  239. .main-navigation ul > li.menu-item-has-children > a:after {
  240. margin-right: 6px;
  241. margin-left: 0;
  242. }
  243. .main-navigation ul ul > li.page_item_has_children > a:after,
  244. .main-navigation ul ul > li.menu-item-has-children > a:after {
  245. transform: rotate(90deg);
  246. }
  247. .custom-logo {
  248. margin-left: .8em;
  249. margin-right: 0;
  250. }
  251. .more-recent-posts {
  252. left: 0;
  253. text-align: left;
  254. right: auto;
  255. }
  256. .comment-navigation .nav-previous a,
  257. .posts-navigation .nav-previous a,
  258. .post-navigation .nav-previous a {
  259. float: right;
  260. }
  261. .comment-navigation .nav-next a,
  262. .posts-navigation .nav-next a,
  263. .post-navigation .nav-next a {
  264. float: left;
  265. text-align: left;
  266. }
  267. .footer-widgets .widget-area {
  268. float: right;
  269. }
  270. .footer-widgets .widget-area:nth-child(1):nth-last-child(2),
  271. .footer-widgets .widget-area:nth-child(2):nth-last-child(1) {
  272. margin-left: 4%;
  273. margin-right: auto;
  274. }
  275. .footer-widgets .widget-area:nth-child(1):nth-last-child(2):nth-of-type(2n),
  276. .footer-widgets .widget-area:nth-child(2):nth-last-child(1):nth-of-type(2n) {
  277. margin-left: 0;
  278. margin-right: auto;
  279. }
  280. .footer-widgets .widget-area:nth-child(1):nth-last-child(3),
  281. .footer-widgets .widget-area:nth-child(2):nth-last-child(2),
  282. .footer-widgets .widget-area:nth-child(3):nth-last-child(1) {
  283. margin-left: 4%;
  284. margin-right: auto;
  285. }
  286. .footer-widgets .widget-area:nth-child(1):nth-last-child(3):nth-of-type(2n),
  287. .footer-widgets .widget-area:nth-child(2):nth-last-child(2):nth-of-type(2n),
  288. .footer-widgets .widget-area:nth-child(3):nth-last-child(1):nth-of-type(2n) {
  289. margin-left: 0;
  290. margin-right: auto;
  291. }
  292. .footer-widgets .widget-area:nth-child(1):nth-last-child(4),
  293. .footer-widgets .widget-area:nth-child(2):nth-last-child(3),
  294. .footer-widgets .widget-area:nth-child(3):nth-last-child(2),
  295. .footer-widgets .widget-area:nth-child(4):nth-last-child(1) {
  296. margin-left: 4%;
  297. margin-right: auto;
  298. }
  299. .footer-widgets .widget-area:nth-child(1):nth-last-child(4):nth-of-type(2n),
  300. .footer-widgets .widget-area:nth-child(2):nth-last-child(3):nth-of-type(2n),
  301. .footer-widgets .widget-area:nth-child(3):nth-last-child(2):nth-of-type(2n),
  302. .footer-widgets .widget-area:nth-child(4):nth-last-child(1):nth-of-type(2n) {
  303. margin-left: 0;
  304. margin-right: auto;
  305. }
  306. }
  307. @media screen and ( min-width: 50em ) {
  308. .content-area {
  309. float: right;
  310. margin: 0 0 0 -34%;
  311. }
  312. .site-main {
  313. margin: 0 0 0 34%;
  314. }
  315. .site-content .widget-area {
  316. float: left;
  317. }
  318. .featured-content {
  319. padding-right: 3.75em;
  320. padding-left: 3.75em;
  321. }
  322. .branding-container {
  323. padding-right: 3.75em;
  324. padding-left: 3.75em;
  325. }
  326. .header-overlay:before {
  327. right: 0;
  328. left: auto;
  329. }
  330. .footer-widgets .widget-area:nth-child(1):nth-last-child(2):nth-of-type(2n),
  331. .footer-widgets .widget-area:nth-child(2):nth-last-child(1):nth-of-type(2n) {
  332. margin-left: 4%;
  333. margin-right: auto;
  334. }
  335. .footer-widgets .widget-area:nth-child(1):nth-last-child(3):nth-of-type(2n),
  336. .footer-widgets .widget-area:nth-child(2):nth-last-child(2):nth-of-type(2n),
  337. .footer-widgets .widget-area:nth-child(3):nth-last-child(1):nth-of-type(2n) {
  338. margin-left: 5%;
  339. margin-right: auto;
  340. }
  341. .footer-widgets .widget-area:nth-child(1):nth-last-child(4):nth-of-type(2n),
  342. .footer-widgets .widget-area:nth-child(2):nth-last-child(3):nth-of-type(2n),
  343. .footer-widgets .widget-area:nth-child(3):nth-last-child(2):nth-of-type(2n),
  344. .footer-widgets .widget-area:nth-child(4):nth-last-child(1):nth-of-type(2n) {
  345. margin-left: 6.66667%;
  346. margin-right: auto;
  347. }
  348. .footer-widgets .widget-area:nth-child(1):nth-last-child(2),
  349. .footer-widgets .widget-area:nth-child(2):nth-last-child(1) {
  350. margin-left: 4%;
  351. margin-right: auto;
  352. }
  353. .footer-widgets .widget-area:nth-child(1):nth-last-child(2):last-of-type,
  354. .footer-widgets .widget-area:nth-child(2):nth-last-child(1):last-of-type {
  355. margin-left: 0;
  356. margin-right: auto;
  357. }
  358. .footer-widgets .widget-area:nth-child(1):nth-last-child(3),
  359. .footer-widgets .widget-area:nth-child(2):nth-last-child(2),
  360. .footer-widgets .widget-area:nth-child(3):nth-last-child(1) {
  361. margin-left: 5%;
  362. margin-right: auto;
  363. }
  364. .footer-widgets .widget-area:nth-child(1):nth-last-child(3):last-of-type,
  365. .footer-widgets .widget-area:nth-child(2):nth-last-child(2):last-of-type,
  366. .footer-widgets .widget-area:nth-child(3):nth-last-child(1):last-of-type {
  367. margin-left: 0;
  368. margin-right: auto;
  369. }
  370. .footer-widgets .widget-area:nth-child(1):nth-last-child(4),
  371. .footer-widgets .widget-area:nth-child(2):nth-last-child(3),
  372. .footer-widgets .widget-area:nth-child(3):nth-last-child(2),
  373. .footer-widgets .widget-area:nth-child(4):nth-last-child(1) {
  374. margin-left: 6.66667%;
  375. margin-right: auto;
  376. }
  377. .footer-widgets .widget-area:nth-child(1):nth-last-child(4):last-of-type,
  378. .footer-widgets .widget-area:nth-child(2):nth-last-child(3):last-of-type,
  379. .footer-widgets .widget-area:nth-child(3):nth-last-child(2):last-of-type,
  380. .footer-widgets .widget-area:nth-child(4):nth-last-child(1):last-of-type {
  381. margin-left: 0;
  382. margin-right: auto;
  383. }
  384. .site-info {
  385. padding-right: 3.75em;
  386. padding-left: 3.75em;
  387. }
  388. }