Repository navigation
Expand file tree
/
Copy pathrtl.css
More file actions
157 lines (128 loc) · 3.45 KB
/
Copy pathrtl.css
File metadata and controls
157 lines (128 loc) · 3.45 KB
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
/*
Theme Name: Pique
Adding support for language written in a Right To Left (RTL) direction is easy -
it's just a matter of overwriting all the horizontal positioning attributes
of your CSS stylesheet in a separate stylesheet file named rtl.css.
http://codex.wordpress.org/Right_to_Left_Language_Support
*/
body {
direction: rtl;
unicode-bidi: embed;
}
/* Swap around menu elements */
.main-navigation ul ul {
text-align: right;
}
/* Hide stuff to the right, rather than left */
.main-navigation ul ul{
left: auto;
right: -999em;
}
.main-navigation li.focus > ul {
left: auto;
right: 0;
}
/* Adjust teeny menu */
@media (max-width: 767px) {
.main-navigation a {
padding-right: 10px;
padding-left: 0;
}
.main-navigation ul ul ul {
padding-left: 0;
padding-right: 25px;
}
}
/* Swap around direction of menu fly-outs */
@media (min-width: 768px) {
.main-navigation ul ul::before {
left: auto;
right: 15px;
}
.main-navigation ul ul::before {
left: auto;
right: 15px;
}
.main-navigation #primary-menu > li:nth-last-child(1):hover > ul,
.main-navigation #primary-menu > li:nth-last-child(2):hover > ul {
left: 0;
right: auto;
}
.main-navigation #primary-menu > li:nth-last-child(1):hover ul::before,
.main-navigation #primary-menu > li:nth-last-child(2):hover ul::before {
left: 15px;
right: auto;
}
.main-navigation #primary-menu > li:nth-last-child(1) li:hover ul, .main-navigation #primary-menu > li:nth-last-child(2) li:hover u {
left: 103%;
right: auto;
}
}
/* Right-align content within panels */
.pique-grid-three p,
.overlay,
label,
form,
.pique-panel-content .entry-content,
#pique-hero .pique-panel-content .entry-content p,
blockquote p,
.pique-template-testimonials .pique-testimonials article .entry-content p {
text-align: right;
}
h3,
blockquote cite,
.pique-template-testimonials .pique-testimonials article .entry-content cite,
blockquote p, .pique-template-testimonials .pique-testimonials article .entry-content p,
.widget-title {
text-align: right;
}
.pique-template-testimonials .pique-testimonials .attachment-pique-thumbnail-avatar {
float: right;
margin-right: 0;
margin-left: 20px;
}
.pique-template-testimonials .pique-testimonials h2 {
float: right;
text-align: right;
}
/* Adjust padding on post format icons */
.sticky .entry-title::before {
margin-left: 0.5em;
margin-right: 0;
}
/* Swap direction of arrows in read more buttons */
.archive .read-more a::after, .blog .read-more a::after, .search-results .read-more a::after {
content: '\f060';
}
.archive .read-more a:hover, .blog .read-more a:hover, .search-results .read-more a:hover {
padding-left: calc(3em - 40px);
padding-right: 3em;
}
.archive .read-more a:hover::after, .blog .read-more a:hover::after, .search-results .read-more a:hover::after {
padding-right: 20px;
}
/* Adjust padding on taxonomy icons */
.cat-links::before, .tags-links::before {
margin-left: 5px;
margin-right: 0;
}
/* Float nav arrows */
.comment-navigation .nav-previous span::before, .posts-navigation .nav-previous span::before, .post-navigation .nav-previous span::before {
float: left;
}
.comment-navigation .nav-next span::after, .posts-navigation .nav-next span::after, .post-navigation .nav-next span::after {
float: right;
}
/* Right-align entry meta */
.entry-meta, .widget_rss .rss-date, .widget_rss cite {
text-align: right;
}
/* Rearrange comments */
.comment-author .avatar {
float: right;
margin-right: 0;
margin-left: 0.5em;
}
.reply {
float: left;
}