/* Theme Name: Nisarg Adding support for language written in a Right To Left (RTL) direction is easy - it's just a matter of overwriting all the horizontal positioning attributes of your CSS stylesheet in a separate stylesheet file named rtl.css. http://codex.wordpress.org/Right_to_Left_Language_Support */ body { direction: rtl; unicode-bidi: embed; } /** * 1.0 Reset * ----------------------------------------------------------------------------- */ blockquote { border-right: 5px solid #455A64; border-left: none; margin-right: 0.5em; } th, td { text-align: right; } /** * 2.0 Repeatable Patterns * ---------------------------------------------------------------------------- */ /* Text meant only for screen readers. */ .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; } .screen-reader-text:hover, .screen-reader-text:active, .screen-reader-text:focus { right: 5px; padding: 15px 23px 14px; } .alignnone { margin: 5px 0px 20px 20px; } .aligncenter, div.aligncenter { margin: 5px auto 5px auto; } .alignright { float:left; margin: 5px 20px 20px 0px; } .alignleft { float: right; margin: 5px 0px 20px 20px; } a img.alignright { float: left; margin: 5px 20px 20px 0px; } a img.alignnone { margin: 5px 0px 20px 20px; } a img.alignleft { float: right; margin: 5px 0px 20px 20px; } .wp-caption { background: #fff; max-width: 96%; /* Image does not overflow the content area */ padding: 5px 3px 10px; text-align: center; } .wp-caption.aligncenter, .wp-caption.alignnone{ margin: 5px auto 20px; } .wp-caption.alignleft{ margin: 5px 0px 20px 20px; } .wp-caption.alignright{ margin: 5px 20px 20px 0px; } /** * 3.0 Header * ---------------------------------------------------------------------------- */ /** * 3.1 Site Navigation Bar * ---------------------------------------------------------------------------- */ .navbar-nav{ float: left; } .sub-menu { text-align: right; } .dropdown-toggle { position: absolute; left: 0; right: auto; top: 0; } @media screen and (min-width: 768px) { .main-navigation ul ul li:hover > ul, .main-navigation ul ul li.focus > ul { right: 100%; display: block; left: auto; } .sub-menu { text-align: right; } .main-navigation ul { padding-right: 0; } .main-navigation ul ul { float: right; margin-left: 0.875em; } .main-navigation .menu-item-has-children > a:after { content: '\f0d7'; font-family: FontAwesome; position: absolute; left: 1.125em; top: 0.8125em; } .main-navigation ul ul .menu-item-has-children > a { padding-left: 15px; } .main-navigation ul ul .menu-item-has-children > a:after { right: 10.563em; top: 1.0em; -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); transform: rotate(90deg); } } .search-submit { border-radius: 2px 0 0 2px; left: 0; right: auto; } /** * 4.0 Main Content * ---------------------------------------------------------------------------- */ /* 4.1 Post-Content * ---------------------------------------------------------------------------- */ .sticky-post{ right: 15; padding: 5px 15px; } /* * 4.4 Gallery * ----------------------------------------- */ .widget th, td { text-align: right; } /* * 7.0 Media Queries * -------------------------------------------------------------------- */ @media (max-width: 900px){ blockquote{ margin-right: 0.3em; } .comment-list ol{ padding-right: 10px; } th, td { text-align: right; } } /** * 8.0 Print * ---------------------------------------------------------------------------- */ @media print { .entry-content img.alignleft, .entry-content .wp-caption.alignleft { margin-right: 0; } .entry-content img.alignright, .entry-content .wp-caption.alignright { margin-left: 0; } }