rtl.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. /*
  2. Theme Name: Gazette
  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. http://codex.wordpress.org/Right_to_Left_Language_Support
  7. */
  8. /*--------------------------------------------------------------
  9. >>> TABLE OF CONTENTS:
  10. ----------------------------------------------------------------
  11. # Normalize
  12. # Typography
  13. # Elements
  14. # Navigation
  15. ## Primary Menu
  16. ## Social Menu
  17. ## Paging Navigation
  18. # Accessibility
  19. # Widgets
  20. # Content
  21. ## Grid
  22. ## Header
  23. ## Footer
  24. ## Featured Content
  25. ## Posts & Pages
  26. ## Comments
  27. # Media
  28. # Jetpack
  29. ## Infinite Scroll
  30. ## Recipes
  31. ## Widgets
  32. # Eventbrite
  33. # Responsive
  34. ## x >= 600px
  35. ## x >= 768px
  36. ## x >= 840px
  37. ## x >= 960px
  38. ## x >= 1080px
  39. ## x >= 1380px
  40. --------------------------------------------------------------*/
  41. /*--------------------------------------------------------------
  42. # Normalize
  43. --------------------------------------------------------------*/
  44. body {
  45. direction: rtl;
  46. unicode-bidi: embed;
  47. }
  48. /*--------------------------------------------------------------
  49. # Typography
  50. --------------------------------------------------------------*/
  51. blockquote:before {
  52. float: right;
  53. }
  54. blockquote blockquote {
  55. margin-left: 0;
  56. margin-right: 30px;
  57. }
  58. pre {
  59. border-left: 0;
  60. border-right: 2px solid #3863c1;
  61. }
  62. /*--------------------------------------------------------------
  63. # Elements
  64. --------------------------------------------------------------*/
  65. li > ul,
  66. li > ol {
  67. margin-left: 0;
  68. margin-right: 30px;
  69. }
  70. table {
  71. text-align: right;
  72. }
  73. /*--------------------------------------------------------------
  74. # Navigation
  75. --------------------------------------------------------------*/
  76. /*--------------------------------------------------------------
  77. ## Primary Menu
  78. --------------------------------------------------------------*/
  79. /* Menu Toggle */
  80. .menu-toggle {
  81. left: 0;
  82. right: auto;
  83. }
  84. /* Dropdown Toggle */
  85. .dropdown-toggle {
  86. left: 0;
  87. right: auto;
  88. }
  89. /* Main Navigation */
  90. .main-navigation.toggled > div {
  91. left: auto;
  92. right: 0;
  93. }
  94. .main-navigation ul {
  95. padding-right: 0;
  96. }
  97. .main-navigation ul.toggled {
  98. padding-left: 0;
  99. padding-right: 30px;
  100. }
  101. .main-navigation .page_item_has_children > a,
  102. .main-navigation .menu-item-has-children > a {
  103. padding-left: 45px;
  104. padding-right: 0;
  105. }
  106. /*--------------------------------------------------------------
  107. ## Social Menu
  108. --------------------------------------------------------------*/
  109. .social-navigation li {
  110. float: right;
  111. }
  112. .social-navigation li:first-child {
  113. margin-left: 5px;
  114. margin-right: 0;
  115. }
  116. .social-navigation li:last-child {
  117. margin-left: 0;
  118. margin-right: 5px;
  119. }
  120. .social-navigation .page_item_has_children > a,
  121. .social-navigation .menu-item-has-children > a {
  122. padding-left: 0;
  123. }
  124. /*--------------------------------------------------------------
  125. ## Paging Navigation
  126. --------------------------------------------------------------*/
  127. .comment-navigation .nav-previous,
  128. .posts-navigation .nav-previous {
  129. float: right;
  130. }
  131. .comment-navigation .nav-next,
  132. .posts-navigation .nav-next {
  133. float: left;
  134. text-align: left;
  135. }
  136. /*--------------------------------------------------------------
  137. # Accessibility
  138. --------------------------------------------------------------*/
  139. .screen-reader-text:focus {
  140. left: auto;
  141. right: 5px;
  142. }
  143. /*--------------------------------------------------------------
  144. # Widgets
  145. --------------------------------------------------------------*/
  146. /* Sidebar Toggle */
  147. .sidebar-toggle {
  148. left: auto;
  149. margin-left: 0;
  150. margin-right: -22.5px;
  151. right: 50%;
  152. }
  153. /* Footer Widget */
  154. .footer-widget-inner .widget:nth-of-type(4n+1) {
  155. clear: right;
  156. margin-right: 0;
  157. }
  158. .footer-widget-inner .widget:nth-of-type(4n+4) {
  159. clear: left;
  160. margin-left: 0;
  161. }
  162. /* Lists */
  163. .widget_archive ul,
  164. .widget_categories ul,
  165. .widget_links ul,
  166. .widget_meta ul,
  167. .widget_nav_menu ul,
  168. .widget_pages ul,
  169. .widget_recent_comments ul,
  170. .widget_recent_entries ul,
  171. .widget_rss ul {
  172. margin-right: 0;
  173. }
  174. .widget_categories .children,
  175. .widget_nav_menu .sub-menu,
  176. .widget_pages .children {
  177. padding-left: 0;
  178. padding-right: 30px;
  179. }
  180. /* Tag Cloud */
  181. .widget_tag_cloud a:before {
  182. margin-left: 0.125em;
  183. margin-right: 0;
  184. }
  185. /*--------------------------------------------------------------
  186. # Content
  187. --------------------------------------------------------------*/
  188. /*--------------------------------------------------------------
  189. ## Grid
  190. --------------------------------------------------------------*/
  191. /* Floats and Other Properties */
  192. .page .widget-area:before,
  193. .single .widget-area:before {
  194. left: auto;
  195. right: 0;
  196. }
  197. .site-branding {
  198. padding-left: 75px;
  199. padding-right: 0;
  200. }
  201. /*--------------------------------------------------------------
  202. ## Header
  203. --------------------------------------------------------------*/
  204. /* Search Form */
  205. .search-toggle {
  206. left: 0;
  207. right: auto;
  208. }
  209. .search-form .search-submit {
  210. left: 0;
  211. right: auto;
  212. }
  213. .search-form:before {
  214. left: 1px;
  215. right: auto;
  216. }
  217. .search-header .search-form:before,
  218. .search-header .search-form .search-submit {
  219. left: 59px;
  220. right: auto;
  221. }
  222. /* Site Branding */
  223. .site-branding {
  224. float: right;
  225. }
  226. /*--------------------------------------------------------------
  227. ## Footer
  228. --------------------------------------------------------------*/
  229. .footer-text + .social-navigation + .site-info {
  230. clear: left;
  231. }
  232. /*--------------------------------------------------------------
  233. ## Featured Content
  234. --------------------------------------------------------------*/
  235. .featured-content .hentry {
  236. float: right;
  237. }
  238. /*--------------------------------------------------------------
  239. ## Posts & Pages
  240. --------------------------------------------------------------*/
  241. /* Sticky */
  242. .sticky-post {
  243. left: 15px;
  244. right: auto;
  245. }
  246. /* Entry Meta */
  247. .cat-links {
  248. float: right;
  249. }
  250. .comments-link {
  251. float: left;
  252. }
  253. .long-meta .comments-link {
  254. float: right;
  255. }
  256. /* Entry Footer */
  257. .entry-footer {
  258. float: right;
  259. }
  260. .tags-links a:before {
  261. margin-left: 0.125em;
  262. margin-right: 0;
  263. }
  264. /* Page Links */
  265. .page-links a,
  266. .page-links > span {
  267. margin: 0 0 5px 5px;
  268. }
  269. .page-links > .page-links-title {
  270. padding-left: 5px;
  271. padding-right: 0;
  272. text-align: right;
  273. }
  274. /*--------------------------------------------------------------
  275. ## Comments
  276. --------------------------------------------------------------*/
  277. .comment-list .comment-respond {
  278. margin-left: 0;
  279. margin-right: 30px;
  280. }
  281. .comment-author .avatar {
  282. float: right;
  283. margin-left: 30px;
  284. margin-right: 0;
  285. }
  286. .comment-list .comment-reply-title small {
  287. float: left;
  288. }
  289. .reply {
  290. text-align: left;
  291. }
  292. /*--------------------------------------------------------------
  293. # Media
  294. --------------------------------------------------------------*/
  295. .gallery-caption {
  296. left: auto;
  297. right: 0;
  298. }
  299. /*--------------------------------------------------------------
  300. # Jetpack
  301. --------------------------------------------------------------*/
  302. /*--------------------------------------------------------------
  303. ## Infinite Scroll
  304. --------------------------------------------------------------*/
  305. .infinite-loader .spinner {
  306. left: auto !important;
  307. right: 50% !important;
  308. }
  309. /*--------------------------------------------------------------
  310. ## Recipes
  311. --------------------------------------------------------------*/
  312. .site-content .jetpack-recipe blockquote {
  313. margin-right: 0;
  314. }
  315. /*--------------------------------------------------------------
  316. ## Widgets
  317. --------------------------------------------------------------*/
  318. /* Gravatar Profile */
  319. .widget-grofile .grofile-thumbnail {
  320. float: left;
  321. }
  322. /* RSS Links */
  323. .widget_rss_links ul {
  324. margin-right: 0;
  325. }
  326. .widget_rss_links p a + a {
  327. margin-left: 0;
  328. margin-right: 11px;
  329. }
  330. /*--------------------------------------------------------------
  331. # Eventbrite
  332. --------------------------------------------------------------*/
  333. .eventbrite-event .entry-header span {
  334. padding-left: 12px;
  335. padding-right: 0;
  336. }
  337. .eventbrite-event .entry-header span:last-of-type {
  338. padding-left: 0;
  339. }
  340. /*--------------------------------------------------------------
  341. # Responsive
  342. --------------------------------------------------------------*/
  343. /*--------------------------------------------------------------
  344. ## x >= 600px
  345. --------------------------------------------------------------*/
  346. @media screen and (min-width: 600px) {
  347. /* Primary Menu */
  348. .menu-toggle {
  349. left: 59px;
  350. right: auto;
  351. }
  352. /* Paging Navigation */
  353. .comment-navigation .nav-next a:after,
  354. .comment-navigation .nav-previous a:before,
  355. .posts-navigation .nav-next a:after,
  356. .posts-navigation .nav-previous a:before {
  357. content: '\f430';
  358. }
  359. .comment-navigation .nav-previous a:before,
  360. .posts-navigation .nav-previous a:before {
  361. content: '\f429';
  362. }
  363. /* Widgets */
  364. .sidebar-toggle {
  365. margin-left: 0;
  366. margin-right: -30px;
  367. }
  368. /* Header */
  369. .search-header .search-form {
  370. left: auto;
  371. right: 0;
  372. }
  373. .search-form .search-field {
  374. border-left: 60px solid transparent;
  375. border-right: 1px solid #ddd;
  376. }
  377. .search-header .search-field {
  378. border-left-width: 119px;
  379. border-right-width: 1px;
  380. }
  381. .site-branding {
  382. padding-left: 135px;
  383. padding-right: 0;
  384. }
  385. }
  386. /*--------------------------------------------------------------
  387. ## x >= 768px
  388. --------------------------------------------------------------*/
  389. @media screen and (min-width: 768px) {
  390. /* Grid */
  391. .archive .hentry,
  392. .author-info .author-heading,
  393. .blog .hentry,
  394. .footer-widget-inner .widget,
  395. .search .hentry {
  396. float: right;
  397. }
  398. .archive .hentry:nth-of-type(even),
  399. .blog .hentry:nth-of-type(even),
  400. .footer-widget-inner .widget:nth-of-type(even),
  401. .search .hentry:nth-of-type(even) {
  402. margin-left: 0;
  403. margin-right: 30px;
  404. }
  405. .archive .hentry:nth-of-type(odd),
  406. .blog .hentry:nth-of-type(odd),
  407. .footer-widget-inner .widget:nth-of-type(odd),
  408. .search .hentry:nth-of-type(odd) {
  409. margin-left: 30px;
  410. margin-right: 0;
  411. }
  412. .content-area .hentry:nth-of-type(even) {
  413. clear: left;
  414. }
  415. .content-area .hentry:nth-of-type(odd) {
  416. clear: right;
  417. }
  418. /* Author Info */
  419. .author-info .author-avatar {
  420. float: left;
  421. }
  422. }
  423. /*--------------------------------------------------------------
  424. ## x >= 840px
  425. --------------------------------------------------------------*/
  426. @media screen and (min-width: 840px) {
  427. /* Primary Menu */
  428. .main-navigation {
  429. float: right;
  430. padding-left: 60px;
  431. padding-right: 0;
  432. }
  433. body:not(.long-menu) .main-navigation {
  434. border-left: 0;
  435. border-right: 1px solid #ddd;
  436. margin-left: 0;
  437. margin-right: 15px;
  438. }
  439. body.long-menu .main-navigation {
  440. margin-left: 0;
  441. margin-right: -15px;
  442. }
  443. .main-navigation.toggled > div {
  444. right: auto;
  445. }
  446. .main-navigation ul.toggled {
  447. padding-right: 0;
  448. }
  449. .main-navigation li {
  450. float: right;
  451. }
  452. .main-navigation .nav-menu > li + li {
  453. border-left: 0;
  454. border-right: 1px solid #eee;
  455. }
  456. .main-navigation .menu-item-has-children {
  457. padding-left: 38.5px;
  458. padding-right: 15px;
  459. }
  460. .main-navigation .page_item_has_children > a,
  461. .main-navigation .menu-item-has-children > a {
  462. padding-left: 0;
  463. }
  464. .main-navigation .menu-item-has-children > a:after {
  465. left: 15px;
  466. right: auto;
  467. }
  468. .main-navigation ul ul .menu-item-has-children > a:after {
  469. -webkit-transform: rotate(90deg);
  470. transform: rotate(90deg);
  471. }
  472. .main-navigation ul ul {
  473. float: right;
  474. left: auto;
  475. right: -999em;
  476. }
  477. .main-navigation ul ul ul {
  478. left: auto;
  479. right: -999em;
  480. }
  481. .main-navigation ul li:hover > ul {
  482. margin-left: 0;
  483. margin-right: -16px;
  484. right: auto;
  485. }
  486. .main-navigation ul ul li:hover > ul {
  487. left: auto;
  488. right: 100%;
  489. }
  490. /* Grid */
  491. .site-branding {
  492. padding-left: 0;
  493. }
  494. }
  495. /*--------------------------------------------------------------
  496. ## x >= 960px
  497. --------------------------------------------------------------*/
  498. @media screen and (min-width: 960px) {
  499. /* Social Menu */
  500. .social-navigation {
  501. float: right;
  502. }
  503. .footer-text + .social-navigation {
  504. float: left;
  505. }
  506. .footer-text + .social-navigation:before {
  507. left: 0;
  508. right: auto;
  509. }
  510. /* Grid */
  511. .comments-area {
  512. margin-left: -60px;
  513. margin-right: 0;
  514. padding-left: 60px;
  515. padding-right: 0;
  516. }
  517. .archive .hentry:nth-of-type(even),
  518. .blog .hentry:nth-of-type(even),
  519. .footer-widget-inner .widget:nth-of-type(even),
  520. .search .hentry:nth-of-type(even) {
  521. margin-left: 30px;
  522. }
  523. .archive .hentry:nth-of-type(odd),
  524. .blog .hentry:nth-of-type(odd),
  525. .footer-widget-inner .widget:nth-of-type(odd),
  526. .search .hentry:nth-of-type(odd) {
  527. margin-right: 30px;
  528. }
  529. .content-area .hentry:nth-of-type(even),
  530. .content-area .hentry:nth-of-type(odd) {
  531. clear: none;
  532. }
  533. .archive .hentry:nth-of-type(3n+1),
  534. .blog .hentry:nth-of-type(3n+1),
  535. .footer-widget-inner .widget:nth-of-type(4n+1),
  536. .search .hentry:nth-of-type(3n+1) {
  537. margin-left: 30px;
  538. margin-right: 0;
  539. }
  540. .archive .hentry:nth-of-type(3n+3),
  541. .blog .hentry:nth-of-type(3n+3),
  542. .footer-widget-inner .widget:nth-of-type(4n+4),
  543. .search .hentry:nth-of-type(3n+3) {
  544. margin-left: 0;
  545. margin-right: 30px;
  546. }
  547. .content-area .hentry:nth-of-type(3n+1) {
  548. clear: right;
  549. }
  550. .content-area .hentry:nth-of-type(3n+3) {
  551. clear: left;
  552. }
  553. .page .site-main,
  554. .single .site-main {
  555. border-left: 1px solid #ddd;
  556. border-right: 0;
  557. float: right;
  558. padding-left: 60px;
  559. padding-right: 0;
  560. }
  561. .page .widget-area,
  562. .single .widget-area {
  563. border-left: 0;
  564. border-right: 1px solid #ddd;
  565. float: left;
  566. margin-left: 0;
  567. margin-right: -1px;
  568. padding-left: 0;
  569. padding-right: 60px;
  570. }
  571. /* Header */
  572. body:not(.long-menu) .site-branding:before {
  573. margin-right: 15px;
  574. right: 100%;
  575. }
  576. /* Footer */
  577. .site-info {
  578. float: left;
  579. text-align: left;
  580. }
  581. .footer-text {
  582. float: right;
  583. }
  584. /* Posts & Pages */
  585. .author-info {
  586. margin-left: 0;
  587. margin-right: -60px;
  588. padding-left: 0;
  589. padding-right: 60px;
  590. }
  591. /* Comments */
  592. .comment-list:before,
  593. .comment-navigation + .comment-respond:before {
  594. left: -60px;
  595. right: auto;
  596. }
  597. /* Sharedaddy */
  598. div#jp-relatedposts:before {
  599. left: -60px;
  600. right: auto;
  601. }
  602. .hentry div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post:first-of-type {
  603. margin-left: 15px;
  604. margin-right: 0;
  605. }
  606. .hentry div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post:last-of-type {
  607. margin-left: 0;
  608. margin-right: 15px;
  609. }
  610. }
  611. /*--------------------------------------------------------------
  612. ## x >= 1080px
  613. --------------------------------------------------------------*/
  614. @media screen and (min-width: 1080px) {
  615. /* Posts & Pages */
  616. .author-info .author-heading {
  617. float: right;
  618. }
  619. }
  620. /*--------------------------------------------------------------
  621. ## x >= 1380px
  622. --------------------------------------------------------------*/
  623. @media screen and (min-width: 1380px) {
  624. /* Grid */
  625. div#jp-relatedposts,
  626. .comments-area,
  627. .single .entry-content {
  628. float: left;
  629. }
  630. }