Commit a060799 1 parent 8d3862f commit a060799 Copy full SHA for a060799
File tree 7 files changed +104
-78
lines changed
7 files changed +104
-78
lines changed Original file line number Diff line number Diff line change 73
73
font-weight : 600 ;
74
74
text-align : left ;
75
75
76
- body .rtl & {
77
- text-align : right ;
78
- }
79
-
80
76
.dashicon {
81
77
position : absolute ;
82
78
right : $item-spacing ;
83
79
top : 50% ;
84
80
transform : translateY ( -50% );
85
-
86
- body .rtl & {
87
- right : auto ;
88
- left : $item-spacing ;
89
- }
90
81
}
91
82
92
83
// mirror the arrow horizontally in RTL languages
84
+ /* rtl:begin:ignore */
93
85
body .rtl & .dashicons-arrow-right {
94
86
transform : scaleX (-1 );
95
87
-ms-filter : fliph;
96
88
filter : FlipH;
97
89
margin-top : -10px ;
98
90
}
91
+ /* rtl:end:ignore */
99
92
}
100
93
101
94
.components-panel__body-toggle-icon {
Original file line number Diff line number Diff line change @@ -30,12 +30,6 @@ body.gutenberg-editor-page {
30
30
ul #adminmenu >li .current >a .current :after {
31
31
border-right-color : $white ;
32
32
}
33
-
34
- & .rtl ul #adminmenu a .wp-has-current-submenu :after ,
35
- & .rtl ul #adminmenu >li .current >a .current :after {
36
- border-right-color : transparent ;
37
- border-left-color : $white ;
38
- }
39
33
}
40
34
41
35
.gutenberg {
Original file line number Diff line number Diff line change 20
20
21
21
@include break-large () {
22
22
left : $admin-sidebar-width ;
23
-
24
- body .rtl & {
25
- left : 0 ;
26
- right : $admin-sidebar-width ;
27
- }
28
23
}
29
24
}
30
25
34
29
}
35
30
}
36
31
37
- body .rtl.sticky-menu .editor-header {
38
- @include break-medium () {
39
- left : 0 ;
40
- right : $admin-sidebar-width ;
41
- }
42
- }
43
-
44
32
.auto-fold .editor-header { /* Auto fold is when on smaller breakpoints, nav menu auto colllapses */
45
33
@include break-medium () {
46
34
left : $admin-sidebar-width-collapsed ;
47
-
48
- body .rtl & {
49
- left : 0 ;
50
- right : $admin-sidebar-width-collapsed ;
51
- }
52
35
}
53
36
54
37
@include break-large () {
55
38
left : $admin-sidebar-width ;
56
-
57
- body .rtl & {
58
- left : 0 ;
59
- right : $admin-sidebar-width ;
60
- }
61
39
}
62
40
}
63
41
64
42
/* Sidebar manually collapsed */
65
43
.folded .editor-header {
66
44
left : 0 ;
67
45
68
- body .rtl & {
69
- right : 0 ;
70
- }
71
-
72
46
@include break-medium () {
73
47
left : $admin-sidebar-width-collapsed ;
74
-
75
- body .rtl & {
76
- left : 0 ;
77
- right : $admin-sidebar-width-collapsed ;
78
- }
79
48
}
80
49
}
81
50
82
51
/* Mobile menu opened */
83
52
.auto-fold .wp-responsive-open .editor-header {
84
53
left : $admin-sidebar-width-big ;
85
54
right : - $admin-sidebar-width-big ;
86
-
87
- body .rtl & {
88
- left : - $admin-sidebar-width-big ;
89
- right : $admin-sidebar-width-big ;
90
- }
91
55
}
92
56
93
57
.editor-header__settings {
Original file line number Diff line number Diff line change 11
11
height : 100vh ;
12
12
overflow : hidden ;
13
13
14
- body .rtl & {
15
- right : auto ;
16
- left : 0 ;
17
- border-left : none ;
18
- border-right : 1px solid $light-gray-500 ;
19
- }
20
-
21
14
@include break-small () {
22
15
top : $admin-bar-height-big + $header-height ;
23
16
z-index : auto ;
93
86
.editor-layout.is-sidebar-opened .editor-layout__content {
94
87
@include break-medium () {
95
88
margin-right : $sidebar-width ;
96
-
97
- body .rtl & {
98
- margin-right : 0 ;
99
- margin-left : $sidebar-width ;
100
- }
101
89
}
102
90
}
103
91
114
102
/* Text Editor specific */
115
103
.editor-layout.is-sidebar-opened .editor-text-editor__formatting {
116
104
margin-right : $sidebar-width ;
117
-
118
- body .rtl & {
119
- margin-right : 0 ;
120
- margin-left : $sidebar-width ;
121
- }
122
105
}
123
106
124
107
.components-panel__header.editor-sidebar__panel-tabs {
127
110
padding-left : 0 ;
128
111
padding-right : $panel-padding / 2 ;
129
112
130
- body .rtl & {
131
- padding-right : 0 ;
132
- padding-left : $panel-padding / 2 ;
133
- }
134
-
135
113
.components-icon-button {
136
114
margin-left : auto ;
137
-
138
- body .rtl & {
139
- margin-left : 0 ;
140
- margin-right : auto ;
141
- }
142
115
}
143
116
}
144
117
Original file line number Diff line number Diff line change 83
83
"pegjs-loader" : " 0.5.4" ,
84
84
"phpegjs" : " 1.0.0-beta7" ,
85
85
"postcss-loader" : " 2.0.6" ,
86
+ "postcss-rtl" : " 1.1.3" ,
86
87
"prismjs" : " 1.6.0" ,
87
88
"raw-loader" : " 0.5.1" ,
88
89
"react-markdown" : " 2.5.0" ,
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ const extractConfig = {
28
28
options : {
29
29
plugins : [
30
30
require ( 'autoprefixer' ) ,
31
+ require ( 'postcss-rtl' ) ( ) ,
31
32
] ,
32
33
} ,
33
34
} ,
You can’t perform that action at this time.
0 commit comments