Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_typography.scss « scss « styles « static - github.com/kdevo/osprey-delight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1667d20e9f30d050e450c018ddab70478268defb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
$font-header: "Bitter", "Roboto Slab", "Cambria", Georgia, serif;
$font-body: "Rubik", "Poppins", "Hel­vetica", Arial, sans-serif;
$font-code: "Menlo", "Monaco", "Andale Mono", "lucida console", "Courier New", monospace;

// Modular font scale
// Large: http://www.modularscale.com/?1.25&em&1.333&web&text
// Medium: http://www.modularscale.com/?1.25&em&1.25&web&text
// SMall: http://www.modularscale.com/?1.1&em&1.25&web&text

$font-scale-large: (
  h1: 2.961rem,
  h2: 2.221rem,
  h3: 1.666rem,
  p: 1.25rem
);

$font-scale-medium: (
  h1: 2.441rem,
  h2: 1.953em,
  h3: 1.563rem,
  p: 1.25rem,
);

$font-scale-small: (
  h1: 2.148rem,
  h2: 1.719rem,
  h3: 1.375rem,
  p: 1.1rem
);

$base-line-height: 1.6;
$base-font-size: 1.25rem; // 20px
$vertical-rhythm: $base-line-height * $base-font-size; // 2.125em or 34px

$breakpoint-medium: 49.99em; // 768px
$breakpoint-small: 25em; // 400px

@mixin size($level) {
  font-size: map-get($font-scale-large, $level);
  @media (max-width: $breakpoint-medium) {
    font-size: map-get($font-scale-medium, $level);
  }
  @media (max-width: $breakpoint-small) {
    font-size: map-get($font-scale-small, $level);
  }
}

h1 {
  @include size(h1);
}

h2 {
  @include size(h2);
}

h3 {
  @include size(h3);
}