gltut / Documents / cssDoc.txt

Things that need to be styled:


Top-level constructs:
    body: Everything
    div.book: The main book
    div.preface: The preface of the set of tutorials.
    div.part: Contains all of the chapters and stuff in a part.
        div.partintro: Contains intro material and a table of contents.
    div.article: An article. Not a tutorial
    div.chapter: A chapter of the book. In our case, a tutorial.
    div.section
    div.glossary
    
    div.titlepage: Contains the title, author, etc of the book/part/chapter/etc.
    
    div.toc: The table of contents.
        dl: Definition list
        dd: ??
        dt: ??
        dt/span.section: The title of a section.
        dt/span.part: The title of a part.
        dt/span.chapter: The title of a chapter.
        dt/span.glossary: The title of a glossary.
        
    em.glossterm
    acronym.acronym
    span.emphasis
    div.note
        h3.title: The note's name
    pre.programlisting
    
    code.function: Used for functions names.
    code.varname: Used for variable names.
    code.filename: Used for filenames.
    code.literal: Used for various kinds of literals in code.
    code.classname: Used for classes.
    span.type: Used for the types of things.
    span.mathphrase: Used for math phrases.
    span.propername: Used for the names of the various tutorials.
    
    div.example: Stores the entire example.
        p.title: The title of the example.
    div.example-contents: Stores everything but the title of the example.
    br.example-break
    
    div.tip: A longer notation.
    div.sidebar: A longer notation.
        p.title: The sidebar's title.
    
Syntax highlighting (all in spans)
    code-type: Types that hold values (ints, vec3, etc)
    code-modifier: Type modifiers (uniform, layout, etc)
    code-sampler: Sampler types
    code-keyword: Keywords that don't fit into the above.
    code-function: A function from the standard library.
    
    code-number: Numbers.
    code-comment: Comments.
    code-directive: Directives.
    
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.