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

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

blabla

  • Property svn:executable set to *
File size: 5.6 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 :
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: 2em; line-height:#GET{line-height};margin-bottom: [(#GET{margin-bottom}|div{2})em]; }
41#SET{coeff,#GET{line-height}|plus{2}|div{2}|div{#GET{line-height}}}
42#SET{coeffinv,#VAL{1}|div{#GET{coeff}}}
43h2,.h2 {[ font-size: (#GET{line-height}|mult{#GET{coeff}})em];[ line-height: (#GET{coeffinv}|mult{2})em];[ margin-bottom: (#GET{coeffinv})em;]}
44h3,.h3 {[ font-size: (#GET{line-height}|mult{1})em]; line-height: 1; margin-bottom: 1em; font-weight: bold;}
45#SET{coeff,#GET{line-height}|plus{1}|div{2}|div{#GET{line-height}}}
46#SET{coeffinv,#VAL{1}|div{#GET{coeff}}}
47h4,.h4 {[ font-size: (#GET{line-height}|mult{#GET{coeff}})em];[ line-height: (#GET{coeffinv})em];[ margin-bottom: (#GET{coeffinv})em;]font-weight: bold; }
48h5,.h5 { font-size: 1em; font-weight: bold; margin-bottom: #GET{margin-bottom}; }
49h6,.h6 { font-size: 1em; font-weight: bold; }
50
51/* Enrichissements typographiques */
52strong, b { font-weight: bold; }
53em, i { font-style: italic; }
54small, .small { font-size: 80%; }
55big, .big { font-size: 150%; }
56abbr[title], acronym[title] { border-bottom: .1em dotted; cursor: help; }
57@media print { abbr[title]:after { content: " (" attr(title) ")"; } }
58dfn { font-weight: bold; font-style: italic; }
59del { text-decoration: line-through; }
60ins { text-decoration: none; background-color: #FFC; }
61sup, sub { font-size: .8em; font-variant: normal; line-height: 0; }
62sup { vertical-align: super; }
63.ie sup { vertical-align: text-top; }
64sub { vertical-align: sub; }
65.ie sub { vertical-align: text-bottom; }
66.caps { font-variant: small-caps; }
67
68/* Listes */
69ul, ol, li, dl, dt, dd {}
70ul ul, ol ol, ul ol, ol ul { margin-top: 0; margin-bottom: 0; }
71
72dl dt { font-weight: bold; }
73dl dd {}
74
75/* Tableaux */
76table { margin-bottom: #GET{margin-bottom}; width: 100%; }
77th { font-weight: bold; }
78thead th { background: #c3d9ff; }
79th,td,caption {[ padding: (#GET{line-height}|div{2})em;] }
80tbody tr:nth-child(even) td,
81tbody tr.even td { background: #e5ecf9; }
82tfoot { font-style: italic; }
83caption { background: #eee; }
84
85/* Citations, code et poesie */
86q { font-style: italic; }
87blockquote { padding: 0 #GET{text-indent}; font-style: italic; }
88cite { font-style: italic; }
89
90address { font-style: italic; }
91
92pre,code,kbd,samp,var,tt { font-family: 'andale mono','lucida console',monospace; font-size: 1em; }
93pre { margin:[ (#GET{margin-bottom}) ]0;
94        /* Cf.: http://perishablepress.com/press/2010/06/01/wrapping-content/ /
95        white-space: pre;           /* CSS 2.0 */
96        white-space: pre-wrap;      /* CSS 2.1 */
97        white-space: pre-line;      /* CSS 3.0 */
98        white-space: -pre-wrap;     /* Opera 4-6 */
99        white-space: -o-pre-wrap;   /* Opera 7 */
100        white-space: -moz-pre-wrap; /* Mozilla */
101        white-space: -hp-pre-wrap;  /* HP Printers */
102        word-wrap: break-word;      /* IE 5+ */
103}
104kbd { background-color: #GET{color}; color: #GET{background-color}; }
105samp { font-weight: bold; }
106var { font-style: italic; }
107
108/* Paragraphes */
109p, .p, dl, dd, blockquote, address, pre, table, fieldset { margin-bottom: #GET{margin-bottom}; }
110
111/* Liens */
112a {}
113a:hover {}
114a[hreflang]:after { content: "\0000a0(" attr(hreflang) ")"; }
115@media print {
116        a, a:visited { color: #GET{color} !important; text-decoration: underline; }
117        .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
118}
119
120.on { font-weight: bold; }
121
122/**
123* Print styles from HTML5 Boilerplate
124* Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
125*/
126@media print {
127        pre, blockquote { page-break-inside: avoid; }
128        thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
129        tr, img { page-break-inside: avoid; }
130        @page { margin: 0.5cm; }
131        p, h2, h3 { orphans: 3; widows: 3; }
132        h2, h3 { page-break-after: avoid; }
133}
134
135/* end */
Note: See TracBrowser for help on using the repository browser.