This repository has been archived by the owner on Oct 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
rtl.css
executable file
·237 lines (208 loc) · 4.83 KB
/
rtl.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
/*
Theme Name: Twenty Twelve
Description: Adds support for languages written in a Right To Left (RTL) direction.
It's easy, just a matter of overwriting all the horizontal positioning attributes
of your CSS stylesheet in a separate stylesheet file named rtl.css.
See http://codex.wordpress.org/Right_to_Left_Language_Support
*/
body {
direction: rtl;
unicode-bidi: embed;
}
caption,
th,
td {
text-align: right;
}
/* =Repeatable patterns
-------------------------------------------------------------- */
/* Images */
.site-content .gallery-columns-4 .gallery-item {
padding-left: 2%;
padding-right: 0;
}
.site-content .gallery-columns-5 .gallery-item {
padding-left: 2%;
padding-right: 0;
}
/* Navigation */
.nav-previous,
.previous-image {
float: right;
}
.nav-next,
.next-image {
float: left;
text-align: left;
}
/* Author profiles */
.author-avatar {
float: right;
}
.author-description {
float: right;
margin-right: 15px;
margin-right: 1.071428571rem;
margin-left: auto;
}
/* =Main Content
----------------------------------------------- */
.comment-content ol,
.comment-content ul {
margin: 0 24px 0 0;
margin: 0 1.714285714rem 0 0;
}
/* =Basic post styling
-------------------------------------------------------------- */
.entry-content li,
.comment-content li {
margin: 0 24px 0 0;
margin: 0 1.714285714rem 0 0;
}
.entry-content td,
.comment-content td {
padding: 6px 0 6px 10px;
}
/* Aside posts */
article.format-aside .aside {
border-right: 22px solid #a8bfe8;
border-left: none;
}
/* Link posts */
article.format-link header {
float: left;
}
article.format-link .entry-content {
float: right;
}
/* Status posts */
.format-status .entry-header img {
float: right;
margin-left: 21px;
margin-left: 1.5rem;
margin-right: 0;
}
/* =Comment styling
-------------------------------------------------------------- */
.comments-area article header img {
float: right;
}
.comments-area article header cite,
.comments-area article header time {
margin-right: 85px;
margin-right: 6.071428571rem;
margin-left: auto;
}
.comments-area article header h4 {
left: 0;
right: auto;
}
.comments-area li.bypostauthor cite span {
margin-right: 5px;
margin-right: 0.357142857rem;
margin-left: auto;
}
/* Comment form */
#respond h3#reply-title #cancel-comment-reply-link {
margin-right: 10px;
margin-right: 0.714285714rem;
margin-left: auto;
}
label ~ span.required {
float: right;
margin: -18px -16px 0 0;
margin: -1.285714286rem -1.142857143rem 0 0;
}
/* =Front page template styling
-------------------------------------------------------------- */
.template-front-page .widget-area .widget_text img {
float: right;
margin: 8px 0 8px 24px;
margin: 0.571428571rem 0 0.571428571rem 1.714285714rem;
}
/* =Widget styling
-------------------------------------------------------------- */
.widget-area .widget ul ul {
margin-right: 12px;
margin-right: 0.857142857rem;
margin-left: auto;
}
.widget-area .textwidget li {
margin-left: auto;
margin-right: 36px;
margin-right: 2.571428571rem;
}
.widget_recent_entries .post-date,
.widget_rss .rss-date {
margin-right: 12px;
margin-right: 0.857142857rem;
margin-left: auto;
}
#wp-calendar th,
#wp-calendar td,
#wp-calendar caption {
text-align: right;
}
#wp-calendar #next {
padding-left: 24px;
padding-left: 1.714285714rem;
text-align: left;
padding-right: 0;
}
/* =Media queries
-------------------------------------------------------------- */
/* Minimum width of 600 pixels. */
@media screen and (min-width: 600px) {
.site-content,
.template-front-page.has-post-thumbnail article {
float: right;
}
.widget-area,
.entry-page-image {
float: left;
}
.site-header h1,
.site-header h2 {
text-align: right;
}
.template-front-page .widget-area .widget_text img {
float: right;
margin: 8px 0 8px 24px;
}
.template-front-page .widget-area .widget,
.template-front-page.two-sidebars .widget-area .front-widgets {
float: right;
}
.template-front-page .widget-area .widget:nth-child(odd) {
clear: left;
}
.template-front-page .widget-area .widget:nth-child(even),
.template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets {
float: left;
margin: 0 24px 0;
margin: 0 1.714285714rem 0;
}
.main-navigation ul.nav-menu,
.main-navigation div.nav-menu > ul {
text-align: right;
}
.main-navigation li {
margin-left: 40px;
margin-left: 2.857142857rem;
margin-right: auto;
}
.main-navigation li ul ul {
margin-right: 0;
right: 100%;
left: auto;
}
.main-navigation ul li:hover > ul {
border-right: 0;
border-left: none;
}
.commentlist .children {
margin-right: 48px;
margin-right: 3.428571429rem;
margin-left: auto;
}
}