tags:

views:

63

answers:

4
+3  A: 

This is done using media types. With them, you can limit style rules to a certain output device like screen, printer, or handheld. See here: http://apsw.googlecode.com/svn/publish/%5Fstatic/basic.css

Pekka
I know about media types, but as far as I can tell the APSW docs make no reference to media types.
Jason S
Actually, they do. So don't downvote an answer, just because you can't read.See: http://apsw.googlecode.com/svn/publish/_static/basic.css
Sven Lilienthal
I've been looking for the past 30 minutes and can't find it. If you edit your answer to point it out, I'll upvote you. Sorry.
Jason S
Done. ----------
Pekka
ARGH: I found it. Thanks. Please tweak your answer so I can upvote it + accept (first post)
Jason S
Accepted. (can't rescind my downvote for some reason.... maybe you have to edit it after the initial time-period runs out?)
Jason S
You can undo your vote if pekka edit his post
marcgg
@Pekka: could you insert a space or something so I can upvote?
Jason S
Done. If it still doesn't work, never mind.
Pekka
yay! thanks! ---
Jason S
+1  A: 

They have @media rules.

David Dorward
where???????????
Jason S
How can I downvote comments?
BalusC
Geez... I'm sorry, I looked for 30 minutes in the source files for the APSW docs and couldn't find it. I overlooked it in a 2nd level import document, and saw an answer posted here that made a statement about those source files w/o referencing a particular location. I'll be less quick to downvote in the future, managed to undo it before the clock ran out.
Jason S
+1  A: 

Take a look at: http://apsw.googlecode.com/svn/publish/%5Fstatic/basic.css

They include another css-file in their stylesheet via @import url("basic.css");

Sven Lilienthal
+2  A: 

This is linked to the media type.

You can either link it to a group of properties:

@media screen {
    body { font-size: 13px }
  }

or to an entire stylesheet

<link href="blah.css" media="all" rel="stylesheet" type="text/css" />

In your case:

@media print {
    div.document,
    div.documentwrapper,
    div.bodywrapper {
        margin: 0 !important;
        width: 100%;
    }

    div.sphinxsidebar,
    div.related,
    div.footer,
    #top-link {
        display: none;
    }
}
marcgg