2015-04-14 22:19:11 -04:00
|
|
|
// Right to left styles.
|
|
|
|
// *** These styles are all going to be flipped by the r2 gem ***
|
2015-07-16 21:03:48 -04:00
|
|
|
// Adding the !important declaration to a rule prevents it from being flipped.
|
2014-07-10 12:36:19 -04:00
|
|
|
|
2017-11-23 11:14:51 -05:00
|
|
|
// This is used to flip the .d-icon-caret-right
|
2018-06-08 05:49:31 -04:00
|
|
|
@mixin rotate($degrees) {
|
2015-04-14 22:19:11 -04:00
|
|
|
-webkit-transform: rotate(#{$degrees}deg);
|
|
|
|
-moz-transform: rotate(#{$degrees}deg);
|
|
|
|
-ms-transform: rotate(#{$degrees}deg);
|
|
|
|
-o-transform: rotate(#{$degrees}deg);
|
|
|
|
transform: rotate(#{$degrees}deg);
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=#{cos($degrees)}, M12=-#{sin($degrees)}, M21=#{sin($degrees)}, M22=#{cos($degrees)})";
|
2015-04-14 22:19:11 -04:00
|
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=#{cos($degrees)}, M12=-#{sin($degrees)}, M21=#{sin($degrees)}, M22=#{cos($degrees)})";
|
|
|
|
zoom: 1;
|
|
|
|
}
|
2014-07-10 12:36:19 -04:00
|
|
|
|
2015-04-14 22:19:11 -04:00
|
|
|
// Get the right caret to point left
|
2017-11-23 11:14:51 -05:00
|
|
|
.rtl .d-icon-caret-right {
|
2015-04-14 22:19:11 -04:00
|
|
|
@include rotate(180);
|
|
|
|
}
|
2014-07-10 12:36:19 -04:00
|
|
|
|
2015-04-14 22:19:11 -04: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 11:01:01 -04:00
|
|
|
.rtl .nav-stacked a.active::after {
|
2015-04-14 22:19:11 -04:00
|
|
|
border-left-color: transparent !important;
|
|
|
|
border-right-color: $secondary !important;
|
2014-07-10 12:36:19 -04:00
|
|
|
}
|
2015-05-11 03:52:30 -04:00
|
|
|
.rtl code {
|
2018-06-08 05:49:31 -04:00
|
|
|
direction: ltr !important;
|
|
|
|
text-align: left !important;
|
2015-05-09 09:56:00 -04:00
|
|
|
}
|
2015-05-11 03:52:30 -04:00
|
|
|
.rtl .pull-left {
|
2015-07-16 21:03:48 -04:00
|
|
|
float: right !important;
|
2015-05-09 09:56:00 -04:00
|
|
|
}
|
2017-08-30 11:01:01 -04:00
|
|
|
.rtl .autocomplete {
|
|
|
|
left: 27px;
|
2015-07-15 06:48:20 -04:00
|
|
|
}
|
|
|
|
|
2017-10-30 14:13:49 -04:00
|
|
|
.rtl .admin-customize .current-style .toggle-mobile {
|
2018-06-08 05:49:31 -04:00
|
|
|
position: static !important;
|
|
|
|
float: left !important;
|
2015-07-15 06:48:20 -04:00
|
|
|
}
|
2017-10-30 14:13:49 -04:00
|
|
|
.rtl .admin-customize .current-style .toggle-maximize {
|
2018-06-08 05:49:31 -04:00
|
|
|
position: static !important;
|
|
|
|
float: left !important;
|
2015-07-15 06:48:20 -04:00
|
|
|
}
|
|
|
|
.rtl .dashboard-left {
|
|
|
|
float: right !important;
|
|
|
|
}
|
|
|
|
.rtl .dashboard-right {
|
|
|
|
float: left !important;
|
2015-05-15 06:03:00 -04:00
|
|
|
}
|
2018-07-19 05:32:36 -04:00
|
|
|
|
|
|
|
// This is for the support_mixed_text_direction setting
|
2018-07-19 05:55:40 -04:00
|
|
|
.cooked ul[dir="ltr"],
|
|
|
|
.d-editor-preview ul[dir="ltr"],
|
|
|
|
.cooked ul[dir="rtl"],
|
|
|
|
.d-editor-preview ul[dir="rtl"] {
|
2018-07-19 05:32:36 -04:00
|
|
|
padding-right: 40px;
|
|
|
|
padding-left: 40px;
|
|
|
|
}
|