W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [css-document-class] defining basic style

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 05 Feb 2015 10:47:25 +0100
To: Sanja Bonic <sanja.bonic@univie.ac.at>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <6me6dap0vpd6g8cg20oh884kgvkevg6fmi@hive.bjoern.hoehrmann.de>
* Sanja Bonic wrote:
>in LaTeX we have \documentclass{<classname>} to define the text's basic 
>look. Has there ever been any interest in or discussion about defining a 
>basic set of style names (like article, minimal, report, thesis, book, 
>slides, etc)?
>
>I'm thinking of something like this to be included in the HTML head:
>
><style>
>document-style {screen: book, paper: minimal, slides: presentation}
></style>

That's basically something like

  @import url("book") screen;
  @import url("minimal") print;
  @import url("slides") projection;

There have been and are many efforts to create re-usable style sheets,
an early one is <http://www.w3.org/StyleSheets/Core/>, similarily some
browsers come with pre-defined style sheets, e.g. Opera "Classic" lets
users choose specialised style sheets for high contrast and similar
things. There are probably mountains of "WordPress themes".
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
D-10243 Berlin · PGP Pub. KeyID: 0xA4357E78 · http://www.bjoernsworld.de
 Available for hire in Berlin (early 2015)  · http://www.websitedev.de/ 
Received on Thursday, 5 February 2015 09:47:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC