Dotclear

source: admin/style/scss/partials/_common.scss @ 3365:11eb6b993152

Revision 3365:11eb6b993152, 1.6 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Switch admin CSS to Sass/Compass?, to be continued…

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

Sites map