rtl.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  1. /*
  2. Theme Name: Twenty Fourteen
  3. Description: Adds support for languages written in a Right To Left (RTL) direction.
  4. It's easy, just a matter of overwriting all the horizontal positioning attributes
  5. of your CSS stylesheet in a separate stylesheet file named rtl.css.
  6. See http://codex.wordpress.org/Right_to_Left_Language_Support
  7. */
  8. /**
  9. * Table of Contents:
  10. *
  11. * 1.0 - Reset
  12. * 2.0 - Repeatable Patterns
  13. * 4.0 - Header
  14. * 5.0 - Navigation
  15. * 6.0 - Content
  16. * 6.3 - Entry Meta
  17. * 6.4 - Entry Content
  18. * 6.5 - Galleries
  19. * 6.7 - Post/Image/Paging Navigation
  20. * 6.10 - Contributor Page
  21. * 6.14 - Comments
  22. * 7.0 - Sidebar
  23. * 7.1 - Widgets
  24. * 7.2 - Content Sidebar Widgets
  25. * 9.0 - Featured Content
  26. * 10.0 - Media Queries
  27. * -----------------------------------------------------------------------------
  28. */
  29. /**
  30. * 1.0 Reset
  31. * -----------------------------------------------------------------------------
  32. */
  33. body {
  34. direction: rtl;
  35. unicode-bidi: embed;
  36. }
  37. a {
  38. display: inline-block;
  39. }
  40. ul,
  41. ol {
  42. margin: 0 20px 24px 0;
  43. }
  44. li > ul,
  45. li > ol {
  46. margin: 0 20px 0 0;
  47. }
  48. caption,
  49. th,
  50. td {
  51. text-align: right;
  52. }
  53. /**
  54. * 2.0 Repeatable Patterns
  55. * -----------------------------------------------------------------------------
  56. */
  57. .wp-caption-text {
  58. padding-left: 10px;
  59. padding-right: 0;
  60. }
  61. .screen-reader-text:focus {
  62. right: 5px;
  63. left: auto;
  64. }
  65. /**
  66. * 4.0 Header
  67. * -----------------------------------------------------------------------------
  68. */
  69. .site-title {
  70. float: right;
  71. }
  72. .search-toggle {
  73. float: left;
  74. margin-left: 38px;
  75. margin-right: auto;
  76. }
  77. .search-box .search-field {
  78. float: left;
  79. padding: 1px 6px 2px 2px;
  80. }
  81. .search-toggle .screen-reader-text {
  82. right: 5px; /* Avoid a horizontal scrollbar when the site has a long menu */
  83. left: auto;
  84. }
  85. /**
  86. * 5.0 Navigation
  87. * -----------------------------------------------------------------------------
  88. */
  89. .site-navigation ul ul {
  90. margin-right: 20px;
  91. margin-left: auto;
  92. }
  93. .menu-toggle {
  94. right: auto;
  95. left: 0;
  96. }
  97. /**
  98. * 6.0 Content
  99. * -----------------------------------------------------------------------------
  100. */
  101. /**
  102. * 6.3 Entry Meta
  103. * -----------------------------------------------------------------------------
  104. */
  105. .entry-meta .tag-links a {
  106. margin: 0 10px 4px 4px;
  107. }
  108. .entry-meta .tag-links a:before {
  109. border-right: 0;
  110. border-left: 8px solid #767676;
  111. right: -7px;
  112. left: auto;
  113. }
  114. .entry-meta .tag-links a:hover:before,
  115. .entry-meta .tag-links a:focus:before {
  116. border-left-color: #41a62a;
  117. }
  118. .entry-meta .tag-links a:after {
  119. right: -2px;
  120. left: auto;
  121. }
  122. /**
  123. * 6.4 Entry Content
  124. * -----------------------------------------------------------------------------
  125. */
  126. .page-links a,
  127. .page-links > span {
  128. margin: 0 0 2px 1px;
  129. }
  130. .page-links > .page-links-title {
  131. padding-right: 0;
  132. padding-left: 7px;
  133. }
  134. /**
  135. * 6.5 Galleries
  136. * -----------------------------------------------------------------------------
  137. */
  138. .gallery-item {
  139. float: right;
  140. margin: 0 0 4px 4px;
  141. }
  142. .gallery-columns-1 .gallery-item:nth-of-type(1n),
  143. .gallery-columns-2 .gallery-item:nth-of-type(2n),
  144. .gallery-columns-3 .gallery-item:nth-of-type(3n),
  145. .gallery-columns-4 .gallery-item:nth-of-type(4n),
  146. .gallery-columns-5 .gallery-item:nth-of-type(5n),
  147. .gallery-columns-6 .gallery-item:nth-of-type(6n),
  148. .gallery-columns-7 .gallery-item:nth-of-type(7n),
  149. .gallery-columns-8 .gallery-item:nth-of-type(8n),
  150. .gallery-columns-9 .gallery-item:nth-of-type(9n) {
  151. margin-right: auto;
  152. margin-left: 0;
  153. }
  154. .gallery-caption {
  155. padding: 6px 8px;
  156. right: 0;
  157. left: auto;
  158. text-align: right;
  159. }
  160. .gallery-caption:before {
  161. right: 0;
  162. left: auto;
  163. }
  164. /**
  165. * 6.7 Post/Image/Paging Navigation
  166. * -----------------------------------------------------------------------------
  167. */
  168. .paging-navigation .page-numbers {
  169. margin-right: auto;
  170. margin-left: 1px;
  171. }
  172. /**
  173. * 6.10 Contributor Page
  174. * -----------------------------------------------------------------------------
  175. */
  176. .contributor-avatar {
  177. float: right;
  178. margin: 0 0 20px 30px;
  179. }
  180. /**
  181. * 6.14 Comments
  182. * -----------------------------------------------------------------------------
  183. */
  184. .comment-author .avatar {
  185. right: 0;
  186. left: auto;
  187. }
  188. .bypostauthor > article .fn:before {
  189. margin: 0 -2px 0 2px;
  190. }
  191. .comment-author,
  192. .comment-awaiting-moderation,
  193. .comment-content,
  194. .comment-list .reply,
  195. .comment-metadata {
  196. padding-right: 30px;
  197. padding-left: 0;
  198. }
  199. .comment-edit-link {
  200. margin-right: 10px;
  201. margin-left: auto;
  202. }
  203. .comment-reply-link:before,
  204. .comment-reply-login:before {
  205. margin-left: auto;
  206. margin-right: 2px;
  207. }
  208. .comment-reply-link:before,
  209. .comment-reply-login:before,
  210. .comment-edit-link:before {
  211. -webkit-transform: scaleX(-1);
  212. -moz-transform: scaleX(-1);
  213. -ms-transform: scaleX(-1);
  214. -o-transform: scaleX(-1);
  215. transform: scaleX(-1);
  216. }
  217. .comment-content ul,
  218. .comment-content ol {
  219. margin: 0 22px 24px 0;
  220. }
  221. .comment-list .children {
  222. margin-right: 15px;
  223. margin-left: auto;
  224. }
  225. .comment-reply-title small a {
  226. float: left;
  227. }
  228. .comment-navigation .nav-previous a {
  229. margin-right: auto;
  230. margin-left: 10px;
  231. }
  232. /**
  233. * 7.0 Sidebars
  234. * -----------------------------------------------------------------------------
  235. */
  236. /**
  237. * 7.1 Widgets
  238. * -----------------------------------------------------------------------------
  239. */
  240. .widget li > ol,
  241. .widget li > ul {
  242. margin-right: 10px;
  243. margin-left: auto;
  244. }
  245. .widget input,
  246. .widget textarea {
  247. padding: 1px 4px 2px 2px;
  248. }
  249. .widget_calendar caption {
  250. text-align: right;
  251. }
  252. .widget_calendar #prev {
  253. padding-right: 5px;
  254. padding-left: 0;
  255. }
  256. .widget_calendar #next {
  257. padding-right: 0;
  258. padding-left: 5px;
  259. text-align: left;
  260. }
  261. .widget_twentyfourteen_ephemera .entry-content ul,
  262. .widget_twentyfourteen_ephemera .entry-content ol {
  263. margin: 0 20px 18px 0;
  264. }
  265. .widget_twentyfourteen_ephemera .entry-content li > ul,
  266. .widget_twentyfourteen_ephemera .entry-content li > ol {
  267. margin: 0 20px 0 0;
  268. }
  269. /**
  270. * 7.2 Content Sidebar Widgets
  271. * -----------------------------------------------------------------------------
  272. */
  273. .content-sidebar .widget li > ol,
  274. .content-sidebar .widget li > ul {
  275. margin-right: 18px;
  276. margin-left: auto;
  277. }
  278. .content-sidebar .widget_twentyfourteen_ephemera .widget-title:before {
  279. margin: -1px 0 0 18px;
  280. }
  281. /**
  282. * 9.0 Featured Content
  283. * -----------------------------------------------------------------------------
  284. */
  285. .featured-content .post-thumbnail img {
  286. right: 0;
  287. left: auto;
  288. }
  289. .slider-viewport {
  290. direction: ltr;
  291. }
  292. .slider .featured-content .entry-header {
  293. right: 0;
  294. left: auto;
  295. text-align: right;
  296. }
  297. .slider-control-paging {
  298. float: right;
  299. }
  300. .slider-control-paging li {
  301. float: right;
  302. margin: 2px 0 2px 4px;
  303. }
  304. .slider-control-paging li:last-child {
  305. margin-right: auto;
  306. margin-left: 0;
  307. }
  308. .slider-control-paging a:before {
  309. right: 10px;
  310. left: auto;
  311. }
  312. .slider-direction-nav li {
  313. border-width: 2px 0 0 1px;
  314. float: right;
  315. }
  316. .slider-direction-nav li:last-child {
  317. border-width: 2px 1px 0 0;
  318. }
  319. .slider-direction-nav a:before {
  320. content: "\f429";
  321. }
  322. .slider-direction-nav .slider-next:before {
  323. content: "\f430";
  324. }
  325. /**
  326. * 10.0 Media Queries
  327. * -----------------------------------------------------------------------------
  328. */
  329. @media screen and (max-width: 400px) {
  330. .list-view .site-content .post-thumbnail img {
  331. float: right;
  332. margin: 0 0 3px 10px;
  333. }
  334. }
  335. @media screen and (min-width: 401px) {
  336. .site-content .entry-meta > span {
  337. margin-right: auto;
  338. margin-left: 10px;
  339. }
  340. .site-content .format-quote .post-format a:before {
  341. margin-right: auto;
  342. margin-left: 2px;
  343. }
  344. .site-content .format-gallery .post-format a:before {
  345. margin-right: auto;
  346. margin-left: 4px;
  347. }
  348. .site-content .format-aside .post-format a:before {
  349. margin-right: auto;
  350. margin-left: 2px;
  351. }
  352. .site-content .featured-post:before {
  353. margin-right: auto;
  354. margin-left: 3px;
  355. }
  356. .site-content .entry-date a:before,
  357. .attachment .site-content span.entry-date:before {
  358. margin-right: auto;
  359. margin-left: 1px;
  360. }
  361. .site-content .comments-link a:before {
  362. margin-right: auto;
  363. margin-left: 2px;
  364. }
  365. .site-content .full-size-link a:before {
  366. margin-right: auto;
  367. margin-left: 1px;
  368. }
  369. .entry-content .edit-link a:before,
  370. .entry-meta .edit-link a:before {
  371. -webkit-transform: scaleX(-1);
  372. -moz-transform: scaleX(-1);
  373. -ms-transform: scaleX(-1);
  374. -o-transform: scaleX(-1);
  375. transform: scaleX(-1);
  376. }
  377. }
  378. @media screen and (min-width: 594px) {
  379. .site-content .entry-header {
  380. padding-right: 30px;
  381. padding-left: 30px;
  382. }
  383. }
  384. @media screen and (min-width: 673px) {
  385. .search-toggle {
  386. margin-right: auto;
  387. margin-left: 18px;
  388. }
  389. .content-area {
  390. float: right;
  391. }
  392. .site-content {
  393. margin-right: auto;
  394. margin-left: 33.33333333%;
  395. }
  396. .archive-header,
  397. .comments-area,
  398. .image-navigation,
  399. .page-header,
  400. .page-content,
  401. .post-navigation,
  402. .site-content .entry-content,
  403. .site-content .entry-summary,
  404. .site-content footer.entry-meta {
  405. padding-right: 30px;
  406. padding-left: 30px;
  407. }
  408. .full-width .site-content {
  409. margin-left: 0;
  410. }
  411. .content-sidebar {
  412. float: left;
  413. margin-right: -33.33333333%;
  414. margin-left: auto;
  415. }
  416. .grid .featured-content .hentry {
  417. float: right;
  418. }
  419. .slider-control-paging {
  420. padding-right: 20px;
  421. padding-left: 0;
  422. }
  423. .slider-direction-nav {
  424. float: left;
  425. }
  426. .slider-direction-nav li {
  427. padding: 0 0 0 1px;
  428. }
  429. .slider-direction-nav li:last-child {
  430. padding: 0 1px 0 0;
  431. }
  432. }
  433. @media screen and (min-width: 783px) {
  434. .header-main {
  435. padding-right: 30px;
  436. padding-left: 0;
  437. }
  438. .search-toggle {
  439. margin-right: auto;
  440. margin-left: 0;
  441. }
  442. .primary-navigation {
  443. float: left;
  444. margin: 0 -12px 0 1px;
  445. }
  446. .primary-navigation ul ul {
  447. float: right;
  448. margin: 0;
  449. right: -999em;
  450. left: auto;
  451. }
  452. .primary-navigation ul ul ul {
  453. right: -999em;
  454. left: auto;
  455. }
  456. .primary-navigation ul li:hover > ul,
  457. .primary-navigation ul li.focus > ul {
  458. right: auto;
  459. }
  460. .primary-navigation ul ul li:hover > ul,
  461. .primary-navigation ul ul li.focus > ul {
  462. right: 100%;
  463. left: auto;
  464. }
  465. .primary-navigation .menu-item-has-children > a,
  466. .primary-navigation .page_item_has_children > a {
  467. padding-right: 12px;
  468. padding-left: 26px;
  469. }
  470. .primary-navigation .menu-item-has-children > a:after,
  471. .primary-navigation .page_item_has_children > a:after {
  472. right: auto;
  473. left: 12px;
  474. }
  475. .primary-navigation li .menu-item-has-children > a,
  476. .primary-navigation li .page_item_has_children > a {
  477. padding-right: 12px;
  478. padding-left: 20px;
  479. }
  480. .primary-navigation .menu-item-has-children li.menu-item-has-children > a:after,
  481. .primary-navigation .menu-item-has-children li.page_item_has_children > a:after,
  482. .primary-navigation .page_item_has_children li.menu-item-has-children > a:after,
  483. .primary-navigation .page_item_has_children li.page_item_has_children > a:after {
  484. content: "\f503";
  485. right: auto;
  486. left: 8px;
  487. }
  488. }
  489. @media screen and (min-width: 810px) {
  490. .attachment .entry-attachment .attachment {
  491. margin-right: -168px;
  492. margin-left: -168px;
  493. }
  494. .attachment .entry-attachment .attachment a {
  495. display: block;
  496. }
  497. .contributor-avatar {
  498. margin-right: -168px;
  499. margin-left: auto;
  500. }
  501. .contributor-summary {
  502. float: right;
  503. }
  504. .full-width .site-content blockquote.alignright,
  505. .full-width .site-content img.size-full.alignright,
  506. .full-width .site-content img.size-large.alignright,
  507. .full-width .site-content img.size-medium.alignright,
  508. .full-width .site-content .wp-caption.alignright {
  509. margin-right: -168px;
  510. margin-left: auto;
  511. }
  512. .full-width .site-content blockquote.alignleft,
  513. .full-width .site-content img.size-full.alignleft,
  514. .full-width .site-content img.size-large.alignleft,
  515. .full-width .site-content img.size-medium.alignleft,
  516. .full-width .site-content .wp-caption.alignleft {
  517. margin-right: auto;
  518. margin-left: -168px;
  519. }
  520. }
  521. @media screen and (min-width: 846px) {
  522. .comment-author,
  523. .comment-awaiting-moderation,
  524. .comment-content,
  525. .comment-list .reply,
  526. .comment-metadata {
  527. padding-right: 50px;
  528. padding-left: 0;
  529. }
  530. .comment-list .children {
  531. margin-right: 20px;
  532. margin-left: auto;
  533. }
  534. }
  535. @media screen and (min-width: 1008px) {
  536. .search-box-wrapper {
  537. padding-right: 182px;
  538. padding-left: 0;
  539. }
  540. .main-content {
  541. float: right;
  542. }
  543. .site-content {
  544. margin-right: 182px;
  545. margin-left: 29.04761904%;
  546. }
  547. .full-width .site-content {
  548. margin-right: 182px;
  549. }
  550. .content-sidebar {
  551. margin-right: -29.04761904%;
  552. margin-left: auto;
  553. }
  554. .site:before {
  555. right: 0;
  556. left: auto;
  557. }
  558. #secondary {
  559. float: right;
  560. margin: 0 -100% 0 0;
  561. }
  562. .secondary-navigation ul ul {
  563. right: -999em;
  564. left: auto;
  565. }
  566. .secondary-navigation ul li:hover > ul,
  567. .secondary-navigation ul li.focus > ul {
  568. right: 162px;
  569. left: auto;
  570. }
  571. .secondary-navigation .menu-item-has-children > a {
  572. padding-right: 30px;
  573. padding-left: 38px;
  574. }
  575. .secondary-navigation .menu-item-has-children > a:after {
  576. border-right-color: #fff;
  577. border-left-color: transparent;
  578. right: auto;
  579. left: 26px;
  580. content: "\f503";
  581. }
  582. .footer-sidebar .widget {
  583. float: right;
  584. }
  585. .featured-content {
  586. padding-right: 182px;
  587. padding-left: 0;
  588. }
  589. }
  590. @media screen and (min-width: 1040px) {
  591. .archive-header,
  592. .comments-area,
  593. .image-navigation,
  594. .page-header,
  595. .page-content,
  596. .post-navigation,
  597. .site-content .entry-header,
  598. .site-content .entry-content,
  599. .site-content .entry-summary,
  600. .site-content footer.entry-meta {
  601. padding-right: 15px;
  602. padding-left: 15px;
  603. }
  604. .full-width .archive-header,
  605. .full-width .comments-area,
  606. .full-width .image-navigation,
  607. .full-width .page-header,
  608. .full-width .page-content,
  609. .full-width .post-navigation,
  610. .full-width .site-content .entry-header,
  611. .full-width .site-content .entry-content,
  612. .full-width .site-content .entry-summary,
  613. .full-width .site-content footer.entry-meta {
  614. padding-right: 30px;
  615. padding-left: 30px;
  616. }
  617. }
  618. @media screen and (min-width: 1080px) {
  619. .site-content {
  620. margin-right: 222px;
  621. margin-left: 29.04761904%;
  622. }
  623. .full-width .site-content {
  624. margin-right: 222px;
  625. }
  626. .search-box-wrapper,
  627. .featured-content {
  628. padding-right: 222px;
  629. padding-left: 0;
  630. }
  631. .secondary-navigation ul li:hover > ul,
  632. .secondary-navigation ul li.focus > ul {
  633. right: 202px;
  634. left: auto;
  635. }
  636. .slider-control-paging {
  637. padding-right: 24px;
  638. padding-left: 0;
  639. }
  640. .slider-control-paging li {
  641. margin: 12px 0 12px 12px;
  642. }
  643. .slider-control-paging a:before {
  644. right: 6px;
  645. left: auto;
  646. }
  647. }
  648. @media screen and (min-width: 1110px) {
  649. .archive-header,
  650. .comments-area,
  651. .image-navigation,
  652. .page-header,
  653. .page-content,
  654. .post-navigation,
  655. .site-content .entry-header,
  656. .site-content .entry-content,
  657. .site-content .entry-summary,
  658. .site-content footer.entry-meta {
  659. padding-right: 30px;
  660. padding-left: 30px;
  661. }
  662. }
  663. @media screen and (min-width: 1218px) {
  664. .archive-header,
  665. .comments-area,
  666. .image-navigation,
  667. .page-header,
  668. .page-content,
  669. .post-navigation,
  670. .site-content .entry-header,
  671. .site-content .entry-content,
  672. .site-content .entry-summary,
  673. .site-content footer.entry-meta {
  674. margin-left: 54px;
  675. }
  676. .full-width .archive-header,
  677. .full-width .comments-area,
  678. .full-width .image-navigation,
  679. .full-width .page-header,
  680. .full-width .page-content,
  681. .full-width .post-navigation,
  682. .full-width .site-content .entry-header,
  683. .full-width .site-content .entry-content,
  684. .full-width .site-content .entry-summary,
  685. .full-width .site-content footer.entry-meta {
  686. margin-right: auto;
  687. margin-left: auto;
  688. }
  689. }
  690. @media screen and (min-width: 1260px) {
  691. .site-content blockquote.alignright {
  692. margin-right: -18%;
  693. margin-left: auto;
  694. }
  695. .site-content blockquote.alignleft {
  696. margin-left: -18%;
  697. margin-right: auto;
  698. }
  699. }