rtl.css 15 KB

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