summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets/website/summary.less
blob: 50aeebd0b4edfd522c132f985e631f85578fe6de (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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
.book {
    .book-summary {
        font-family: @font-family-sans;

        position: absolute;
        top: 0px;
        left: -@sidebar-width;
        bottom: 0px;
        z-index: 1;

        width: @sidebar-width;
        color: @sidebar-color;
        background: @sidebar-background;
        border-right: @sidebar-border-right;

        .transition(left @sidebar-transition-duration ease);

        .book-search {
            padding: @sidebar-search-padding;

            background: @sidebar-search-background;

            position: absolute;
            top: -@header-height;
            left: 0px;
            right: 0px;

            .transition(top 0.5s ease);

            input, input:focus, input:hover {
                width: 100%;
                background: @sidebar-search-input-background;
                border: 1px solid @sidebar-search-input-border-color;
                .box-shadow(none);
                outline: none;
                line-height: 22px;
                padding: 7px 4px;
                color: inherit;
            }
        }

        ul.summary {
            position: absolute;
            top: 0px;
            left: 0px;
            right: 0px;
            bottom: 0px;

            overflow-y: auto;

            list-style: none;
            margin: 0px;
            padding: 0px;

            .transition(top 0.5s ease);

            li {
                list-style: none;

                &.divider {
                    height: 1px;
                    margin: 7px 0;
                    overflow: hidden;
                    background: @sidebar-divider-color;
                }

                i.fa-check {
                    display: none;
                    position: absolute;
                    right: 9px;
                    top: 16px;
                    font-size: 9px;
                    color: @sidebar-icon-color;
                }

                &.done {
                    > a {
                        color: @sidebar-link-completed;
                        font-weight: @sidebar-link-completed-weight;

                        i {
                            display: inline;
                        }
                    }
                }

                a, span {
                    display: block;
                    padding: 10px 15px;
                    border-bottom: none;
                    color: @sidebar-link-color;
                    background: @sidebar-link-background;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    white-space: nowrap;
                    position: relative;
                }

                span {
                    cursor: not-allowed;
                    .opacity(0.3);
                }

                &.active > a, a:hover {
                    color: @sidebar-link-hover-color;
                    background: @sidebar-link-hover-background;
                    text-decoration: none;
                }

                ul {
                    padding-left: @sidebar-nested-padding;
                }
            }
        }

        @media (max-width: @sidebar-breakpoint) {
            width: calc(~"100% - 60px");
            bottom: 0px;
            left: -100%;
        }
    }

    &.with-summary {
        .book-summary {
            left: 0px;
        }
    }

    &.without-animation {
        .book-summary {
            .transition(none) !important;
        }
    }

    &.with-search {
        .book-summary {
            .book-search {
                top: 0px;
            }

            ul.summary {
                top: @header-height;
            }
        }
    }
}

/*
 * Theme 1
 */
.book.color-theme-1 {
    .book-summary {
        color: @sidebar-color-1;
        background: @sidebar-background-1;
        border-right: @sidebar-border-right-1;

        .book-search {
            background: @sidebar-search-background-1;

            input, input:focus {
                border: 1px solid @sidebar-search-input-border-color-1;
            }
        }

        ul.summary {
            li {
                &.divider {
                    background: @sidebar-divider-color-1;
                    box-shadow: none;
                }

                i.fa-check {
                    color: @sidebar-icon-color-1;
                }

                &.done > a {
                        color: @sidebar-link-completed-1;
                }

                a, span {
                    color: @sidebar-link-color-1;
                    background: @sidebar-link-background-1;
                    font-weight: @sidebar-link-weight-1;
                }

                &.active > a, a:hover {
                    color: @sidebar-link-hover-color-1;
                    background: @sidebar-link-hover-background-1;
                    font-weight: @sidebar-link-hover-weight-1;
                }
            }
        }
    }
}

/*
 * Theme 2
 */
.book.color-theme-2{
    .book-summary {
        color: @sidebar-color-2;
        background: @sidebar-background-2;
        border-right: @sidebar-border-right-2;

        .book-search {
            background: @sidebar-search-background-2;

            input, input:focus {
                border: 1px solid @sidebar-search-input-border-color-2;
            }
        }

        ul.summary {
            li {
                &.divider {
                    background: @sidebar-divider-color-2;
                    box-shadow: none;
                }

                i.fa-check {
                    color: @sidebar-icon-color-2;
                }

                &.done > a {
                        color: @sidebar-link-completed-2;
                }

                a, span {
                    color: @sidebar-link-color-2;
                    background: @sidebar-link-background-2;
                    font-weight: @sidebar-link-weight-2;
                }

                &.active > a, a:hover {
                    color: @sidebar-link-hover-color-2;
                    background: @sidebar-link-hover-background-2;
                    font-weight: @sidebar-link-hover-weight-2;
                }
            }
        }
    }
}