rtl.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. /*
  2. Theme Name: Publication
  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. # Accessibility
  19. # Widgets
  20. # Content
  21. ## Header
  22. ## Posts & Pages
  23. ## Comments
  24. # Jetpack
  25. ## Contact Form
  26. ## Infinite Scroll
  27. ## Sharedaddy
  28. ## Widgets
  29. # Eventbrite
  30. # Responsive
  31. ## x >= 540px
  32. ## x >= 768px
  33. ## x >= 1056px
  34. ## x >= 1272px
  35. ## x >= 1416px
  36. --------------------------------------------------------------*/
  37. /*--------------------------------------------------------------
  38. # Normalize
  39. --------------------------------------------------------------*/
  40. body {
  41. direction: rtl;
  42. unicode-bidi: embed;
  43. }
  44. /*--------------------------------------------------------------
  45. # Typography
  46. --------------------------------------------------------------*/
  47. blockquote blockquote {
  48. margin-left: 0;
  49. margin-right: 24px;
  50. }
  51. /*--------------------------------------------------------------
  52. # Elements
  53. --------------------------------------------------------------*/
  54. li > ul,
  55. li > ol {
  56. margin-left: 0;
  57. margin-right: 24px;
  58. }
  59. table {
  60. text-align: right;
  61. }
  62. /*--------------------------------------------------------------
  63. # Forms
  64. --------------------------------------------------------------*/
  65. /* Search */
  66. .search-form:before,
  67. .search-form .search-submit {
  68. left: 0;
  69. right: auto;
  70. }
  71. .search-form .search-field {
  72. padding-left: 42px;
  73. padding-right: 5px;
  74. }
  75. /*--------------------------------------------------------------
  76. # Navigation
  77. --------------------------------------------------------------*/
  78. /*--------------------------------------------------------------
  79. ## Primary Menu
  80. --------------------------------------------------------------*/
  81. /* Slide Menu */
  82. .slide-menu {
  83. left: -100%;
  84. right: auto;
  85. }
  86. .site {
  87. left: auto;
  88. right: 0;
  89. }
  90. .menu-open .site {
  91. left: auto;
  92. right: -100%;
  93. }
  94. /* Menu Toggle */
  95. .menu-toggle {
  96. left: 0;
  97. right: auto;
  98. }
  99. .menu-toggle.toggled {
  100. left: -100%;
  101. right: auto;
  102. }
  103. /* Dropdown Toggle */
  104. .dropdown-toggle {
  105. left: 0;
  106. right: auto;
  107. }
  108. /* Main Navigation */
  109. .main-navigation ul ul.toggled {
  110. border-left: 0;
  111. border-right: 1px solid #333;
  112. margin-left: 0;
  113. margin-right: 24px;
  114. }
  115. .main-navigation ul ul.toggled:before {
  116. left: auto;
  117. right: -25px;
  118. }
  119. .main-navigation .page_item_has_children > a,
  120. .main-navigation .menu-item-has-children > a {
  121. padding-left: 78px;
  122. padding-right: 24px;
  123. }
  124. /*--------------------------------------------------------------
  125. ## Social Menu
  126. --------------------------------------------------------------*/
  127. .social-navigation li {
  128. float: right;
  129. margin: 0 0 1px 1px;
  130. }
  131. .social-navigation li:last-child {
  132. margin-left: 1px;
  133. margin-right: -1px;
  134. }
  135. /*--------------------------------------------------------------
  136. # Accessibility
  137. --------------------------------------------------------------*/
  138. .screen-reader-text:focus {
  139. left: auto;
  140. right: 5px;
  141. }
  142. /*--------------------------------------------------------------
  143. # Widgets
  144. --------------------------------------------------------------*/
  145. /* Custom Menu */
  146. .widget_nav_menu .page_item_has_children > a,
  147. .widget_nav_menu .menu-item-has-children > a {
  148. padding-left: 45px;
  149. padding-right: 0;
  150. }
  151. /* Lists */
  152. .widget_categories .children:before,
  153. .widget_nav_menu .sub-menu:before,
  154. .widget_pages .children:before {
  155. left: auto;
  156. right: -24px;
  157. }
  158. /*--------------------------------------------------------------
  159. # Content
  160. --------------------------------------------------------------*/
  161. /*--------------------------------------------------------------
  162. ## Header
  163. --------------------------------------------------------------*/
  164. .site-branding {
  165. margin-left: 54px;
  166. margin-right: 0;
  167. }
  168. /*--------------------------------------------------------------
  169. ## Posts & Pages
  170. --------------------------------------------------------------*/
  171. /* Post Thumbnail */
  172. .post-thumbnail {
  173. float: left;
  174. margin: 0 12px 12px 0;
  175. }
  176. /* Page Links */
  177. .page-links > .page-links-title {
  178. padding-left: 5px;
  179. padding-right: 0;
  180. text-align: right;
  181. }
  182. /* Entry Footer */
  183. .entry-footer .tags-links {
  184. padding-left: 0;
  185. padding-right: 24px;
  186. }
  187. .comments-link:before,
  188. .edit-link:before,
  189. .posted-on:before,
  190. .tags-links:before {
  191. margin-left: 6px;
  192. margin-right: 0;
  193. }
  194. .tags-links:before {
  195. margin-right: -24px;
  196. }
  197. /* Entry Author */
  198. .author-avatar {
  199. float: left;
  200. }
  201. .author-heading {
  202. float: right;
  203. }
  204. /*--------------------------------------------------------------
  205. ## Comments
  206. --------------------------------------------------------------*/
  207. .comment-list .children:before {
  208. left: auto;
  209. right: -24px;
  210. }
  211. .comment-metadata .edit-link {
  212. border-left: 0;
  213. border-right: 1px solid #eee;
  214. margin-left: 0;
  215. margin-right: 6px;
  216. padding-left: 0;
  217. padding-right: 6px;
  218. }
  219. .comment-author .avatar {
  220. float: right;
  221. margin-left: 12px;
  222. margin-right: 0;
  223. }
  224. .comment-reply-title small {
  225. float: left;
  226. }
  227. /*--------------------------------------------------------------
  228. # Jetpack
  229. --------------------------------------------------------------*/
  230. /*--------------------------------------------------------------
  231. ## Contact Form
  232. --------------------------------------------------------------*/
  233. .site-content .contact-form input[type="checkbox"],
  234. .site-content .contact-form input[type="radio"] {
  235. margin-left: 6px;
  236. margin-right: 0;
  237. }
  238. /*--------------------------------------------------------------
  239. ## Infinite Scroll
  240. --------------------------------------------------------------*/
  241. /* Infinite Loader */
  242. .infinite-loader .spinner {
  243. top: -37px !important;
  244. left: 12px !important;
  245. }
  246. /*--------------------------------------------------------------
  247. ## Sharedaddy
  248. --------------------------------------------------------------*/
  249. .hentry div.sd-rating h3.sd-title:before,
  250. .hentry div.sharedaddy h3.sd-title:before {
  251. margin-left: 6px;
  252. margin-right: 0;
  253. }
  254. .hentry div.sd-rating .pd-rating,
  255. .hentry div.sharedaddy .jetpack-likes-widget,
  256. .hentry div.sharedaddy .sd-content {
  257. padding-left: 0;
  258. padding-right: 24px;
  259. }
  260. /*--------------------------------------------------------------
  261. ## Widgets
  262. --------------------------------------------------------------*/
  263. /* Gravatar Profile */
  264. .widget-grofile .grofile-thumbnail {
  265. float: left;
  266. }
  267. /* RSS Links */
  268. .widget_rss_links p a + a {
  269. margin-left: 0;
  270. margin-right: 8px;
  271. }
  272. /*--------------------------------------------------------------
  273. # Eventbrite
  274. --------------------------------------------------------------*/
  275. .eventbrite-event .entry-header span {
  276. padding-left: 12px;
  277. padding-right: 0;
  278. }
  279. .eventbrite-event .entry-header span:last-of-type {
  280. padding-left: 0;
  281. }
  282. /*--------------------------------------------------------------
  283. # Responsive
  284. --------------------------------------------------------------*/
  285. /*--------------------------------------------------------------
  286. ## x >= 540px
  287. --------------------------------------------------------------*/
  288. @media screen and (min-width: 540px) {
  289. /* Hero */
  290. .hentry-inner {
  291. left: auto;
  292. right: 0;
  293. }
  294. }
  295. /*--------------------------------------------------------------
  296. ## x >= 768px
  297. --------------------------------------------------------------*/
  298. @media screen and (min-width: 768px) {
  299. /* Primary Menu */
  300. .menu-toggle {
  301. left: 50%;
  302. margin-left: -336px;
  303. margin-right: 0;
  304. right: auto;
  305. }
  306. .menu-toggle.toggled {
  307. left: -50%;
  308. right: auto;
  309. }
  310. /* Header */
  311. .site-branding {
  312. margin-left: 78px;
  313. margin-right: 0;
  314. }
  315. /* Posts & Pages */
  316. .entry-content,
  317. .page-content {
  318. padding-left: 48px;
  319. padding-right: 48px;
  320. }
  321. .post-thumbnail {
  322. margin-left: 0;
  323. margin-right: 24px;
  324. }
  325. /* Hero */
  326. .hero {
  327. margin-left: 0;
  328. margin-right: -144px;
  329. }
  330. }
  331. /*--------------------------------------------------------------
  332. ## x >= 1056px
  333. --------------------------------------------------------------*/
  334. @media screen and (min-width: 1056px) {
  335. /* Widgets */
  336. .widget-column {
  337. float: right;
  338. }
  339. .widget {
  340. padding-left: 0;
  341. padding-right: 48px;
  342. }
  343. /* Primary Menu */
  344. .slide-menu {
  345. left: -329px;
  346. right: auto;
  347. }
  348. .menu-open .site {
  349. left: auto;
  350. right: -329px;
  351. }
  352. .menu-toggle {
  353. left: 50%;
  354. margin-left: -480px;
  355. margin-right: 0;
  356. right: auto;
  357. }
  358. .menu-toggle.toggled {
  359. left: 50%;
  360. right: auto;
  361. }
  362. /* Pagination */
  363. body:not(.no-sidebar) .comment-navigation a,
  364. body:not(.no-sidebar) .post-navigation a,
  365. body:not(.no-sidebar) .posts-navigation a {
  366. border-left: 0;
  367. border-right: 1px solid #eee;
  368. }
  369. /* Content */
  370. .site:before {
  371. left: 0;
  372. margin-left: -150px;
  373. margin-right: 0;
  374. right: auto;
  375. }
  376. .content-area {
  377. float: right;
  378. }
  379. .widget-area {
  380. float: left;
  381. }
  382. .no-sidebar .content-area {
  383. float: none;
  384. margin-left: auto;
  385. margin-right: auto;
  386. }
  387. /* Posts & Pages */
  388. body:not(.no-sidebar) .entry-author,
  389. body:not(.no-sidebar) .entry-content,
  390. body:not(.no-sidebar) .entry-footer,
  391. body:not(.no-sidebar) .hentry,
  392. body:not(.no-sidebar).page .hentry:not(.has-post-thumbnail) .entry-header,
  393. body:not(.no-sidebar) .page-content,
  394. body:not(.no-sidebar).single .hentry:not(.has-post-thumbnail) .entry-header {
  395. padding-right: 0;
  396. }
  397. body:not(.no-sidebar) .entry-author,
  398. body:not(.no-sidebar) .entry-content,
  399. body:not(.no-sidebar) .entry-footer,
  400. body:not(.no-sidebar).page .hentry:not(.has-post-thumbnail) .entry-header,
  401. body:not(.no-sidebar) .page-content,
  402. body:not(.no-sidebar).single .hentry:not(.has-post-thumbnail) .entry-header {
  403. padding-left: 48px;
  404. }
  405. /* Hero */
  406. .hero {
  407. margin-left: 0;
  408. margin-right: -156px;
  409. }
  410. .no-sidebar .hero {
  411. margin-left: 0;
  412. margin-right: -306px;
  413. }
  414. /* Comments */
  415. body:not(.no-sidebar) .comment-list,
  416. body:not(.no-sidebar) .comment-respond,
  417. body:not(.no-sidebar) .comments-title,
  418. body:not(.no-sidebar) .no-comments {
  419. padding-left: 48px;
  420. padding-right: 0;
  421. }
  422. /* Sharedaddy */
  423. div#jp-relatedposts {
  424. padding-left: 48px;
  425. padding-right: 0;
  426. }
  427. .no-sidebar div#jp-relatedposts {
  428. padding-right: 48px;
  429. }
  430. }
  431. /*--------------------------------------------------------------
  432. ## x >= 1272px
  433. --------------------------------------------------------------*/
  434. @media screen and (min-width: 1272px) {
  435. /* Primary Menu */
  436. .menu-toggle {
  437. margin-left: -588px;
  438. margin-right: 0;
  439. }
  440. /* Content */
  441. .site:before {
  442. margin-left: 0;
  443. }
  444. .widget {
  445. padding-left: 48px;
  446. }
  447. .widget-column:after,
  448. .widget-column + .widget-column:before {
  449. left: 0;
  450. right: auto;
  451. }
  452. .widget-column + .widget-column:before {
  453. left: auto;
  454. right: -1px;
  455. }
  456. /* Hero */
  457. .hero {
  458. margin-left: 0;
  459. margin-right: -120px;
  460. }
  461. .no-sidebar .hero {
  462. margin-left: 0;
  463. margin-right: -378px;
  464. }
  465. }
  466. /*--------------------------------------------------------------
  467. ## x >= 1416px
  468. --------------------------------------------------------------*/
  469. @media screen and (min-width: 1416px) {
  470. /* Primary Menu */
  471. .menu-toggle {
  472. margin-left: -660px;
  473. margin-right: 0;
  474. }
  475. /* Hero */
  476. .hero {
  477. margin-left: 0;
  478. margin-right: -340px;
  479. }
  480. .no-sidebar .hero {
  481. margin-left: 0;
  482. margin-right: -670px;
  483. }
  484. }