rtl.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. /*
  2. Theme Name: Lodestar
  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. /* Reset */
  9. body {
  10. direction: rtl;
  11. unicode-bidi: embed;
  12. }
  13. th {
  14. text-align: right;
  15. }
  16. /* Accessibility */
  17. .screen-reader-text:focus {
  18. left: auto;
  19. right: 5px;
  20. }
  21. /* Typography */
  22. blockquote {
  23. border-left: 0;
  24. border-right: 4px solid #ddd;
  25. padding-left: 0;
  26. padding-right: 1.5em;
  27. }
  28. textarea {
  29. padding-right: 3px;
  30. }
  31. ul,
  32. ol {
  33. margin-left: 0;
  34. margin-right: 3em;
  35. }
  36. li > ul,
  37. li > ol {
  38. margin-left: 0;
  39. margin-right: 1.5em;
  40. }
  41. .menu-toggle::after,
  42. .menu-item-has-children > a::before,
  43. .page_item_has_children > a::before {
  44. font-family: Genericons;
  45. font-size: 1em;
  46. font-style: normal;
  47. font-weight: normal;
  48. line-height: 1;
  49. text-decoration: none;
  50. vertical-align: text-bottom;
  51. -webkit-font-smoothing: antialiased;
  52. -moz-osx-font-smoothing: grayscale;
  53. text-rendering: auto;
  54. }
  55. /* Media */
  56. .mejs-offscreen {
  57. right: -10000px;
  58. }
  59. /* Main Navigation */
  60. .main-navigation ul {
  61. text-align: right;
  62. }
  63. .main-navigation ul ul {
  64. padding-left: 0;
  65. padding-right: 1.5em;
  66. }
  67. .menu-toggle::after {
  68. content: "\f419";
  69. margin-right: 0.5em;
  70. position: relative;
  71. top: -2px;
  72. }
  73. .menu-toggle::before {
  74. display: none;
  75. }
  76. /* Front Page */
  77. .lodestar-panel .jetpack-testimonial .edit-link,
  78. .panel-content .wrap .recent-posts .post h2,
  79. .lodestar-panel .recent-posts .edit-link {
  80. text-align: right;
  81. }
  82. /* Blog Entries */
  83. .entry-footer .cat-links,
  84. .entry-footer .tags-links,
  85. .entry-footer .comments-link,
  86. .entry-footer .edit-link {
  87. margin-left: 2em;
  88. margin-right: 0;
  89. }
  90. .entry-footer span:last-child {
  91. margin-left: 0;
  92. }
  93. .entry-author .author-avatar {
  94. float: right;
  95. margin-left: 1em;
  96. margin-right: 0;
  97. }
  98. .entry-author .author-heading,
  99. .entry-author .author-bio {
  100. float: left;
  101. }
  102. #infinite-handle span {
  103. border: 0;
  104. }
  105. #infinite-handle span::before {
  106. display: none;
  107. }
  108. /* Jetpack Testimonial */
  109. .jetpack-testimonial .post-thumbnail {
  110. float: right;
  111. margin-left: 1em;
  112. margin-right: 0;
  113. }
  114. .testimonial-about {
  115. margin-left: 0;
  116. margin-right: 30px;
  117. }
  118. .testimonial-about .entry-header {
  119. float: right;
  120. }
  121. /* Comments */
  122. .comment-body {
  123. padding-left: 0;
  124. padding-right: 100px;
  125. }
  126. .children {
  127. padding-left: 0;
  128. padding-right: 40px;
  129. }
  130. .comment-author .avatar-container {
  131. float: right;
  132. left: auto;
  133. right: -100px;
  134. }
  135. .children .comment-author .avatar-container {
  136. left: auto;
  137. right: -80px;
  138. }
  139. .bypostauthor::before {
  140. left: auto;
  141. right: 0;
  142. }
  143. .children .bypostauthor::before {
  144. left: auto;
  145. right: 20px;
  146. }
  147. /* Widgets */
  148. .widget ul {
  149. margin: 0;
  150. }
  151. .search-form .search-submit {
  152. left: 0;
  153. right: auto;
  154. }
  155. .widget .tagcloud a,
  156. .widget.widget_tag_cloud a,
  157. .wp_widget_tag_cloud a {
  158. float: right;
  159. margin: 4px 0 0 4px !important; /* !important to override inline styles */
  160. }
  161. .widget ul li li {
  162. padding: 6px 1.5rem 6px 0;
  163. }
  164. /* Customizer styles */
  165. .lodestar-customizer.lodestar-front-page .lodestar-panel .lodestar-panel-title {
  166. left: 3.2em;
  167. right: auto;
  168. }
  169. /* Media queries */
  170. @media screen and (min-width: 30em) {
  171. .site-top-content span.site-top-content-2 {
  172. margin-left: 0;
  173. }
  174. .site-top-content span.site-top-content-1 {
  175. margin-right: 1.5em;
  176. }
  177. }
  178. @media screen and (min-width: 60em) {
  179. .has-sidebar #primary {
  180. float: right;
  181. }
  182. .has-sidebar #secondary {
  183. float: left;
  184. }
  185. .error404 #primary {
  186. float: none;
  187. }
  188. .main-navigation ul.nav-menu {
  189. text-align: right;
  190. }
  191. .main-navigation ul ul {
  192. padding-right: 0;
  193. }
  194. .main-navigation ul ul,
  195. .main-navigation ul ul ul {
  196. left: auto;
  197. right: -999em;
  198. }
  199. .main-navigation ul ul li:hover > ul,
  200. .main-navigation ul ul li.focus > ul {
  201. left: auto;
  202. right: 100%;
  203. }
  204. .main-navigation ul li:hover > ul,
  205. .main-navigation ul li.focus > ul {
  206. right: auto;
  207. }
  208. .main-navigation .menu-item-has-children > a::after,
  209. .main-navigation .page_item_has_children > a::after {
  210. display: none;
  211. }
  212. .main-navigation .menu-item-has-children > a::before,
  213. .main-navigation .page_item_has_children > a::before {
  214. content: "\f431";
  215. display: inline;
  216. position: relative;
  217. right: 2px;
  218. top: -2px;
  219. }
  220. .main-navigation ul ul .menu-item-has-children > a::before,
  221. .main-navigation ul ul .page_item_has_children > a::before {
  222. margin-top: -10px;
  223. left: 1.0em;
  224. position: absolute;
  225. right: auto;
  226. top: 50%;
  227. -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
  228. -ms-transform: rotate(90deg); /* IE 9 */
  229. transform: rotate(90deg);
  230. }
  231. .has-top-content .site-top-content,
  232. .has-top-content .main-navigation + .site-top-content {
  233. text-align: left;
  234. }
  235. .comment-navigation .nav-previous,
  236. .posts-navigation .nav-previous,
  237. .post-navigation .nav-previous {
  238. float: right;
  239. }
  240. .comment-navigation .nav-next,
  241. .posts-navigation .nav-next,
  242. .post-navigation .nav-next {
  243. float: left;
  244. text-align: left;
  245. }
  246. .comment-list .children {
  247. margin-left: 0;
  248. margin-right: 30px;
  249. }
  250. .comment-author {
  251. float: right;
  252. }
  253. .comment-metadata {
  254. float: left;
  255. }
  256. /* Portfolio */
  257. body.post-type-archive-jetpack-portfolio #primary,
  258. body.tax-jetpack-portfolio-type #primary,
  259. body.tax-jetpack-portfolio-tag #primary,
  260. body.page-template-portfolio-page #primary {
  261. float: none;
  262. }
  263. .post-type-archive-jetpack-portfolio .entry-header,
  264. .tax-jetpack-portfolio-type .entry-header,
  265. .tax-jetpack-portfolio-tag .entry-header,
  266. .page-template-portfolio-page .entry-header,
  267. .portfolio-content,
  268. .page-template-portfolio-page .entry-content,
  269. .project-terms,
  270. .portfolio-projects .project-archive-content .entry-header,
  271. .portfolio-projects .project-archive-content .entry-meta,
  272. .portfolio-projects .project-archive-content .entry-footer {
  273. text-align: center;
  274. }
  275. .portfolio-projects article {
  276. float: right;
  277. }
  278. /* Footer */
  279. .site-footer .widget-column {
  280. float: right;
  281. margin-left: 5%;
  282. margin-right: 0;
  283. }
  284. .site-footer .widget-column:last-child {
  285. margin-left: 0;
  286. }
  287. }