]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_lists.scss
09707ebc42196c75974872130751638e78ae628e
[bookstack] / resources / assets / sass / _lists.scss
1 .page-list {
2   h3 {
3     margin: $-l 0 $-m 0;
4   }
5   a.chapter {
6     color: $color-chapter;
7   }
8   .inset-list {
9     display: none;
10     overflow: hidden;
11     // padding-left: $-m;
12     margin-bottom: $-l;
13   }
14   h4 {
15     display: block;
16     margin: $-s 0 0 0;
17     border-left: 5px solid $color-page;
18     padding: $-xs 0 $-xs $-m;
19   }
20   hr {
21     margin-top: 0;
22   }
23   .page, .chapter, .book {
24     padding-left: $-l;
25   }
26   .page {
27     border-left: 5px solid $color-page;
28   }
29   .chapter {
30     border-left: 5px solid $color-chapter;
31   }
32   .book {
33     border-left: 5px solid $color-book;
34   }
35   .meta {
36     margin-top: -$-m;
37     font-size: 0.95em;
38   }
39   .meta span {
40     margin-right: $-s;
41   }
42 }
43 .chapter-toggle {
44   cursor: pointer;
45   margin: 0 0 $-l 0;
46   transition: all ease-in-out 180ms;
47   user-select: none;
48   i.zmdi-caret-right {
49     transition: all ease-in-out 180ms;
50     transform: rotate(0deg);
51     transform-origin: 25% 50%;
52   }
53   &.open {
54     margin-bottom: 0;
55   }
56   &.open i.zmdi-caret-right {
57     transform: rotate(90deg);
58   }
59 }
60
61 .page-nav-list {
62   $nav-indent: $-s;
63   margin-left: 2px;
64   list-style: none;
65   li {
66     //border-left: 1px solid rgba(0, 0, 0, 0.1);
67     padding-left: $-xs;
68     border-left: 2px solid #888;
69     margin-bottom: 4px;
70   }
71   li a {
72     color: #555;
73   }
74   .nav-H2 {
75     margin-left: $nav-indent;
76     font-size: 0.95em;
77   }
78   .nav-H3 {
79     margin-left: $nav-indent*2;
80     font-size: 0.90em
81   }
82   .nav-H4 {
83     margin-left: $nav-indent*3;
84     font-size: 0.85em
85   }
86   .nav-H5 {
87     margin-left: $nav-indent*4;
88     font-size: 0.80em
89   }
90   .nav-H6 {
91     margin-left: $nav-indent*5;
92     font-size: 0.75em
93   }
94 }
95
96 // Sidebar list
97 .book-tree {
98   padding: $-l 0 0 0;
99   position: relative;
100   right: 0;
101   top: 0;
102   transition: ease-in-out 240ms;
103   transition-property: right, border;
104   border-left: 0px solid #FFF;
105   background-color: #FFF;
106   &.fixed {
107     position: fixed;
108     top: 0;
109     padding-left: $-l;
110     padding-right: $-l + 15;
111     width: 30%;
112     right: -15px;
113     height: 100%;
114     overflow-y: scroll;
115     -ms-overflow-style: none;
116     //background-color: $primary-faded;
117     border-left: 1px solid #DDD;
118     &::-webkit-scrollbar { width: 0 !important }
119   }
120 }
121 .book-tree h4 {
122   padding: $-m $-s 0 $-s;
123   i {
124     padding-right: $-s;
125   }
126 }
127 .book-tree .sidebar-page-list {
128   list-style: none;
129   margin: $-xs 0 0;
130   padding-left: 0;
131   border-left: 5px solid $color-book;
132   li a {
133     display: block;
134     border-bottom: none;
135     padding: $-xs 0 $-xs $-s;
136     &:hover {
137       text-decoration: none;
138     }
139   }
140   li a i {
141     padding-right: $-xs + 2px;
142   }
143   li, a {
144     display: block;
145   }
146   a.bold {
147     color: #EEE !important;
148   }
149   ul {
150     list-style: none;
151     margin: 0;
152   }
153   .book {
154     color: $color-book !important;
155     &.selected {
156       background-color: rgba($color-book, 0.29);
157     }
158   }
159   .chapter {
160     color: $color-chapter !important;
161     &.selected {
162       background-color: rgba($color-chapter, 0.12);
163     }
164   }
165   .chapter-toggle {
166     padding-left: $-s;
167   }
168   .list-item-chapter {
169     border-left: 5px solid $color-chapter;
170     margin: 10px 10px;
171     display: block;
172   }
173   .list-item-page {
174     border-bottom: none;
175     border-left: 5px solid $color-page;
176     margin: 10px 10px;
177   }
178   .page {
179     color: $color-page !important;
180     border-bottom: none;
181     &.selected {
182       background-color: rgba($color-page, 0.1);
183     }
184   }
185   .sub-menu {
186     display: none;
187     padding-left: 0;
188   }
189   .sub-menu.open {
190     display: block;
191   }
192 }
193
194 // Sortable Lists
195 .sortable-page-list, .sortable-page-list ul {
196   list-style: none;
197   background-color: #FFF;
198 }
199 .sort-box {
200   margin-bottom: $-m;
201   padding: 0 $-l 0 $-l;
202   border-left: 4px solid $color-book;
203 }
204 .sortable-page-list {
205   margin-left: 0;
206   > ul {
207     margin-left: 0;
208   }
209   ul {
210     margin-bottom: 0;
211     margin-top: 0;
212     box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.1);
213   }
214   li {
215     border: 1px solid #DDD;
216     padding: $-xs $-s;
217     margin-top: -1px;
218     min-height: 38px;
219     &.text-chapter {
220       border-left: 2px solid $color-chapter;
221     }
222     &.text-page {
223       border-left: 2px solid $color-page;
224     }
225   }
226   li:first-child {
227     margin-top: $-xs;
228   }
229 }
230 .sortable-page-list li.placeholder {
231   position: relative;
232 }
233 .sortable-page-list li.placeholder:before {
234   position: absolute;
235 }
236
237
238 .activity-list-item {
239   padding: $-s 0;
240   color: #888;
241   border-bottom: 1px solid #EEE;
242   font-size: 0.9em;
243   .left {
244     float: left;
245   }
246   .left + .right {
247     margin-left: 30px + $-s;
248   }
249 }
250
251 ul.pagination {
252   display: inline-block;
253   list-style: none;
254   margin: $-m 0;
255   li {
256     float: left;
257   }
258   li:first-child {
259     a, span {
260       border-radius: 3px 0 0 3px;
261     }
262   }
263   li:last-child {
264     a, span {
265       border-radius: 0 3px 3px 0;
266     }
267   }
268   a, span {
269     display: block;
270     padding: $-xxs $-s;
271     border: 1px solid #CCC;
272     margin-left: -1px;
273     color: #888;
274     user-select: none;
275     &.disabled {
276       cursor: not-allowed;
277     }
278   }
279   li.active span {
280     background-color: rgba($primary, 0.8);
281     color: #EEE;
282     border-color: rgba($primary, 0.8);
283   }
284   a {
285     color: $primary;
286   }
287 }
288
289 .entity-list {
290   >div {
291     padding: $-m 0;
292   }
293   h3 {
294     margin: 0;
295   }
296   p {
297     margin: $-xs 0 0 0;
298   }
299   hr {
300     margin: 0;
301   }
302   .text-small.text-muted {
303     color: #AAA;
304     font-size: 0.75em;
305     margin-top: $-xs;
306   }
307 }
308 .entity-list.compact {
309   font-size: 0.6em;
310   h3, a {
311     line-height: 1.2;
312   }
313   p {
314     display: none;
315     font-size: $fs-m * 0.8;
316     padding-top: $-xs;
317     margin: 0;
318   }
319   hr {
320     margin: 0;
321   }
322 }
323
324 .dropdown-container {
325   display: inline-block;
326   vertical-align: top;
327   position: relative;
328 }
329
330 .dropdown-container ul {
331   display: none;
332   position: absolute;
333   z-index: 999;
334   top: 0;
335   list-style: none;
336   right: 0;
337   margin: $-m 0;
338   background-color: #FFFFFF;
339   box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
340   border-radius: 1px;
341   border: 1px solid #EEE;
342   min-width: 180px;
343   padding: $-xs 0;
344   color: #555;
345   text-align: left !important;
346   &.wide {
347     min-width: 220px;
348   }
349   .text-muted {
350     color: #999;
351   }
352   a {
353     display: block;
354     padding: $-xs $-m;
355     color: #555;
356     &:hover {
357       text-decoration: none;
358       background-color: #EEE;
359     }
360     i {
361       margin-right: $-m;
362       padding-right: 0;
363       display: inline;
364       width: 22px;
365     }
366   }
367   li.border-bottom {
368     border-bottom: 1px solid #DDD;
369   }
370 }