summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets/website/body.less
blob: 9c0340f60000a883fa5f39aaada1800d3f1681b8 (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
.book {
    position: relative;
    width: 100%;
    height: 100%;

    .book-body {
        position: absolute;
        top: @header-height;
        right: 0px;
        left: 0px;
        bottom: 0px;

        color: @page-color;
        background: @body-background;
        .transition(left 0.5s ease);

        .body-inner {
            position: absolute;
            top: 0px;
            right: 0px;
            left: 0px;
            bottom: 0px;
            overflow-y: auto;
        }

        .page-wrapper {
            position: relative;
            outline: none;

            .page-inner {
                max-width: 800px;
                margin: 0px auto;

                section {
                    margin: 0px 0px;
                    padding: 5px 15px;

                    background: @page-background;
                    border-radius: 2px;
                    line-height: 1.5em;
                }

                .btn-group {
                    .btn {
                        border-radius: 0px;
                        background: #eee;
                        border: 0px;
                    }
                }
            }
        }

        @media (max-width: @mobileMaxWidth) {
            overflow-y: auto;

            .body-inner {
                position: static;
                padding-bottom: 20px;
                min-height: calc(~"100% - 57px")
            }
        }
    }

    &.with-summary {
        @media (min-width: @sidebar-breakpoint) {
            .book-body {
                left: 250px;
            }
        }
    }

    &.without-animation {
        .book-body {
            .transition(none) !important;
        }
    }
    &.color-theme-1{
        .book-body {
            color: @page-color-1;
            background: @body-background-1;
            .page-wrapper {
                .page-inner {
                    section{
                        background: @page-background-1;
                    }
                }
            }
        }
    }
    &.color-theme-2{
        .book-body {
            color: @page-color-2;
            background: @body-background-2;
            .page-wrapper {
                .page-inner {
                    section{
                        background: @page-background-2;
                    }
                }
            }
        }
    }

    &.font-size-0 {
        .book-body {
            font-size:@s-font-size;
        }
    }
    &.font-size-1 {
        .book-body {
            font-size:@m-font-size;
        }
    }
    &.font-size-2 {
        .book-body {
            font-size:@l-font-size;
        }
    }
    &.font-size-3 {
        .book-body {
            font-size:@xl-font-size;
        }
    }
    &.font-size-4 {
        .book-body {
            font-size:@xxl-font-size;
        }
    }

    &.font-family-0{
        font-family: @font-family-serif;
    }
    &.font-family-1{
        font-family: @font-family-sans;
    }
}