123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- /*
- Theme Name: Lodestar
- 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.
- https://codex.wordpress.org/Right_to_Left_Languagecomponentsupport
- */
- /* Reset */
- body {
- direction: rtl;
- unicode-bidi: embed;
- }
- th {
- text-align: right;
- }
- /* Accessibility */
- .screen-reader-text:focus {
- left: auto;
- right: 5px;
- }
- /* Typography */
- blockquote {
- border-left: 0;
- border-right: 4px solid #ddd;
- padding-left: 0;
- padding-right: 1.5em;
- }
- textarea {
- padding-right: 3px;
- }
- ul,
- ol {
- margin-left: 0;
- margin-right: 3em;
- }
- li > ul,
- li > ol {
- margin-left: 0;
- margin-right: 1.5em;
- }
- .menu-toggle::after,
- .menu-item-has-children > a::before,
- .page_item_has_children > a::before {
- font-family: Genericons;
- font-size: 1em;
- font-style: normal;
- font-weight: normal;
- line-height: 1;
- text-decoration: none;
- vertical-align: text-bottom;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- text-rendering: auto;
- }
- /* Media */
- .mejs-offscreen {
- right: -10000px;
- }
- /* Main Navigation */
- .main-navigation ul {
- text-align: right;
- }
- .main-navigation ul ul {
- padding-left: 0;
- padding-right: 1.5em;
- }
- .menu-toggle::after {
- content: "\f419";
- margin-right: 0.5em;
- position: relative;
- top: -2px;
- }
- .menu-toggle::before {
- display: none;
- }
- /* Front Page */
- .lodestar-panel .jetpack-testimonial .edit-link,
- .panel-content .wrap .recent-posts .post h2,
- .lodestar-panel .recent-posts .edit-link {
- text-align: right;
- }
- /* Blog Entries */
- .entry-footer .cat-links,
- .entry-footer .tags-links,
- .entry-footer .comments-link,
- .entry-footer .edit-link {
- margin-left: 2em;
- margin-right: 0;
- }
- .entry-footer span:last-child {
- margin-left: 0;
- }
- .entry-author .author-avatar {
- float: right;
- margin-left: 1em;
- margin-right: 0;
- }
- .entry-author .author-heading,
- .entry-author .author-bio {
- float: left;
- }
- #infinite-handle span {
- border: 0;
- }
- #infinite-handle span::before {
- display: none;
- }
- /* Jetpack Testimonial */
- .jetpack-testimonial .post-thumbnail {
- float: right;
- margin-left: 1em;
- margin-right: 0;
- }
- .testimonial-about {
- margin-left: 0;
- margin-right: 30px;
- }
- .testimonial-about .entry-header {
- float: right;
- }
- /* Comments */
- .comment-body {
- padding-left: 0;
- padding-right: 100px;
- }
- .children {
- padding-left: 0;
- padding-right: 40px;
- }
- .comment-author .avatar-container {
- float: right;
- left: auto;
- right: -100px;
- }
- .children .comment-author .avatar-container {
- left: auto;
- right: -80px;
- }
- .bypostauthor::before {
- left: auto;
- right: 0;
- }
- .children .bypostauthor::before {
- left: auto;
- right: 20px;
- }
- /* Widgets */
- .widget ul {
- margin: 0;
- }
- .search-form .search-submit {
- left: 0;
- right: auto;
- }
- .widget .tagcloud a,
- .widget.widget_tag_cloud a,
- .wp_widget_tag_cloud a {
- float: right;
- margin: 4px 0 0 4px !important; /* !important to override inline styles */
- }
- .widget ul li li {
- padding: 6px 1.5rem 6px 0;
- }
- /* Customizer styles */
- .lodestar-customizer.lodestar-front-page .lodestar-panel .lodestar-panel-title {
- left: 3.2em;
- right: auto;
- }
- /* Media queries */
- @media screen and (min-width: 30em) {
- .site-top-content span.site-top-content-2 {
- margin-left: 0;
- }
- .site-top-content span.site-top-content-1 {
- margin-right: 1.5em;
- }
- }
- @media screen and (min-width: 60em) {
- .has-sidebar #primary {
- float: right;
- }
- .has-sidebar #secondary {
- float: left;
- }
- .error404 #primary {
- float: none;
- }
- .main-navigation ul.nav-menu {
- text-align: right;
- }
- .main-navigation ul ul {
- padding-right: 0;
- }
- .main-navigation ul ul,
- .main-navigation ul ul ul {
- left: auto;
- right: -999em;
- }
- .main-navigation ul ul li:hover > ul,
- .main-navigation ul ul li.focus > ul {
- left: auto;
- right: 100%;
- }
- .main-navigation ul li:hover > ul,
- .main-navigation ul li.focus > ul {
- right: auto;
- }
- .main-navigation .menu-item-has-children > a::after,
- .main-navigation .page_item_has_children > a::after {
- display: none;
- }
- .main-navigation .menu-item-has-children > a::before,
- .main-navigation .page_item_has_children > a::before {
- content: "\f431";
- display: inline;
- position: relative;
- right: 2px;
- top: -2px;
- }
- .main-navigation ul ul .menu-item-has-children > a::before,
- .main-navigation ul ul .page_item_has_children > a::before {
- margin-top: -10px;
- left: 1.0em;
- position: absolute;
- right: auto;
- top: 50%;
- -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
- -ms-transform: rotate(90deg); /* IE 9 */
- transform: rotate(90deg);
- }
- .has-top-content .site-top-content,
- .has-top-content .main-navigation + .site-top-content {
- text-align: left;
- }
- .comment-navigation .nav-previous,
- .posts-navigation .nav-previous,
- .post-navigation .nav-previous {
- float: right;
- }
- .comment-navigation .nav-next,
- .posts-navigation .nav-next,
- .post-navigation .nav-next {
- float: left;
- text-align: left;
- }
- .comment-list .children {
- margin-left: 0;
- margin-right: 30px;
- }
- .comment-author {
- float: right;
- }
- .comment-metadata {
- float: left;
- }
- /* Portfolio */
- body.post-type-archive-jetpack-portfolio #primary,
- body.tax-jetpack-portfolio-type #primary,
- body.tax-jetpack-portfolio-tag #primary,
- body.page-template-portfolio-page #primary {
- float: none;
- }
- .post-type-archive-jetpack-portfolio .entry-header,
- .tax-jetpack-portfolio-type .entry-header,
- .tax-jetpack-portfolio-tag .entry-header,
- .page-template-portfolio-page .entry-header,
- .portfolio-content,
- .page-template-portfolio-page .entry-content,
- .project-terms,
- .portfolio-projects .project-archive-content .entry-header,
- .portfolio-projects .project-archive-content .entry-meta,
- .portfolio-projects .project-archive-content .entry-footer {
- text-align: center;
- }
- .portfolio-projects article {
- float: right;
- }
- /* Footer */
- .site-footer .widget-column {
- float: right;
- margin-left: 5%;
- margin-right: 0;
- }
- .site-footer .widget-column:last-child {
- margin-left: 0;
- }
- }
|