The Science Libraries Drupal Theme and Style Sheets
The Science Libraries website makes use of a custom Drupal theme that contains a series of style sheets that determine how the content on the site is displayed. There is a style sheet that gets called into action whenever a visitor wants to print content from the site. If the visitor is browsing with a mobile device rather than a desktop or laptop computer, the mobile friendly style sheet will style the content so that it's more usable on a smaller screen.
However, I should mention that the iPhone and iPod touch continue to use the regular computer screen style sheet. This is because Apple has been promoting the idea that users of these mobile devices would want to have the same website experiences that a desktop or laptop computer user would have. I'm an iPod touch user and tend to disagree with this assumption, but that's just one person's opinion. It's something to keep in mind in case users do bring it up.
Custom styles
If you have experience with CSS, there are some custom style classes available that you might like to use as you prepare or update your content.
Note: if you're using the WYSIWYG editor by default, you can toggle it off.
Click on the "Switch to plain text editor" link to view and edit the source code by hand.
Also, you'll need to set the Input format to support the "Full HTML" option. By default, Drupal sets the Input format to "Filtered HTML" and that option is limited to only a few HTML tags.
If you want to reduce the amount of white space above a bulleted or numbered list, use the custom tighttop class. For example:
<ul class="tighttop">
<li>list item #1</li>
<li>list item #2</li>
<li>etc.</li>
</ul>
If you would like to use a two-column layout for your content, there is a pair of style classes that you can use for this purpose, the leftColumn and rightColumn classes.
<div class="leftColumn">
... Content for the left column ...
</div>
<div class="rightColumn">
... Content for the right column ...
</div>
Note: these styles apply only to the content that would go in the center column. The content in the left and right sidebars are controlled by blocks that are currently being maintained by the Editors.
» Back to the Science Libraries Staff page
Page owner: John Ridener