2015-04-14 21:19:11 -05:00
|
|
|
// Right to left styles.
|
|
|
|
// *** These styles are all going to be flipped by the r2 gem ***
|
2015-07-16 20:03:48 -05:00
|
|
|
// Adding the !important declaration to a rule prevents it from being flipped.
|
2014-07-10 11:36:19 -05:00
|
|
|
|
2017-11-23 10:14:51 -06:00
|
|
|
// This is used to flip the .d-icon-caret-right
|
2018-06-08 04:49:31 -05:00
|
|
|
@mixin rotate($degrees) {
|
2015-04-14 21:19:11 -05:00
|
|
|
transform: rotate(#{$degrees}deg);
|
|
|
|
}
|
2014-07-10 11:36:19 -05:00
|
|
|
|
2015-04-14 21:19:11 -05:00
|
|
|
// Get the right caret to point left
|
2017-11-23 10:14:51 -06:00
|
|
|
.rtl .d-icon-caret-right {
|
2015-04-14 21:19:11 -05:00
|
|
|
@include rotate(180);
|
|
|
|
}
|
2014-07-10 11:36:19 -05:00
|
|
|
|
2015-04-14 21:19:11 -05:00
|
|
|
// Changes the triangle arrow direction in .nav-stacked .active
|
|
|
|
// The 'left' and 'right' in these selectors is not being flipped by r2.
|
2017-08-30 10:01:01 -05:00
|
|
|
.rtl .nav-stacked a.active::after {
|
2015-04-14 21:19:11 -05:00
|
|
|
border-left-color: transparent !important;
|
2020-08-03 21:57:10 -05:00
|
|
|
border-right-color: var(--secondary) !important;
|
2014-07-10 11:36:19 -05:00
|
|
|
}
|
2015-05-11 02:52:30 -05:00
|
|
|
.rtl code {
|
2018-06-08 04:49:31 -05:00
|
|
|
direction: ltr !important;
|
|
|
|
text-align: left !important;
|
2015-05-09 08:56:00 -05:00
|
|
|
}
|
2015-05-11 02:52:30 -05:00
|
|
|
.rtl .pull-left {
|
2015-07-16 20:03:48 -05:00
|
|
|
float: right !important;
|
2015-05-09 08:56:00 -05:00
|
|
|
}
|
2021-08-10 15:31:04 -05:00
|
|
|
.rtl .pull-right {
|
|
|
|
float: left !important;
|
|
|
|
}
|
2017-08-30 10:01:01 -05:00
|
|
|
.rtl .autocomplete {
|
|
|
|
left: 27px;
|
2015-07-15 05:48:20 -05:00
|
|
|
}
|
|
|
|
|
2017-10-30 13:13:49 -05:00
|
|
|
.rtl .admin-customize .current-style .toggle-mobile {
|
2018-06-08 04:49:31 -05:00
|
|
|
position: static !important;
|
|
|
|
float: left !important;
|
2015-07-15 05:48:20 -05:00
|
|
|
}
|
2017-10-30 13:13:49 -05:00
|
|
|
.rtl .admin-customize .current-style .toggle-maximize {
|
2018-06-08 04:49:31 -05:00
|
|
|
position: static !important;
|
|
|
|
float: left !important;
|
2015-07-15 05:48:20 -05:00
|
|
|
}
|
|
|
|
.rtl .dashboard-left {
|
|
|
|
float: right !important;
|
|
|
|
}
|
|
|
|
.rtl .dashboard-right {
|
|
|
|
float: left !important;
|
2015-05-15 05:03:00 -05:00
|
|
|
}
|
2018-07-19 04:32:36 -05:00
|
|
|
|
2021-11-26 11:32:45 -06:00
|
|
|
// For the support_mixed_text_direction setting
|
|
|
|
html:not(.rtl) .cooked ul[dir="rtl"],
|
|
|
|
html:not(.rtl) .d-editor-preview ul[dir="rtl"],
|
2021-03-03 10:09:48 -06:00
|
|
|
.rtl .cooked ul[dir="ltr"],
|
|
|
|
.rtl .d-editor-preview ul[dir="ltr"] {
|
|
|
|
padding-left: 0;
|
2021-11-26 11:32:45 -06:00
|
|
|
padding-right: 1.25em;
|
|
|
|
margin-right: 1.25em;
|
2018-07-19 04:32:36 -05:00
|
|
|
}
|
2019-10-28 13:09:42 -05:00
|
|
|
|
|
|
|
// Fixes github oneboxes for RTL sites
|
|
|
|
.rtl aside.onebox.githubblob {
|
|
|
|
padding: 12px 25px 12px 12px !important;
|
|
|
|
direction: ltr !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rtl aside.onebox.githubblob .source {
|
|
|
|
background-position: 0 50% !important;
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rtl pre.onebox code ol.lines {
|
|
|
|
margin: 0 0 0 40px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rtl pre.onebox code ol.lines li:before {
|
|
|
|
right: -40px;
|
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 0;
|
|
|
|
text-align: right !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rtl pre.onebox code ol.lines li {
|
|
|
|
padding-right: 5px;
|
|
|
|
padding-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
border-right: 1px solid #cfcfcf;
|
|
|
|
border-left: none !important;
|
|
|
|
}
|
2020-02-11 14:23:12 -06:00
|
|
|
|
|
|
|
.rtl {
|
|
|
|
$mobile-breakpoint: 700px;
|
|
|
|
|
|
|
|
.admin-detail.mobile-open {
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
transition: transform 0.3s ease;
|
|
|
|
@include transform(translateX(-250px));
|
|
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
|
|
transition: transform 0.3s ease;
|
|
|
|
@include transform(translateX(-50%));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.admin-detail.mobile-closed {
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
transition: transform 0.3s ease;
|
|
|
|
@include transform(translateX(0));
|
|
|
|
margin-left: -10px !important;
|
|
|
|
padding-left: 10px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.admin-nav {
|
|
|
|
.nav-stacked {
|
|
|
|
margin: 0 -10px 0 10px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-22 09:03:43 -06:00
|
|
|
|
|
|
|
.rtl .ace_placeholder {
|
|
|
|
direction: rtl !important;
|
|
|
|
text-align: right !important;
|
|
|
|
|
|
|
|
[dir="ltr"] {
|
|
|
|
text-align: left !important;
|
|
|
|
}
|
|
|
|
}
|