1 | |||
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
2 | |||
3 | /* html-reset-rtl.css */ |
||
4 | |||
5 | /** |
||
6 | * @file |
||
7 | * RTL companion for the html-reset.css file. |
||
8 | */ |
||
9 | |||
10 | |||
11 | /* |
||
12 | * Lists |
||
13 | * |
||
14 | * We need to standardize the list item indentation. |
||
15 | */ |
||
16 | ul, |
||
17 | ol { |
||
18 | padding-left: 0; |
||
19 | padding-right: 2em; |
||
20 | } |
||
21 | |||
22 | .block ul, |
||
23 | .item-list ul /* Drupal overrides */ { |
||
24 | padding: 0 2em 0 0; |
||
25 | } |
||
26 | |||
27 | dd { |
||
28 | margin: 0 2em 0 0; |
||
29 | } |
||
30 | |||
31 | /* |
||
32 | * Tables |
||
33 | * |
||
34 | * Drupal provides table styling which is only useful for its admin section |
||
35 | * forms, so we override this default CSS. (We set it back in forms.css.) |
||
36 | */ |
||
37 | th, |
||
38 | thead th, |
||
39 | tbody th { |
||
40 | text-align: right; |
||
41 | } |
||
42 | |||
43 | /* layout-liquid-rtl.css */ |
||
44 | |||
45 | /** |
||
46 | * @file |
||
47 | * RTL companion for the layout-liquid.css file. |
||
48 | */ |
||
49 | |||
50 | |||
51 | /* |
||
52 | * Content |
||
53 | */ |
||
54 | #content { |
||
55 | float: right; |
||
56 | margin-left: -100%; /* Negative value of #content's width + right margin. */ |
||
57 | margin-right: 0; |
||
58 | } |
||
59 | |||
60 | .sidebar-first #content .section { |
||
61 | padding-left: 0; |
||
62 | padding-right: 200px; /* The width + right margin of .region-sidebar-first. */ |
||
63 | } |
||
64 | |||
65 | .sidebar-second #content .section { |
||
66 | padding-left: 200px; /* The width + left margin of .region-sidebar-second. */ |
||
67 | padding-right: 0; |
||
68 | } |
||
69 | |||
70 | /* |
||
71 | * Navigation |
||
72 | */ |
||
73 | #navigation { |
||
74 | float: right; |
||
75 | margin-left: -100%; /* Negative value of #navigation's width + right margin. */ |
||
76 | margin-right: 0; |
||
77 | } |
||
78 | |||
79 | #navigation ul /* Primary and secondary links */ { |
||
80 | text-align: right; |
||
81 | } |
||
82 | |||
83 | #navigation li /* A simple method to get navigation links to appear in one line. */ { |
||
84 | float: right; |
||
85 | padding: 0 0 0 10px; |
||
86 | } |
||
87 | |||
88 | /* |
||
89 | * First sidebar |
||
90 | */ |
||
91 | .region-sidebar-first { |
||
92 | float: right; |
||
93 | margin-left: -200px; /* Negative value of .region-sidebar-first's width + right margin. */ |
||
94 | margin-right: 0; |
||
95 | } |
||
96 | |||
97 | .region-sidebar-first .section { |
||
98 | margin: 0 0 0 20px; |
||
99 | } |
||
100 | |||
101 | /* |
||
102 | * Second sidebar |
||
103 | */ |
||
104 | .region-sidebar-second { |
||
105 | float: left; |
||
106 | margin-left: 0; |
||
107 | margin-right: -200px; /* Negative value of .region-sidebar-second's width + left margin. */ |
||
108 | } |
||
109 | |||
110 | .region-sidebar-second .section { |
||
111 | margin: 0 20px 0 0; |
||
112 | } |
||
113 | |||
114 | /* tabs-rtl.css */ |
||
115 | |||
116 | /** |
||
117 | * @file |
||
118 | * RTL companion for the tabs.css file. |
||
119 | */ |
||
120 | |||
121 | |||
122 | ul.primary { |
||
123 | padding: 0 10px 0 0; |
||
124 | } |
||
125 | |||
126 | ul.primary li { |
||
127 | float: right; |
||
128 | } |
||
129 | |||
130 | ul.secondary { |
||
131 | padding: 0 5px 0 0; |
||
132 | } |
||
133 | |||
134 | ul.secondary li { |
||
135 | float: right; |
||
136 | border-left: none; |
||
137 | } |
||
138 | |||
139 | /* messages-rtl.css */ |
||
140 | |||
141 | /** |
||
142 | * @file |
||
143 | * RTL companion for the messages.css file. |
||
144 | */ |
||
145 | |||
146 | |||
147 | div.messages, |
||
148 | div.status, |
||
149 | div.warning, |
||
150 | div.error /* Important messages (status, warning, and error) for the user */ { |
||
151 | padding: 5px 35px 5px 5px; |
||
152 | background-position: 99.5% 5px; |
||
153 | } |
||
154 | |||
155 | /* pages-rtl.css */ |
||
156 | |||
157 | /** |
||
158 | * @file |
||
159 | * RTL companion for the pages.css file. |
||
160 | */ |
||
161 | |||
162 | |||
163 | /* |
||
164 | * Header |
||
165 | */ |
||
166 | #logo /* Wrapping link for logo */ { |
||
167 | float: right; |
||
168 | } |
||
169 | |||
170 | /* |
||
171 | * Content |
||
172 | */ |
||
173 | .more-link /* Aggregator, blog, and forum more link */ { |
||
174 | text-align: left; |
||
175 | } |
||
176 | |||
177 | /* block-editing-rtl.css */ |
||
178 | |||
179 | /** |
||
180 | * @file |
||
181 | * RTL companion for the block-editing.css file. |
||
182 | */ |
||
183 | |||
184 | |||
185 | div.block.with-block-editing div.edit { |
||
186 | left: 0; |
||
187 | right: auto; |
||
188 | } |
||
189 | |||
190 | /* forms-rtl.css */ |
||
191 | |||
192 | /** |
||
193 | * @file |
||
194 | * RTL companion for the forms.css file. |
||
195 | */ |
||
196 | |||
197 | |||
198 | /* |
||
199 | * Drupal's default login form block |
||
200 | */ |
||
201 | #user-login-form { |
||
202 | text-align: right; |
||
203 | } |
||
204 | |||
205 | |||
206 | /* |
||
207 | * OpenID |
||
208 | * |
||
209 | * The default styling for the OpenID login link seems to assume Garland's |
||
210 | * styling of list items. |
||
211 | */ |
||
212 | |||
213 | #user-login-form li.openid-link /* The "Log in using OpenID" link. */ { |
||
214 | margin-left: 0; |
||
215 | margin-right: -20px; /* Un-do some of the padding on the ul list. */ |
||
216 | } |
||
217 | |||
218 | #user-login li.openid-link, |
||
219 | #user-login li.user-link /* The OpenID links on the /user form. */ { |
||
220 | margin-left: 0; |
||
221 | margin-right: -2em; /* Un-do all of the padding on the ul list. */ |
||
222 | } |
||
223 | |||
224 | |||
225 | /* |
||
226 | * Drupal admin tables |
||
227 | * |
||
228 | * We overrode these styles in html-elements.css, but restore them for the admin |
||
229 | * section of the site. |
||
230 | */ |
||
231 | |||
232 | form th, |
||
233 | form thead th { |
||
234 | text-align: right; |
||
235 | padding-left: 1em; |
||
236 | padding-right: 0; |
||
237 | } |
||
238 |