source: spip-zone/_plugins_/basecss/css/typo.css.html @ 47754

Last change on this file since 47754 was 47754, checked in by romy@…, 10 years ago

C'est le truc ultime pour gérer les lignes longues dans un pre (b_b)
Cf.: Wrapping Long URLs and Text Content with CSS : http://perishablepress.com/press/2010/06/01/wrapping-content/

  • Property svn:executable set to *
File size: 4.7 KB
Line 
1#CACHE{3600*100,cache-client}
2#HTTP_HEADER{Content-Type: text/css; charset=iso-8859-15}
3#HTTP_HEADER{Vary: Accept-Encoding}
4[(#REM)<style>
5]/* --------------------------------------------------------------
6
7   typo.css.html
8   Base typographique
9   Cf.: http://www.spip-contrib.net/3820
10
11-------------------------------------------------------------- */
12
13/* Valeurs par defaut :
14#SET{font-size,#CONFIG{basecss/typo/font-size,1em}} [ font-size: (#GET{font-size});]
15#SET{line-height,#CONFIG{basecss/typo/line-height,1.5em}} [ line-height: (#GET{line-height});]
16#SET{margin-bottom,#CONFIG{basecss/typo/margin-bottom,1.5em}} [ margin-bottom: (#GET{margin-bottom});]
17#SET{text-indent,#CONFIG{basecss/typo/text-indent,50px}} [ text-indent: (#GET{text-indent});]
18#SET{font-family,#CONFIG{basecss/typo/font-family,'Helvetica, Arial, sans-serif'}} [ font-family: (#GET{font-family});]
19#SET{background-color,#CONFIG{basecss/typo/background-color,#FFFFFF}} [ background-color : (#GET{background-color});]
20#SET{color,#CONFIG{basecss/typo/color,#222222}} [ color: (#GET{color});]
21*/
22
23html { font-size: 100.01%; } /* Cf.: http://www.pompage.net/pompe/definir-des-tailles-de-polices-en-CSS/ */
24body { background: #GET{background-color}; font: #GET{font-size}/#GET{line-height}[ (#GET{font-family})]; color: #GET{color}; }
25
26/* Titraille / Intertitres */
27h1,h2,h3,h4,h5,h6,
28.h1,.h2,.h3,.h4,.h5,.h6 { margin: 0; padding: 0; font-size: 100%; font-weight: normal; }
29hr { height: 1px; margin:[ (#GET{margin-bottom})] 0; border: 0; background: #GET{color}; color: #GET{color}; }
30
31/* Titraille Blueprint
32Cf. : http://www.blueprintcss.org/tests/parts/elements.html
33h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
34h2 { font-size: 2em; margin-bottom: 0.75em; }
35h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
36h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
37h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
38h6 { font-size: 1em; font-weight: bold; }*/
39
40h1,.h1 {[ font-size: (#GET{line-height}|mult{2})em;] line-height: 1; margin-bottom: 0.5em; }
41h2,.h2 {[ font-size: (#GET{line-height}|mult{1.5})em;][ line-height: (#GET{line-height}|mult{.75})em;][ margin-bottom: (#GET{line-height}|mult{.5})em;] }
42h3,.h3 {[ font-size: (#GET{line-height})em;] line-height: 1; margin-bottom: 1em; }
43h4,.h4 {[ font-size: (#GET{line-height}|mult{.75})em;][ line-height: (#GET{line-height}|mult{.75})em;][ margin-bottom: (#GET{line-height})em;] }
44h5,.h5 { font-size: 1em; font-weight: bold; margin-bottom: #GET{margin-bottom}; }
45h6,.h6 { font-size: 1em; font-weight: bold; }
46
47/* Enrichissements typographiques */
48strong, b { font-weight: bold; }
49em, i { font-style: italic; }
50small, .small { font-size: 80%; }
51big, .big { font-size: 150%; }
52abbr[title], acronym[title] { border-bottom: .1em dotted; cursor: help; }
53dfn { font-weight: bold; font-style: italic; }
54del { text-decoration: line-through; }
55ins { text-decoration: none; background-color: #FFC; }
56sup, sub { font-size: .8em; font-variant: normal; line-height: 0; }
57sup { vertical-align: super; }
58.ie sup { vertical-align: text-top; }
59sub { vertical-align: sub; }
60.ie sub { vertical-align: text-bottom; }
61.caps { font-variant: small-caps; }
62
63/* Listes */
64ul, ol, li, dl, dt, dd {}
65ul ul, ol ol, ul ol, ol ul { margin-top: 0; margin-bottom: 0; }
66
67dl dt { font-weight: bold; }
68dl dd {}
69
70/* Tableaux */
71table { margin-bottom: #GET{margin-bottom}; width: 100%; }
72th { font-weight: bold; }
73thead th { background: #c3d9ff; }
74th,td,caption {[ padding: (#GET{line-height}|div{2})em;] }
75tbody tr:nth-child(even) td,
76tbody tr.even td { background: #e5ecf9; }
77tfoot { font-style: italic; }
78caption { background: #eee; }
79
80/* Citations, code et poesie */
81q { font-style: italic; }
82blockquote { padding: 0 #GET{text-indent}; font-style: italic; }
83cite { font-style: italic; }
84
85address { font-style: italic; }
86
87pre,code,kbd,samp,var,tt { font-family: 'andale mono','lucida console',monospace; font-size: 1em; }
88pre { margin:[ (#GET{margin-bottom}) ]0;
89        /* Cf.: http://perishablepress.com/press/2010/06/01/wrapping-content/ /
90        white-space: pre;           /* CSS 2.0 */
91        white-space: pre-wrap;      /* CSS 2.1 */
92        white-space: pre-line;      /* CSS 3.0 */
93        white-space: -pre-wrap;     /* Opera 4-6 */
94        white-space: -o-pre-wrap;   /* Opera 7 */
95        white-space: -moz-pre-wrap; /* Mozilla */
96        white-space: -hp-pre-wrap;  /* HP Printers */
97        word-wrap: break-word;      /* IE 5+ */
98}
99kbd { background-color: #GET{color}; color: #GET{background-color}; }
100samp { font-weight: bold; }
101var { font-style: italic; }
102
103/* Paragraphes */
104p, .p, dl, dd, blockquote, address, pre, table, fieldset { margin-bottom: #GET{margin-bottom}; }
105
106/* Liens */
107a {}
108a:hover {}
109a[hreflang]:after { content: "\0000a0(" attr(hreflang) ")"; }
110.on { font-weight: bold; }
111
112/* end */
Note: See TracBrowser for help on using the repository browser.