Dotclear

source: admin/style/scss/partials/_common.scss @ 3439:640a478849cf

Revision 3439:640a478849cf, 1.9 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Prettify scss code

Line 
1/* Typographie */
2
3:root {
4    // May be superseed by user pref (typically from 50% to 75%, default 62.5%)
5    --html-font-size: #{$html-font-size};
6}
7
8// base //
9html {
10    font-size: $html-font-size; // html font-size for IE and Edge
11    font-size: var(--html-font-size); // html font-size for modern browsers
12}
13
14body {
15    font-size: $body-font-size;
16    line-height: 1.5;
17    @media screen and(max-width: $small-screen) {
18        font-size: $body-font-size-small;
19        line-height: 1.3;
20    }
21    @media screen and(min-width: $large-screen) {
22        font-size: $body-font-size-large;
23        line-height: 1.5;
24    }
25    @media screen and(min-width: $small-screen) and (max-width: $large-screen) {
26        font-size: calc( #{$body-font-size-small} + #{strip-unit($body-font-size-large - $body-font-size-small)} * (100vw - #{strip-unit(relative-to-screen($small-screen,$html-font-size))}rem) / (#{strip-unit(relative-to-screen($large-screen,$html-font-size))} - #{strip-unit(relative-to-screen($small-screen,$html-font-size))}));
27        line-height: calc( 1.3em + (1.5 - 1.3) * (100vw - #{strip-unit(relative-to-screen($small-screen,$html-font-size))}rem) / (#{strip-unit(relative-to-screen($large-screen,$html-font-size))} - #{strip-unit(relative-to-screen($small-screen,$html-font-size))}));
28    }
29    font-family: $sans-serif;
30}
31
32#wrapper {
33    @media screen and (max-width: $small-screen) {
34        font-size: 1.4em;
35    }
36}
37
38// titres //
39h2,
40h3,
41.as_h3,
42h4,
43.as_h4,
44h5,
45h6 {
46    margin-top: 0;
47    margin-bottom: 1em;
48}
49
50h2 {
51    font-size: 1.5em;
52    font-weight: normal;
53    line-height: 1.25;
54    padding: 0 0 1.5em;
55}
56
57h3,
58.as_h3 {
59    font-size: 1.34em;
60    font-weight: normal;
61    line-height: 1.5;
62    margin-top: 1em;
63}
64
65h4,
66.as_h4 {
67    font-size: 1.16em;
68    line-height: 1.5;
69}
70
71h5 {
72    font-size: 1em;
73    line-height: 1.5;
74    font-weight: bold;
75}
76
77h6 {
78    font-size: 1em;
79    line-height: 1.5;
80}
Note: See TracBrowser for help on using the repository browser.

Sites map