forked from TamerShlash/Sampression-Lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrtl.css
375 lines (331 loc) · 10.4 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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
/*
Theme Name: Sampression Lite
Description: Adds support for languages written in a Right To Left (RTL) direction.
See http://codex.wordpress.org/Right_to_Left_Language_Support
*/
article.post .post-title {
padding: 1.0rem 2.0rem 1.0rem 3.5rem;
}
.count-comment {
left:10px;
right:auto;
}
/* #Basic WordPress Classes
================================================== */
/* Aligns, prev next links */
.alignnone{float:right; padding-right:0; padding-left:10px; padding-left:1.0rem; padding-top:5px; padding-top:0.5rem; padding-bottom:5px; padding-bottom:0.5rem;}
.alignleft {float:right;}
.alignright {float:left;}
/* images */
img.alignright { padding: 4px; margin: 5px 20px 5px 5px; padding: 0.4rem; margin: 0.5rem 2.0rem 0.5rem 0.5rem; display: inline;}
img.alignleft { padding: 4px; padding:0.4rem; margin: 5px 5px 5px 20px; margin:0.5rem 0.5rem 0.5rem 2.0rem; display: inline; }
.alignleft { float:right; }
.alignright { float:left; }
/* Captions */
.wp-caption p.wp-caption-text { font-size: 12px; font-size: 1.2rem; line-height: 16px; line-height: 1.6rem; padding: 4px 0 5px 4px; padding: 0.4rem 0 0.5rem 0.4rem; margin: 0; color:#666; }
.wp-caption.alignleft { margin:0 0 5px 20px; margin:0 0 0.5rem 2.0rem; }
.wp-caption.alignright { margin:0 20px 5px 0; margin:0 2.0rem 0.5rem 0; }
/* Various Tags & Classes */
blockquote { margin: 15px 10px 15px 30px; margin: 1.5rem 1.0rem 1.5rem 3.0rem; padding-left:0; padding-right: 20px; padding-right: 2.0rem; border-left:0; border-right: 5px solid #ddd; border-right:0.5rem solid #ddd;}
blockquote cite { margin: 5px inherit 0 0; margin: 0.5rem inherit 0 0; display: block;}
.screen-reader-text { position: absolute; left:auto; right: -1000em; right: -1000rem;}
/* ============================== END OF #Basic WordPress Classes ============================== */
/* Header */
.sm-top li {
float:right;
margin-right:0;
margin-left:3px; margin-left:0.3rem;
}
.sm-top li:last-child {
margin-left:0;
}
/* Search Form */
#searchform {
float:right;
margin:0 0 0 0.5rem;
}
/* Comments */
.avatar-wrapper {
float:right;
padding-left:20px; padding-left:2.0rem;
padding-right:0;
}
/* Footer */
#btn-top-wrapper {
right:auto;
left:0;
}
/* 404 Page */
#page-not-found-message {
background:url(images/sampression-404.png) no-repeat right center;
padding:0 0 0 190px; padding:0 19.0rem 0 0;
}
body.single article.post .meta .col {
margin-left:10px; margin-left:1.0rem;
margin-right:0;
}
body.single .count-comment {
right:auto;
left:5px; left:0.5rem;
}
.commentlist span.pointer {
right:auto;
left:0;
}
.commentlist .comment-author {
float:right;
}
.commentlist .reply {
float:left;
}
ol.commentlist ul.children {
margin-left:0;
margin-right:120px;margin-right:12.0rem;
}
ol.commentlist li {
margin-right: auto;
}
.count-comment .pointer {
left:auto;
right:5px; right:0.5rem;
}
.corner-stamp.columns.four {
float:left;
}
/* Flipping the direction of background images, not all are affected. */
#searchform input#searchsubmit, #primary-nav ul.nav-listing li a span, .ico, .btn-top, select, #comments-header a, .commentlist span.pointer, #btn-nav-opt {
background-image: url(images/sampression-css-sprite-rtl.png);
}
.quick-note a.btn-back {
background-image: url(images/sampression-css-sprite-rtl.png);
}
.count-comment .pointer {
background-image: url(images/sampression-css-sprite-rtl.png);
}
#comment-header h3 a {
background-image: url(images/sampression-css-sprite-rtl.png);
}
.button, button, input[type="submit"], input[type="reset"], input[type="button"] {
background-image: url('images/arrow-left.png');
}
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 5/2),
only screen and ( min-resolution: 144dpi) {
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
background-image: url('images/arrow2x-rtl.png');
}
}
/* ================================== */
/* Original RTL Styles in Sampression */
/* ================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
direction: rtl;
unicode-bidi: embed;
}
caption,
th,
td {
text-align: right;
}
blockquote {
margin: 15px 15px 15px 30px; margin: 1.5rem 1.5rem 1.5rem 3.0rem;
padding-left: 0;
padding-right: 20px; padding-right: 2.0rem;
border-left:0;
border-right: 5px solid #ddd; border-right:0.5rem solid #ddd;
}
li {
margin-right: 15px; margin-right: 1.5rem;
}
pre{
}
/* -------------------------------------------------------------- */
.container .column, .container .columns {
float: right;
}
img.logo-img {
display: inline;
float: right;
margin-right:0;
margin-left:10px; margin-left: 1rem;
}
.col {
float: right;
}
.ico {
float: right;
}
#btn-nav-opt {
right:10px; right: 1rem;
}
#top-nav{
float:left;
}
#top-nav ul li:last-child {
margin-left:0;
}
#interaction-sec{
float:left;
}
#searchform input, .sm-top a, #get-cats, select {
display:block;
float:right;
-moz-box-shadow:-2px 2px 3px #D2DFDC;
-webkit-box-shadow:-2px 2px 3px #D2DFDC;
box-shadow:-2px 2px 3px #D2DFDC; box-shadow:-0.2rem 0.2rem 0.3rem #D2DFDC;
}
#searchform input#s {
border-left:none;
border-right: 1px solid #D2DFDC; border-right: 0.1rem solid #D2DFDC;
padding-right:10px; padding-right:1.0rem;
-moz-border-radius-topleft:0;
-webkit-border-top-left-radius:0;
border-top-left-radius:0;
-moz-border-radius-bottomleft:0;
-webkit-border-bottom-left-radius:0;
border-bottom-left-radius:0;
-moz-border-radius-topright:5px;
-webkit-border-top-right-radius:5px;
border-top-right-radius:5px; border-top-right-radius:0.5rem;
-moz-border-radius-bottomright:5px;
-webkit-border-bottom-right-radius:5px;
border-bottom-right-radius:5px; border-bottom-right-radius:0.5rem;
}
#searchform input#s:hover{
border-right:1px solid #8AB7AD; border-right:0.1rem solid #8AB7AD;
}
#searchform input#searchsubmit {
background-position:-11px -7px; background-position:-1.1rem -0.7rem;
border-right:0;
text-indent:9999px; text-indent:9999rem;
border:1px solid #D2DFDC; border:0.1rem solid #D2DFDC;
padding: 0;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
border-top-left-radius:5px; border-top-right-radius:0.5rem;
-moz-border-radius-bottomleft:5px;
-webkit-border-bottom-left-radius:5px;
border-bottom-left-radius:5px; border-bottom-left-radius:0.5rem;
-moz-border-radius-topright:0;
-webkit-border-top-right-radius:0;
border-top-right-radius:0;
-moz-border-radius-bottomright:0;
-webkit-border-bottom-right-radius:0;
border-bottom-right-radius:0;
}
#top-nav ul ul:before , #top-nav ul ul ul:before {
text-indent: 9999px;
text-indent: 9999rem;
}
#primary-nav .nav-label {
right:10px; right: 1rem;
left:0;
margin-right:0;
width:75px; width:7.5rem;
}
#primary-nav ul.nav-listing {
margin:0 90px 0 0; margin: 0 9rem 0 0;
}
#primary-nav ul.nav-listing li {
float: right;
}
#primary-nav ul.nav-listing li a span {
float:right;
margin-right:0;
margin-left:5px; margin-left:0.5rem;
}
.single .meta time, .single .meta .cats,
.single .meta .edit, .single .meta .post-author, .single .meta .tags{
padding-left:10px; padding-left:1rem; margin-right:0; float:right;
}
.meta-nav{ display: block;}
.nav-previous .meta-nav {
float: right;
margin-left: 10px; margin-left: 1rem;
}
.nav-next .meta-nav {
float: left;
margin-right: 10px; margin-right: 1rem;
}
.widget a{
}
.widget > a {
}
.widget img{
float:right;
}
.widget .avatar {
float: right;
margin: 0 0 5px 5px; margin: 0 0 0.5rem 0.5rem;
}
.widget #searchform {
float: right;
display:inline;
}
/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 959px) {
.meta time{
margin-right:5px; margin-right:0.5rem;
}
}
/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) {
.single .meta .tags{
padding-right:35px; padding-right:3.5rem;
}
}
/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {
#top-nav-mobile .nav-label{
display:inline; float: right;
padding-left:6px; padding-left:0.6rem;
padding-right:0;
}
#primary-nav .nav-label {
margin-right:0;
float:right;
padding-left: 1px; padding-left: 0.1rem;
padding-right: 0;
}
.socialzero #searchform #s{ width:247px; width:24.7rem;}
.socialone #searchform #s{ width:212px; width:21.2rem;}
.socialtwo #searchform #s{ width:180px; width:18.0rem;}
.socialthree #searchform #s{ width:148px; width:14.8rem;}
.socialfour #searchform #s{ width:116px; width:11.6rem;}
}
/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) {
#page_id,.top-menu-nav, .menu-primary-menu-container select{ width:365px; width:36.5rem; background-position: 345px -181px; background-position: 2% -18.1rem;}
#get-cats{ background-position: 3% -181px; background-position: 3% -18.1rem;}
.socialzero #searchform #s{ width:359px; width:35.9rem;}
.socialone #searchform #s{ width:328px; width:32.8rem;}
.socialtwo #searchform #s{ width:296px; width:29.6rem;}
.socialthree #searchform #s{ width:264px; width:26.4rem;}
.socialfour #searchform #s{ width:232px; width:23.2rem;}
}
/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {
#top-nav-mobile select{ background-position: 3% -181px; background-position: 3% -18.1rem;}
#get-cats{ background-position: 3% -181px; background-position: 3% -18.1rem; }
}
/* Retina displays */
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 5/2),
only screen and ( min-resolution: 144dpi) {
#top-nav-mobile select{
background-position: 2% -95px; background-position: 2% -9.5rem;
}
#get-cats{
background-position: 2% -95px; background-position: 2% -9.5rem;
}
#searchform input#searchsubmit {
background-position: -7px 4px; background-position: -0.7rem 0.4rem;
background-size: 33px 284px; background-size: 3.3rem 28.4rem;
}
}