rtl.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. /*
  2. Theme Name: Dyad
  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. # Elements
  12. # Heading
  13. # Navigation
  14. # Site Banner
  15. # Content
  16. ## Index, Archive, Search
  17. ## 404 Error Pages
  18. ## Single Posts, Single Pages
  19. ## Comments
  20. # Infinite scroll, posts navigation
  21. # Site Footer
  22. ## Widgets
  23. ## Social Media Nav
  24. # Media Queries
  25. # WP.com specific styles
  26. --------------------------------------------------------------*/
  27. /*--------------------------------------------------------------
  28. # Elements
  29. --------------------------------------------------------------*/
  30. body {
  31. direction: rtl;
  32. unicode-bidi: embed;
  33. }
  34. blockquote {
  35. border-left: 0;
  36. border-right: 3px solid #ddd;
  37. margin-left: 0;
  38. margin-right: 1.5em;
  39. padding-left: 0;
  40. padding-right: 1.5em;
  41. }
  42. blockquote blockquote {
  43. margin-right: 0;
  44. }
  45. /**
  46. * Lists
  47. */
  48. ul,
  49. ol {
  50. margin-left: 0;
  51. margin-right: 3em;
  52. }
  53. li > ul,
  54. li > ol {
  55. margin-left: 0;
  56. margin-right: 1.5em;
  57. }
  58. /**
  59. * Tables
  60. */
  61. th,
  62. tfoot td {
  63. text-align: right;
  64. }
  65. pre:before {
  66. left: 0;
  67. right: auto;
  68. }
  69. /*--------------------------------------------------------------
  70. # Heading
  71. --------------------------------------------------------------*/
  72. .site-header {
  73. left: 0;
  74. right: auto;
  75. }
  76. /**
  77. # Site Branding - Logo
  78. */
  79. .site-branding .site-logo-link {
  80. padding-left: 0.5em;
  81. padding-right: auto;
  82. }
  83. /*--------------------------------------------------------------
  84. # Navigation
  85. --------------------------------------------------------------*/
  86. #site-navigation {
  87. text-align: left;
  88. }
  89. #site-navigation ul li {
  90. margin-left: 0;
  91. margin-right: 1.5em;
  92. }
  93. #site-navigation ul ul {
  94. left: auto;
  95. right: -9999em;
  96. }
  97. #site-navigation ul ul:before {
  98. left: auto;
  99. margin-left: 0;
  100. margin-right: -10px;
  101. right: 50%;
  102. }
  103. #site-navigation ul ul ul:before {
  104. border-width: 8px 8px 8px 0;
  105. border-color: transparent #292c2f transparent transparent;
  106. left: 0;
  107. margin-left: 0;
  108. margin-right: 0;
  109. right: auto;
  110. }
  111. #site-navigation ul ul li {
  112. margin-right: 0;
  113. text-align: right;
  114. }
  115. #site-navigation ul li:hover > ul,
  116. #site-navigation ul li.focus > ul {
  117. left: auto;
  118. margin-left: 0;
  119. margin-right: -110px;
  120. right: 50%;
  121. }
  122. #site-navigation ul ul li:hover > ul,
  123. #site-navigation ul ul li.focus > ul {
  124. left: 100%;
  125. right: auto;
  126. margin: 0;
  127. }
  128. #site-navigation ul ul ul {
  129. padding-left: 8px;
  130. padding-right: 0;
  131. }
  132. /*--------------------------------------------------------------
  133. # Site Banner
  134. --------------------------------------------------------------*/
  135. #site-banner {
  136. direction: ltr;
  137. }
  138. /*--------------------------------------------------------------
  139. # Content
  140. --------------------------------------------------------------*/
  141. /*--------------------------------------------------------------
  142. ## Index, Archive, Search
  143. --------------------------------------------------------------*/
  144. /* Grid of posts */
  145. .posts .hentry {
  146. float: right;
  147. }
  148. /* Content */
  149. .posts .entry-inner:before,
  150. .posts .entry-inner:after {
  151. left: auto;
  152. margin-left: 0;
  153. margin-right: -25px;
  154. right: 0;
  155. }
  156. .posts .entry-inner-content {
  157. left: 0;
  158. right: auto;
  159. text-align: right;
  160. }
  161. .too-short .link-more:before {
  162. left: auto;
  163. right: 0;
  164. }
  165. .posts .has-post-thumbnail .edit-link {
  166. left: 0;
  167. right: auto;
  168. }
  169. /* Posts without featured image */
  170. .posts .hentry:not(.has-post-thumbnail) .entry-inner:after,
  171. .posts .hentry:not(.has-post-thumbnail) .entry-inner:before {
  172. left: 50%;
  173. margin-left: -20px;
  174. margin-right: 0;
  175. right: auto;
  176. }
  177. /*--------------------------------------------------------------
  178. ## 404 Error Pages
  179. --------------------------------------------------------------*/
  180. .error404 .search-form .search-field,
  181. .posts .no-results .search-form .search-field {
  182. text-align: right;
  183. }
  184. /*--------------------------------------------------------------
  185. ## Single Posts, Single Pages
  186. --------------------------------------------------------------*/
  187. /* site inner */
  188. .is-singular:not(.home) .site-inner {
  189. float: left;
  190. }
  191. .is-singular:not(.home):not(.has-post-thumbnail) .site-inner,
  192. .single-format-image .site-inner,
  193. .single-format-image.has-post-thumbnail .site-inner {
  194. float: none;
  195. }
  196. /* entry inner - separator */
  197. .is-singular .entry-inner:after,
  198. .is-singular .entry-inner:before,
  199. .error404 .entry-inner:after,
  200. .error404 .entry-inner:before {
  201. left: auto;
  202. right: 50%;
  203. }
  204. .is-singular .entry-inner:after,
  205. .error404 .entry-inner:after {
  206. margin: -18px -18px 0 0;
  207. }
  208. .is-singular .entry-inner:before,
  209. .error404 .entry-inner:before {
  210. margin: -18px -18px 0 0;
  211. }
  212. /* entry header */
  213. .has-post-thumbnail.is-singular:not(.home):not(.single-format-image):not(.page-template-eventbrite-index) .entry-header {
  214. left: auto;
  215. right: 0;
  216. text-align: right;
  217. }
  218. .is-singular.single-format-image .entry-header,
  219. .is-singular.single-format-image.has-post-thumbnail .entry-header {
  220. text-align: center;
  221. }
  222. .is-singular.has-post-thumbnail:not(.single-format-image) .entry-posted .posted-info {
  223. float: right;
  224. }
  225. .is-singular.has-post-thumbnail:not(.single-format-image) .entry-posted .edit-link {
  226. float: left;
  227. }
  228. .is-singular.single-format-image.has-post-thumbnail .entry-posted .posted-info,
  229. .is-singular.single-format-image.has-post-thumbnail .entry-posted .edit-link {
  230. float: none;
  231. }
  232. /* entry content */
  233. .tags-links a {
  234. margin: 0 0 0.5em 0.5em;
  235. }
  236. .tags-links a:last-of-type {
  237. margin-left: 0;
  238. }
  239. /* entry media */
  240. .is-singular .entry-media {
  241. left: auto;
  242. right: 0;
  243. }
  244. /*--------------------------------------------------------------
  245. ## Comments
  246. --------------------------------------------------------------*/
  247. /* comments area */
  248. .comments-title .add-comment-link {
  249. float: left;
  250. }
  251. .comment-author {
  252. position: relative;
  253. }
  254. .comment-author .avatar-container {
  255. left: auto;
  256. right: -100px;
  257. }
  258. .bypostauthor .comment-author:before {
  259. left: auto;
  260. right: -100px;
  261. }
  262. ol.children .bypostauthor .comment-author:before {
  263. left: auto;
  264. right: -80px;
  265. }
  266. .comment-body {
  267. margin-left: 0;
  268. margin-right: 100px;
  269. }
  270. .comment .reply {
  271. left: 0;
  272. right: auto;
  273. }
  274. .comment .reply:before {
  275. margin-left: 3px;
  276. margin-right: 0;
  277. }
  278. /* */
  279. ol.comment-list ol.children {
  280. padding-left: 0;
  281. padding-right: 50px;
  282. }
  283. ol.comment-list ol.children .comment-author .avatar-container {
  284. left: 0;
  285. right: -80px;
  286. }
  287. ol.comment-list ol.children .comment-body {
  288. margin-left: 0;
  289. margin-right: 80px;
  290. }
  291. /**
  292. * Comments pagination
  293. */
  294. .comment-navigation .nav-previous {
  295. float: right;
  296. }
  297. .comment-navigation .nav-next {
  298. float: left;
  299. }
  300. /*--------------------------------------------------------------
  301. ## Site Footer
  302. --------------------------------------------------------------*/
  303. .widget-area .widget {
  304. float: right;
  305. }
  306. /*
  307. * Infinite Footer
  308. */
  309. #infinite-footer .container {
  310. float: left;
  311. }
  312. .posts-navigation .nav-previous {
  313. float: right;
  314. }
  315. .posts-navigation .nav-next {
  316. float: left;
  317. }
  318. .footer-bottom-info.has-social-menu .site-info {
  319. float: right;
  320. }
  321. .footer-bottom-info.has-social-menu .social-links {
  322. float: left;
  323. }
  324. .is-singular.has-post-thumbnail .footer-bottom-info.has-social-menu .site-info,
  325. .is-singular.has-post-thumbnail .footer-bottom-info.has-social-menu .social-links {
  326. float: none;
  327. }
  328. /*--------------------------------------------------------------
  329. ## Widgets
  330. --------------------------------------------------------------*/
  331. .widget {
  332. text-align: right;
  333. }
  334. .widget-title {
  335. text-align: right;
  336. }
  337. .widget ul li li {
  338. padding-left: 0;
  339. padding-right: 1.5em;
  340. }
  341. /**
  342. * Tag cloud widget
  343. */
  344. .widget .tagcloud a,
  345. .widget.widget_tag_cloud a {
  346. float: right;
  347. margin: 2px 0 0 2px;
  348. }
  349. /* Calendar */
  350. .widget_calendar caption {
  351. text-align: right;
  352. }
  353. /*--------------------------------------------------------------
  354. ## Media Queries
  355. --------------------------------------------------------------*/
  356. @media screen and (min-width: 1601px) {
  357. /*
  358. Index, Archive, Search - post grid
  359. */
  360. .posts .entry-media {
  361. float: right;
  362. }
  363. .posts .hentry:nth-of-type(6n+4).has-post-thumbnail .entry-media,
  364. .posts .hentry:nth-of-type(6n+5).has-post-thumbnail .entry-media,
  365. .posts .hentry:nth-of-type(6n+6).has-post-thumbnail .entry-media {
  366. float: left;
  367. }
  368. .posts .entry-inner {
  369. left: 0;
  370. right: auto;
  371. }
  372. .posts .hentry:nth-of-type(6n+4).has-post-thumbnail .entry-inner,
  373. .posts .hentry:nth-of-type(6n+5).has-post-thumbnail .entry-inner,
  374. .posts .hentry:nth-of-type(6n+6).has-post-thumbnail .entry-inner,
  375. .posts .hentry.has-post-thumbnail:nth-of-type(6n+4) .edit-link,
  376. .posts .hentry.has-post-thumbnail:nth-of-type(6n+5) .edit-link,
  377. .posts .hentry.has-post-thumbnail:nth-of-type(6n+6) .edit-link {
  378. left: auto;
  379. right: 0;
  380. }
  381. .posts .hentry:nth-of-type(6n+4).has-post-thumbnail .entry-inner:after,
  382. .posts .hentry:nth-of-type(6n+5).has-post-thumbnail .entry-inner:after,
  383. .posts .hentry:nth-of-type(6n+6).has-post-thumbnail .entry-inner:after,
  384. .posts .hentry:nth-of-type(6n+4).has-post-thumbnail .entry-inner:before,
  385. .posts .hentry:nth-of-type(6n+5).has-post-thumbnail .entry-inner:before,
  386. .posts .hentry:nth-of-type(6n+6).has-post-thumbnail .entry-inner:before {
  387. left: 0;
  388. margin-left: -25px;
  389. margin-right: 0;
  390. right: auto;
  391. }
  392. }
  393. @media only screen and (max-width: 1600px) {
  394. /*
  395. Index, Archive, Search - post grid
  396. */
  397. .posts .entry-media {
  398. float: right;
  399. }
  400. .posts .hentry:nth-of-type(4n+3) .entry-media,
  401. .posts .hentry:nth-of-type(4n+4) .entry-media {
  402. float: left;
  403. }
  404. .posts .entry-inner {
  405. left: 0;
  406. right: auto;
  407. }
  408. .posts .hentry:nth-of-type(4n+3) .entry-inner,
  409. .posts .hentry:nth-of-type(4n+4) .entry-inner,
  410. .posts .hentry:nth-of-type(4n+3) .edit-link,
  411. .posts .hentry:nth-of-type(4n+4) .edit-link {
  412. left: auto;
  413. right: 0;
  414. }
  415. .posts .hentry:nth-of-type(4n+3).has-post-thumbnail .entry-inner:after,
  416. .posts .hentry:nth-of-type(4n+4).has-post-thumbnail .entry-inner:after,
  417. .posts .hentry:nth-of-type(4n+3).has-post-thumbnail .entry-inner:before,
  418. .posts .hentry:nth-of-type(4n+4).has-post-thumbnail .entry-inner:before {
  419. left: 0;
  420. margin-left: -25px;
  421. margin-right: 0;
  422. right: auto;
  423. }
  424. }
  425. @media only screen and (max-width: 1200px) {
  426. /*
  427. * Index, Archive, Search
  428. */
  429. .posts .hentry {
  430. float: none;
  431. }
  432. .posts .hentry:nth-child(odd).has-post-thumbnail .entry-inner:after,
  433. .posts .hentry:nth-child(odd).has-post-thumbnail .entry-inner:before {
  434. left: auto;
  435. right: 0;
  436. }
  437. .posts .hentry:nth-child(odd) .entry-media {
  438. float: right;
  439. }
  440. .posts .hentry:nth-child(even) .entry-media {
  441. float: left;
  442. }
  443. .posts .hentry:nth-child(odd) .entry-inner,
  444. .posts .hentry:nth-child(odd) .edit-link,
  445. .posts .hentry:nth-child(even).has-post-thumbnail .entry-inner:after,
  446. .posts .hentry:nth-child(even).has-post-thumbnail .entry-inner:before {
  447. left: 0;
  448. right: auto;
  449. }
  450. .posts .hentry:nth-child(even).has-post-thumbnail .entry-inner:after,
  451. .posts .hentry:nth-child(even).has-post-thumbnail .entry-inner:before {
  452. margin-left: -25px;
  453. margin-right: 0;
  454. }
  455. .posts .hentry:nth-child(even) .entry-inner,
  456. .posts .hentry:nth-child(even) .edit-link,
  457. .posts .hentry:nth-child(odd).has-post-thumbnail .entry-inner:after,
  458. .posts .hentry:nth-child(odd).has-post-thumbnail .entry-inner:before {
  459. left: auto;
  460. right: 0;
  461. }
  462. .posts .hentry:nth-child(odd).has-post-thumbnail .entry-inner:after,
  463. .posts .hentry:nth-child(odd).has-post-thumbnail .entry-inner:before {
  464. margin-left: 0;
  465. margin-right: -25px;
  466. }
  467. /* entry header */
  468. .is-singular .entry-header,
  469. .has-post-thumbnail.is-singular:not(.home) .entry-header,
  470. .page.has-post-thumbnail.is-singular:not(.home) .entry-header,
  471. .has-post-thumbnail.is-singular:not(.home):not(.single-format-image) .entry-header {
  472. text-align: center;
  473. }
  474. .is-singular.has-post-thumbnail:not(.single-format-image) .entry-posted .posted-info,
  475. .is-singular.has-post-thumbnail:not(.single-format-image) .entry-posted .edit-link {
  476. float: none;
  477. }
  478. .footer-bottom-info.has-social-menu .site-info,
  479. .footer-bottom-info.has-social-menu .social-links {
  480. float: none;
  481. }
  482. }
  483. @media only screen and (max-width: 960px) {
  484. .site-branding {
  485. float: none;
  486. }
  487. /* Menu */
  488. .menu-toggle {
  489. left: 2rem;
  490. right: auto;
  491. }
  492. #site-navigation {
  493. text-align: right;
  494. }
  495. #site-navigation ul li {
  496. margin-right: 0;
  497. }
  498. #site-navigation ul ul {
  499. margin: 0 2rem 0 0 !important;
  500. }
  501. #site-navigation ul ul ul {
  502. padding-right: 0;
  503. }
  504. /* entry media */
  505. .is-singular .entry-media,
  506. .is-singular:not(.home) .entry-media {
  507. left: auto;
  508. }
  509. }
  510. @media only screen and (max-width: 680px) {
  511. /* elements */
  512. .menu-toggle {
  513. right: auto;
  514. }
  515. .posts .hentry:nth-child(even) .entry-media,
  516. .posts .hentry:nth-child(odd) .entry-media {
  517. float: none;
  518. }
  519. .posts .hentry:nth-child(even).has-post-thumbnail .entry-inner:after,
  520. .posts .hentry:nth-child(even).has-post-thumbnail .entry-inner:before,
  521. .posts .hentry:nth-child(odd).has-post-thumbnail .entry-inner:after,
  522. .posts .hentry:nth-child(odd).has-post-thumbnail .entry-inner:before {
  523. left: auto;
  524. right: 50%;
  525. }
  526. .posts .hentry .entry-media,
  527. .posts .hentry .entry-inner,
  528. .entry-inner-content {
  529. float: none;
  530. }
  531. .posts .entry-media .post-thumbnail {
  532. left: auto;
  533. right: 0;
  534. }
  535. /* Single Posts */
  536. .is-singular .entry-inner:after,
  537. .error404 .entry-inner:after {
  538. margin: -15px -15px 0 0;
  539. }
  540. .is-singular .entry-inner:before,
  541. .error404 .entry-inner:before {
  542. margin: -15px -15px 0 0;
  543. }
  544. /* Comments */
  545. ol.comment-list ol.children {
  546. padding-left: 0;
  547. padding-right: 40px;
  548. }
  549. ol.comment-list ol.children ol {
  550. padding-right: 0;
  551. }
  552. /* Widgets */
  553. .widget-area .widget,
  554. .widget-area.widgets-two .widget,
  555. .widget-area.widgets-three .widget,
  556. .is-singular:not(.home) .widget-area .widget,
  557. .has-post-thumbnail.is-singular:not(.home) .widget-area .widget,
  558. .has-post-thumbnail.is-singular:not(.home) .widget-area.widgets-three .widget,
  559. .has-post-thumbnail.is-singular.single-format-image .widget-area .widget,
  560. .has-post-thumbnail.is-singular.single-format-image .widget-area .widget,
  561. .is-singular.single-format-image .widget-area .widget,
  562. .is-singular.single-format-image .widget-area .widget {
  563. float: none;
  564. }
  565. }
  566. @media only screen and (max-width: 400px) {
  567. /* Menu Toggle */
  568. .menu-toggle {
  569. left: auto;
  570. }
  571. /* Posts */
  572. .posts-navigation div:nth-of-type(2) {
  573. margin-top: 10px;
  574. }
  575. .posts-navigation .nav-next,
  576. .posts-navigation .nav-previous {
  577. float: none;
  578. }
  579. .comment-body,
  580. ol.comment-list ol.children .comment-body {
  581. margin-right: 0;
  582. }
  583. }
  584. /*--------------------------------------------------------------
  585. # WP.com specific styles
  586. --------------------------------------------------------------*/
  587. /**
  588. * Widgets
  589. */
  590. /* Author Widget */
  591. .widget-area .widget_author_grid ul li {
  592. float: right !important;
  593. }
  594. .widget_authors img.avatar {
  595. margin-left: 10px;
  596. margin-right: 0;
  597. }
  598. .widget_authors ul ul {
  599. clear: right;
  600. }
  601. .widget_authors ul li li {
  602. padding-right: 0;
  603. }
  604. /* Calendar */
  605. .widget_calendar tr td#next {
  606. text-align: left;
  607. }
  608. .widget_calendar tr td#prev {
  609. text-align: right;
  610. }
  611. /* Flickr Widget */
  612. .widget_flickr table,
  613. .widget_flickr td {
  614. text-align: right;
  615. }