rtl.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. /*
  2. Theme Name: Independent Publisher 2
  3. */
  4. body {
  5. direction: rtl;
  6. unicode-bidi: embed;
  7. }
  8. ul,
  9. ol {
  10. margin: 0 2em 1.75em 0;
  11. }
  12. ul ul,
  13. ol ul,
  14. ul ol,
  15. ol ol {
  16. margin-right: 2em;
  17. margin-left: auto;
  18. }
  19. blockquote {
  20. border-width: 0 3px 0 0;
  21. margin: 1.75em -1.9em 1.75em .875em;
  22. padding: 0 1.75em 0 0;
  23. }
  24. blockquote blockquote {
  25. margin-right: 1.75em;
  26. margin-left: auto;
  27. }
  28. blockquote.alignleft,
  29. blockquote.alignright {
  30. margin-right: auto;
  31. margin-left: auto;
  32. text-align: right;
  33. }
  34. blockquote cite:before {
  35. margin-left: .21875em;
  36. margin-right: 0;
  37. }
  38. textarea {
  39. padding-right: 3px;
  40. padding-left: 0;
  41. }
  42. caption,
  43. th,
  44. td {
  45. text-align: right;
  46. }
  47. /*--------------------------------------------------------------
  48. 3.0 - Forms
  49. --------------------------------------------------------------*/
  50. input + button:not(.menu-toggle),
  51. input + input[type="button"],
  52. input + input[type="reset"],
  53. input + input[type="submit"],
  54. input + .posts-navigation .nav-links a,
  55. input + #content #infinite-handle span button,
  56. label + button:not(.menu-toggle),
  57. label + input[type="button"],
  58. label + input[type="reset"],
  59. label + input[type="submit"],
  60. label + .posts-navigation .nav-links a,
  61. label + #content #infinite-handle span button {
  62. margin-right: .21875em;
  63. margin-left: auto;
  64. }
  65. input[type="checkbox"],
  66. input[type="radio"] {
  67. margin-left: .1em;
  68. margin-right: auto;
  69. }
  70. /*--------------------------------------------------------------
  71. 4.0 - Navigation
  72. --------------------------------------------------------------*/
  73. .site-content .nav-previous {
  74. float: right;
  75. }
  76. .site-content .nav-next {
  77. float: left;
  78. text-align: left;
  79. }
  80. /*--------------------------------------------------------------
  81. 4.1 - Mobile Menu Button
  82. --------------------------------------------------------------*/
  83. .toggled .menu-toggle:before {
  84. margin-left: 3px;
  85. margin-right: auto;
  86. }
  87. /*--------------------------------------------------------------
  88. 4.3 - Posts Navigation
  89. --------------------------------------------------------------*/
  90. .posts-navigation .nav-links .nav-previous a:before {
  91. margin-left: .4375em;
  92. margin-right: auto;
  93. }
  94. .posts-navigation .nav-links .nav-next a:after {
  95. margin-right: .4375em;
  96. margin-left: auto;
  97. }
  98. /*--------------------------------------------------------------
  99. 4.4 - Post Navigation
  100. --------------------------------------------------------------*/
  101. .post-navigation .nav-links .nav-previous {
  102. margin: 0 -.21875em 0 0;
  103. }
  104. .post-navigation .nav-links .nav-previous a:before {
  105. margin-left: .21875em;
  106. margin-right: auto;
  107. content: "\f432";
  108. }
  109. .post-navigation .nav-links .nav-next a:after {
  110. -webkit-transform: rotate(-90deg);
  111. -ms-transform: rotate(-90deg);
  112. transform: rotate(-90deg);
  113. }
  114. .post-navigation .nav-links .nav-next {
  115. margin: 0 0 0 -.21875em;
  116. }
  117. .post-navigation .nav-links .nav-next a:after {
  118. margin-right: .21875em;
  119. margin-left: auto;
  120. }
  121. /*--------------------------------------------------------------
  122. 4.5 - Comment Navigation
  123. --------------------------------------------------------------*/
  124. /*--------------------------------------------------------------
  125. 4.6 - Menu
  126. --------------------------------------------------------------*/
  127. .main-navigation {
  128. text-align: right;
  129. }
  130. .main-navigation ul {
  131. padding-right: 0;
  132. padding-left: 0;
  133. }
  134. /* Small menu. */
  135. .menu-toggle:before {
  136. margin-left: 5px;
  137. margin-right: auto;
  138. }
  139. .main-navigation ul a {
  140. padding-right: 1.75em;
  141. padding-left: 1.75em;
  142. }
  143. .main-navigation ul ul a {
  144. padding-right: 3.5em;
  145. padding-left: 0;
  146. }
  147. .main-navigation ul ul ul a {
  148. padding-right: 5.25em;
  149. padding-left: 0;
  150. }
  151. .main-navigation ul ul ul ul a {
  152. padding-right: 7em;
  153. padding-left: 0;
  154. }
  155. .main-navigation ul ul ul ul ul a {
  156. padding-right: 8.75em;
  157. padding-left: 0;
  158. }
  159. .main-navigation ul ul ul ul ul ul a {
  160. padding-right: 10.5em;
  161. padding-left: 0;
  162. }
  163. /*--------------------------------------------------------------
  164. 5.0 - Accessibility
  165. --------------------------------------------------------------*/
  166. /* Text meant only for screen readers */
  167. .screen-reader-text:focus {
  168. left: auto;
  169. right: 5px;
  170. }
  171. /*--------------------------------------------------------------
  172. 6.0 - Clearings
  173. --------------------------------------------------------------*/
  174. /*--------------------------------------------------------------
  175. 7.0 - Content
  176. --------------------------------------------------------------*/
  177. .alignright {
  178. float: right;
  179. margin-left: 1.75em;
  180. margin-right: auto;
  181. }
  182. .alignleft {
  183. float: left;
  184. margin-right: 1.75em;
  185. margin-left: auto;
  186. }
  187. img.alignright {
  188. margin: 5px 0 10px 20px;
  189. }
  190. img.alignleft {
  191. margin: 5px 20px 10px 0;
  192. }
  193. /*--------------------------------------------------------------
  194. 9.0 - Media
  195. --------------------------------------------------------------*/
  196. /* Make sure embeds and iframes fit their containers */
  197. /*--------------------------------------------------------------
  198. 10.0 - Galleries
  199. --------------------------------------------------------------*/
  200. .gallery-item {
  201. float: right;
  202. margin: 1.75em 4px 0 0;
  203. }
  204. .gallery-columns-1 .gallery-item:nth-of-type(1n+1),
  205. .gallery-columns-2 .gallery-item:nth-of-type(2n+1),
  206. .gallery-columns-3 .gallery-item:nth-of-type(3n+1),
  207. .gallery-columns-4 .gallery-item:nth-of-type(4n+1),
  208. .gallery-columns-5 .gallery-item:nth-of-type(5n+1),
  209. .gallery-columns-6 .gallery-item:nth-of-type(6n+1),
  210. .gallery-columns-7 .gallery-item:nth-of-type(7n+1),
  211. .gallery-columns-8 .gallery-item:nth-of-type(8n+1),
  212. .gallery-columns-9 .gallery-item:nth-of-type(9n+1) {
  213. clear: right;
  214. margin-right: 0;
  215. margin-left: auto;
  216. }
  217. /*--------------------------------------------------------------
  218. 11.0 - Comments
  219. --------------------------------------------------------------*/
  220. ol.comment-list li.comment,
  221. ol.comment-list ol.children li.comment {
  222. margin-right: -1px;
  223. margin-left: auto;
  224. }
  225. .pingback,
  226. .trackback {
  227. border-right: solid 1px #e8e8e8;
  228. border-left: none;
  229. }
  230. ol.comment-list .pingback,
  231. ol.comment-list .trackback {
  232. padding-right: .875em;
  233. padding-left: 0;
  234. }
  235. .pingback:before,
  236. .trackback:before {
  237. float: right;
  238. }
  239. .pingback a:first-child,
  240. .trackback a:first-child {
  241. margin: 0 .21875em 0 0;
  242. }
  243. .pingback span.edit-link,
  244. .trackback span.edit-link {
  245. margin-right: .21875em;
  246. margin-left: auto;
  247. }
  248. .pingback span.edit-link:before,
  249. .trackback span.edit-link:before {
  250. margin: 0 0 0 .109375em;
  251. }
  252. .comment .comment-body {
  253. padding: 1.75em 1.75em 0 0;
  254. }
  255. .comment .comment-reply-link:before {
  256. margin-left: .25em;
  257. margin-right: auto;
  258. }
  259. .comment .comment-meta {
  260. padding-right: 63px;
  261. padding-left: 0;
  262. }
  263. .comment .comment-meta .comment-author .avatar {
  264. right: 0;
  265. left: auto;
  266. }
  267. .comment-awaiting-moderation {
  268. margin: 1.2em -63px -5px 0;
  269. }
  270. .comment-awaiting-moderation:before {
  271. margin-left: .4375em;
  272. margin-right: auto;
  273. }
  274. .comment-awaiting-moderation:after {
  275. margin-right: .4375em;
  276. margin-left: auto;
  277. }
  278. .comment > .comment-respond {
  279. margin-right: 1.75em;
  280. margin-left: auto;
  281. }
  282. /*--------------------------------------------------------------
  283. 12.0 - Widgets
  284. --------------------------------------------------------------*/
  285. /* =Footer Widgets */
  286. .widget ul,
  287. .widget ol {
  288. margin-left: auto;
  289. }
  290. .widget ul ul,
  291. .widget ol ul,
  292. .widget ul ol,
  293. .widget ol ol {
  294. margin-right: .875em;
  295. margin-left: auto;
  296. }
  297. .widget ul ul,
  298. .widget ol ul,
  299. .widget ul ol,
  300. .widget ol ol {
  301. margin-right: 1.75em;
  302. margin-left: auto;
  303. }
  304. .widget_calendar #next {
  305. text-align: left;
  306. }
  307. /* Using root level selector to increase specificity */
  308. .widget_authors img {
  309. margin-left: .4375em;
  310. margin-right: auto;
  311. }
  312. /*--------------------------------------------------------------
  313. 13.0 - Layout
  314. --------------------------------------------------------------*/
  315. .light-text > span,
  316. .light-text > a {
  317. margin-left: .875em;
  318. margin-right: auto;
  319. }
  320. .light-text > span:last-child,
  321. .light-text > a:last-child {
  322. margin-left: 0;
  323. margin-right: auto;
  324. }
  325. .light-text > span:before,
  326. .light-text > a:before {
  327. margin-left: .21875em;
  328. margin-right: auto;
  329. }
  330. .light-text span.author.vcard + a[rel="author"] {
  331. margin-right: .4375em;
  332. margin-left: auto;
  333. }
  334. .light-text span.cat-links {
  335. margin-right: 0;
  336. margin-left: auto;
  337. }
  338. .light-text a[rel="author"]:first-child {
  339. margin-left: 0;
  340. margin-right: auto;
  341. }
  342. .sticky-label {
  343. left: auto;
  344. right: 0;
  345. }
  346. .hentry > .sticky-label {
  347. float: right;
  348. }
  349. .hentry > .sticky-label + .entry-content {
  350. clear: right;
  351. }
  352. .entry-meta > span {
  353. margin-left: 1.3125em;
  354. margin-right: 0;
  355. }
  356. .entry-meta > span:last-child {
  357. margin-left: 0;
  358. }
  359. .post-details span.author.vcard + span.cat-links {
  360. margin-right: .4375em;
  361. margin-left: auto;
  362. }
  363. .post-tags li {
  364. float: right;
  365. }
  366. .post-tags li:first-child:after {
  367. margin-left: .875em;
  368. margin-right: 0;
  369. }
  370. .post-tags li:nth-child(n+2):not(:last-child):after {
  371. margin-left: .4375em;
  372. margin-right: 0;
  373. }
  374. .page-links {
  375. text-align: right;
  376. }
  377. .page-links > span:first-child,
  378. .page-links > a:first-child {
  379. margin-left: 0;
  380. margin-right: .4375em;
  381. }
  382. .post-edit-link a:before {
  383. margin: -.109375em -.21875em 0 .21875em;
  384. }
  385. /*--------------------------------------------------------------
  386. 13.2 - Hero Header
  387. --------------------------------------------------------------*/
  388. .has-header-image #hero-header:before {
  389. right: 0;
  390. left: auto;
  391. }
  392. /*--------------------------------------------------------------
  393. 13.3 - Post Author Card
  394. --------------------------------------------------------------*/
  395. .entry-author .author-avatar {
  396. float: left;
  397. margin-right: .875em;
  398. margin-left: auto;
  399. }
  400. .entry-author .author-avatar img {
  401. float: left;
  402. }
  403. .site-posted-on {
  404. margin-right: 100px;
  405. margin-left: auto;
  406. }
  407. .site-posted-on strong {
  408. clear: left;
  409. }
  410. @media screen and (min-width: 32.375em) {
  411. .main-navigation {
  412. text-align: center;
  413. }
  414. .main-navigation ul a,
  415. .main-navigation ul ul a,
  416. .main-navigation ul ul ul a,
  417. .main-navigation ul ul ul ul a,
  418. .main-navigation ul ul ul ul ul a,
  419. .main-navigation ul ul ul ul ul ul a {
  420. padding: .4835em .209375em;
  421. }
  422. .main-navigation ul ul {
  423. right: -999em;
  424. margin-right: -.4em;
  425. float: right;
  426. text-align: right;
  427. left: auto;
  428. margin-left: auto;
  429. }
  430. .main-navigation ul ul ul {
  431. right: -999em;
  432. left: auto;
  433. }
  434. .main-navigation ul ul li:hover > ul,
  435. .main-navigation ul ul li.focus > ul {
  436. right: 100%;
  437. left: auto;
  438. }
  439. .main-navigation ul li:hover > ul,
  440. .main-navigation ul li.focus > ul {
  441. right: auto;
  442. left: auto;
  443. }
  444. .main-navigation li.menu-item-has-children > a:after,
  445. .main-navigation li.page_item_has_children > a:after {
  446. margin-right: 6px;
  447. margin-left: auto;
  448. }
  449. .main-navigation li.menu-item-has-children > a:after,
  450. .main-navigation li.page_item_has_children > a:after {
  451. -webkit-transform: rotate(-90deg);
  452. transform: rotate(-90deg);
  453. }
  454. .post-navigation .nav-links .nav-previous {
  455. margin: 0 -.21875em 0 0;
  456. }
  457. blockquote.alignright {
  458. margin-left: 1.75em;
  459. margin-right: auto;
  460. }
  461. blockquote.alignleft {
  462. margin-right: 1.75em;
  463. margin-left: auto;
  464. }
  465. }
  466. @media screen and (min-width: 48.9375em) {
  467. .comments-area li.comment {
  468. padding: 1.75em 1.75em 0 0;
  469. }
  470. .comments-area li.comment .comment-respond {
  471. margin-right: 0;
  472. margin-left: auto;
  473. }
  474. .comments-area li.comment .comment {
  475. margin-right: 0;
  476. margin-left: auto;
  477. }
  478. .entry-author .author-avatar {
  479. margin-right: 0;
  480. }
  481. .entry-author .author-avatar,
  482. .entry-author .author-avatar img {
  483. float: right;
  484. }
  485. .entry-author .author-bio,
  486. .entry-author .author-heading {
  487. margin-right: 100px;
  488. margin-left: auto;
  489. }
  490. .site-posted-on {
  491. left: 0;
  492. right: auto;
  493. margin-right: 0;
  494. text-align: left;
  495. margin-left: auto;
  496. }
  497. }
  498. @media screen and (min-width: 62em) {
  499. .has-sidebar .content-area {
  500. float: right;
  501. margin: 0 0 0 -26%;
  502. }
  503. .has-sidebar .site-main {
  504. margin: 0 0 0 26%;
  505. }
  506. .has-sidebar .site-content .widget-area {
  507. float: left;
  508. }
  509. .footer-widgets .widget-area {
  510. float: right;
  511. }
  512. .footer-widgets .widget-area:nth-child(1):nth-last-child(2),
  513. .footer-widgets .widget-area:nth-child(2):nth-last-child(1) {
  514. margin-left: 4%;
  515. margin-right: auto;
  516. }
  517. .footer-widgets .widget-area:nth-child(1):nth-last-child(2):last-of-type,
  518. .footer-widgets .widget-area:nth-child(2):nth-last-child(1):last-of-type {
  519. margin-left: 0;
  520. margin-right: auto;
  521. }
  522. .footer-widgets .widget-area:nth-child(1):nth-last-child(3),
  523. .footer-widgets .widget-area:nth-child(2):nth-last-child(2),
  524. .footer-widgets .widget-area:nth-child(3):nth-last-child(1) {
  525. margin-left: 5%;
  526. margin-right: auto;
  527. }
  528. .footer-widgets .widget-area:nth-child(1):nth-last-child(3):last-of-type,
  529. .footer-widgets .widget-area:nth-child(2):nth-last-child(2):last-of-type,
  530. .footer-widgets .widget-area:nth-child(3):nth-last-child(1):last-of-type {
  531. margin-left: 0;
  532. margin-right: auto;
  533. }
  534. }
  535. @media screen and (min-width: 68.75em) {
  536. /* Large tiled galleries */
  537. body:not(.has-sidebar) .tiled-gallery-wrapper,
  538. body:not(.has-sidebar) .jetpack-video-wrapper,
  539. body:not(.has-sidebar) img.size-big,
  540. body:not(.has-sidebar) .wp-caption.size-big img {
  541. margin-left: auto;
  542. margin-right: -180px;
  543. }
  544. body:not(.has-sidebar) .jetpack-slideshow img.size-big {
  545. margin-right: auto;
  546. }
  547. }