18.10.2016 Views

Drupal 7 Module Development

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Theming a <strong>Module</strong><br />

Notice that the .block-single-blog .content ul rule in the single-blog.css<br />

stylesheet specifies a left padding. Since that's the only property that is directional,<br />

it's the only one we need to override in the single-blog-rtl.css file.<br />

/* $Id$ */<br />

.block-single-blog .content ul {<br />

padding-right: 0;<br />

}<br />

Note that if our original left padding was 10px, we would have needed to<br />

override that in our RTL stylesheet by setting padding-left to 0 and then<br />

setting padding-right to 10px. The following is a screenshot of version two<br />

of our module block:<br />

If you look at the screenshot, you can see the new More link and how the display of<br />

our block has improved.<br />

[ 104 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!