Dotclear

source: admin/style/scss/partials/_common.scss @ 3355:5619cd4c8c5d

Revision 3355:5619cd4c8c5d, 1.7 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Switch admin CSS to Sass/Compass?, 1st step

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

Sites map