aboutsummaryrefslogtreecommitdiff
path: root/assets/styles.scss
blob: ff9dd1797e243d29ea86c64e4a608c5dcdd60731 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@import 'variables';
@import 'pure-extension';
@import 'markdown';

html {
  font-size: $font-size-base;
}

html, body {
  width: 100%;
  min-height: 100%;
  min-width: $body-min-width;
}

body {
  color: $gray-800;
  line-height: $body-line-height;
}

.book-content {
  max-width: $content-max-width;
  margin: 0 auto;
}

.book-page {
  padding: 0 $size-48;
}

.book-brand {
  padding: 0 $padding-16;
  font-weight: 300;

  a {
    color: $gray-800;
    text-decoration: none;
  }
}

.book-nav {
  width: $nav-menu-width;
  flex-grow: 0;

  nav {
    position: fixed;
    height: 100%;
    width: $nav-menu-width;

    overflow-x: hidden;
    overflow-y: auto;

    font-size: $font-size-14;
    background: $gray-100;
    padding-left: $padding-16;
  }
}

.book-toc {
  flex-grow: 0;
  width: $toc-menu-width;
  font-size: $font-size-12;

  nav {
    position: fixed;
    height: 100%;
    width: $toc-menu-width;

    overflow-x: hidden;
    overflow-y: auto;

    > ul {
      margin: $size-48 0;
      padding: 0 $padding-16;
      border-left: $padding-1 solid $gray-200;
    }
  }

  ul {
    padding-left: $padding-4;
    list-style: none;
  }

  a {
    text-decoration: none;
    line-height: 1.25;
    padding: $padding-4 0;
    display: block;

    img {
      max-height: $font-size-16;
    }
  }
}

// Print styles
@media print {
  
}