Sample library.css file: Difference between revisions
Jump to navigation
Jump to search
(rv remove Category:Uncategorized (this was the only member) so it shows on special pages where it might get a real cat) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 33: | Line 33: | ||
:''In our dynamically-generated-everything future, you shouldn't have to include the class name in this file (provided that it's included in the library.info file instead). For now, though, you need to include it here, too. |
:''In our dynamically-generated-everything future, you shouldn't have to include the class name in this file (provided that it's included in the library.info file instead). For now, though, you need to include it here, too. |
||
See [[library.css]] for a description of classes and selectors. |
|||
; <tt>.dictionary a.entry:hover</tt> : <tt>a.entry:hover</tt> refers to the style of an entry in the collection as you mouse over it. |
|||
; <tt>.dictionary .metadata > .title</tt> : <tt>.metadata > .title</tt> refers to the style of the title of an entry in the collection. |
|||
; <tt>.dictionary a</tt> : <tt>a</tt> refers to the style of all linked text in the collection. |
|||
; <tt>.dictionary a:hover</tt> : <t>a:hover</tt> refers to the style of linked text as you mouse over it. |
|||
; <tt>.dictionary h1, .dictionary h2, .dictionary h3, .dictionary h4, .dictionary h5</tt> : <tt>h1</tt>,<tt>h2</tt>,<tt>h3</tt>,<tt>h4</tt>, and <tt>h5</tt> refer to the style of various headers. |
Latest revision as of 04:16, 20 March 2008
Here is a sample library.css file a collection called Dictionary:
/* Style sheet for "Dictionary" collection--------------- */ .dictionary a.entry:hover { background: #F2DBA2; text-decoration: none; } .dictionary .metadata > .title { color: #DE801A; } .dictionary a { color: #DE801A; text-decoration: none; } .dictionary a:hover { text-decoration: underline; } .dictionary h1, .dictionary h2, .dictionary h3, .dictionary h4, .dictionary h5 { background: #F78F1E; }
Classes and Selectors
The library.css file relies on a class that is specific to the collection. The name of the class-- in this case, dictionary-- should also be recorded in the class field of the library.info file.
- In our dynamically-generated-everything future, you shouldn't have to include the class name in this file (provided that it's included in the library.info file instead). For now, though, you need to include it here, too.
See library.css for a description of classes and selectors.