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-fixed-rtl.css */ |
||
44 | |||
45 | /** |
||
46 | * @file |
||
47 | * RTL companion for the layout-fixed.css file. |
||
48 | */ |
||
49 | |||
50 | |||
51 | /* |
||
52 | * Content |
||
53 | */ |
||
54 | #content, |
||
55 | .no-sidebars #content { |
||
56 | float: right; |
||
57 | margin-left: -960px; /* Negative value of #content's width + right margin. */ |
||
58 | margin-right: 0; |
||
59 | } |
||
60 | |||
61 | .sidebar-first #content { |
||
62 | margin-left: -960px; /* Negative value of #content's width + right margin. */ |
||
63 | margin-right: 200px; /* The width of .region-sidebar-first. */ |
||
64 | } |
||
65 | |||
66 | .sidebar-second #content { |
||
67 | margin-left: -760px; /* Negative value of #content's width + right margin. */ |
||
68 | margin-right: 0; |
||
69 | } |
||
70 | |||
71 | .two-sidebars #content { |
||
72 | margin-left: -760px; /* Negative value of #content's width + right margin. */ |
||
73 | margin-right: 200px; /* The width of .region-sidebar-first */ |
||
74 | } |
||
75 | |||
76 | /* |
||
77 | * Navigation |
||
78 | */ |
||
79 | #navigation { |
||
80 | float: right; |
||
81 | margin-left: -100%; /* Negative value of #navigation's width + right margin. */ |
||
82 | margin-right: 0; |
||
83 | } |
||
84 | |||
85 | #navigation ul /* Primary and secondary links */ { |
||
86 | text-align: right; |
||
87 | } |
||
88 | |||
89 | #navigation li /* A simple method to get navigation links to appear in one line. */ { |
||
90 | float: right; |
||
91 | padding: 0 0 0 10px; |
||
92 | } |
||
93 | |||
94 | /* |
||
95 | * First sidebar |
||
96 | */ |
||
97 | .region-sidebar-first { |
||
98 | float: right; |
||
99 | margin-left: -200px; /* Negative value of .region-sidebar-first's width + right margin. */ |
||
100 | margin-right: 0; |
||
101 | } |
||
102 | |||
103 | .region-sidebar-first .section { |
||
104 | margin: 0 0 0 20px; |
||
105 | } |
||
106 | |||
107 | /* |
||
108 | * Second sidebar |
||
109 | */ |
||
110 | .region-sidebar-second { |
||
111 | float: right; |
||
112 | margin-left: -960px; /* Negative value of .region-sidebar-second's width + right margin. */ |
||
113 | margin-right: 760px; /* Width of content + sidebar-first. */ |
||
114 | } |
||
115 | |||
116 | .region-sidebar-second .section { |
||
117 | margin: 0 20px 0 0; |
||
118 | } |
||
119 | |||
120 | /* tabs-rtl.css */ |
||
121 | |||
122 | /** |
||
123 | * @file |
||
124 | * RTL companion for the tabs.css file. |
||
125 | */ |
||
126 | |||
127 | |||
128 | ul.primary { |
||
129 | padding: 0 10px 0 0; |
||
130 | } |
||
131 | |||
132 | ul.primary li { |
||
133 | float: right; |
||
134 | } |
||
135 | |||
136 | ul.secondary { |
||
137 | padding: 0 5px 0 0; |
||
138 | } |
||
139 | |||
140 | ul.secondary li { |
||
141 | float: right; |
||
142 | border-left: none; |
||
143 | } |
||
144 | |||
145 | /* messages-rtl.css */ |
||
146 | |||
147 | /** |
||
148 | * @file |
||
149 | * RTL companion for the messages.css file. |
||
150 | */ |
||
151 | |||
152 | |||
153 | div.messages, |
||
154 | div.status, |
||
155 | div.warning, |
||
156 | div.error /* Important messages (status, warning, and error) for the user */ { |
||
157 | padding: 5px 35px 5px 5px; |
||
158 | background-position: 99.5% 5px; |
||
159 | } |
||
160 | |||
161 | /* pages-rtl.css */ |
||
162 | |||
163 | /** |
||
164 | * @file |
||
165 | * RTL companion for the pages.css file. |
||
166 | */ |
||
167 | |||
168 | |||
169 | /* |
||
170 | * Header |
||
171 | */ |
||
172 | #logo /* Wrapping link for logo */ { |
||
173 | float: right; |
||
174 | } |
||
175 | |||
176 | /* |
||
177 | * Content |
||
178 | */ |
||
179 | .more-link /* Aggregator, blog, and forum more link */ { |
||
180 | text-align: left; |
||
181 | } |
||
182 | |||
183 | /* block-editing-rtl.css */ |
||
184 | |||
185 | /** |
||
186 | * @file |
||
187 | * RTL companion for the block-editing.css file. |
||
188 | */ |
||
189 | |||
190 | |||
191 | div.block.with-block-editing div.edit { |
||
192 | left: 0; |
||
193 | right: auto; |
||
194 | } |
||
195 | |||
196 | /* forms-rtl.css */ |
||
197 | |||
198 | /** |
||
199 | * @file |
||
200 | * RTL companion for the forms.css file. |
||
201 | */ |
||
202 | |||
203 | |||
204 | /* |
||
205 | * Drupal's default login form block |
||
206 | */ |
||
207 | #user-login-form { |
||
208 | text-align: right; |
||
209 | } |
||
210 | |||
211 | |||
212 | /* |
||
213 | * OpenID |
||
214 | * |
||
215 | * The default styling for the OpenID login link seems to assume Garland's |
||
216 | * styling of list items. |
||
217 | */ |
||
218 | |||
219 | #user-login-form li.openid-link /* The "Log in using OpenID" link. */ { |
||
220 | margin-left: 0; |
||
221 | margin-right: -20px; /* Un-do some of the padding on the ul list. */ |
||
222 | } |
||
223 | |||
224 | #user-login li.openid-link, |
||
225 | #user-login li.user-link /* The OpenID links on the /user form. */ { |
||
226 | margin-left: 0; |
||
227 | margin-right: -2em; /* Un-do all of the padding on the ul list. */ |
||
228 | } |
||
229 | |||
230 | |||
231 | /* |
||
232 | * Drupal admin tables |
||
233 | * |
||
234 | * We overrode these styles in html-elements.css, but restore them for the admin |
||
235 | * section of the site. |
||
236 | */ |
||
237 | |||
238 | form th, |
||
239 | form thead th { |
||
240 | text-align: right; |
||
241 | padding-left: 1em; |
||
242 | padding-right: 0; |
||
243 | } |
||
244 |