]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_lists.scss
Added social sign in
[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: block;
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 }
36 .chapter-toggle {
37   cursor: pointer;
38   margin: 0 0 $-l 0;
39   transition: all ease-in-out 180ms;
40   i {
41     transition: all ease-in-out 180ms;
42     transform: rotate(0deg);
43     transform-origin: 25% 50%;
44   }
45   &.open {
46     margin-bottom: 0;
47   }
48   &.open i {
49     transform: rotate(90deg);
50   }
51 }
52
53 .page-nav-list {
54   $nav-indent: $-s;
55   margin-left: 2px;
56   list-style: none;
57   li {
58     //border-left: 1px solid rgba(0, 0, 0, 0.1);
59     padding-left: $-xs;
60     border-left: 2px solid #888;
61     margin-bottom: 4px;
62   }
63   li a {
64     color: #555;
65   }
66   .nav-H2 {
67     margin-left: $nav-indent;
68     font-size: 0.95em;
69   }
70   .nav-H3 {
71     margin-left: $nav-indent*2;
72     font-size: 0.90em
73   }
74   .nav-H4 {
75     margin-left: $nav-indent*3;
76     font-size: 0.85em
77   }
78   .nav-H5 {
79     margin-left: $nav-indent*4;
80     font-size: 0.80em
81   }
82   .nav-H6 {
83     margin-left: $nav-indent*5;
84     font-size: 0.75em
85   }
86 }
87
88 // Sidebar list
89 .book-tree {
90   margin-top: $-xl;
91 }
92 .book-tree h4 {
93   padding: $-m $-s 0 $-s;
94   i {
95     padding-right: $-s;
96   }
97 }
98 .book-tree .sidebar-page-list {
99   list-style: none;
100   margin: 0;
101   margin-top: $-xs;
102   border-left: 5px solid $color-book;
103   li a {
104     display: block;
105     border-bottom: none;
106     padding-left: $-s;
107     padding: $-xs 0 $-xs $-s;
108     &:hover {
109       background-color: rgba(255, 255, 255, 0.2);
110       text-decoration: none;
111     }
112   }
113   li, a {
114     display: block;
115   }
116   a.bold {
117     color: #EEE !important;
118   }
119   ul {
120     list-style: none;
121     margin: 0;
122   }
123   .book {
124     color: $color-book !important;
125     &.selected {
126       background-color: rgba($color-book, 0.29);
127     }
128   }
129   .chapter {
130     color: $color-chapter !important;
131     &.selected {
132       background-color: rgba($color-chapter, 0.12);
133     }
134   }
135   .list-item-chapter {
136     border-left: 5px solid $color-chapter;
137     margin: 10px 10px;
138     display: block;
139   }
140   .list-item-page {
141     border-bottom: none;
142   }
143   .page {
144     color: $color-page !important;
145     border-left: 5px solid $color-page;
146     margin: 10px 10px;
147     border-bottom: none;
148     &.selected {
149       background-color: rgba($color-page, 0.1);
150     }
151   }
152 }
153
154 // Sortable Lists
155 .sortable-page-list, .sortable-page-list ul {
156   list-style: none;
157 }
158 .sortable-page-list {
159   margin-left: 0;
160   box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.1);
161   ul {
162     margin-bottom: 0;
163     margin-top: 0;
164     box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.1);
165   }
166   li {
167     border: 1px solid #DDD;
168     padding: $-xs $-s;
169     margin-top: -1px;
170     min-height: 38px;
171     &.text-chapter {
172       border-left: 2px solid $color-chapter;
173     }
174     &.text-page {
175       border-left: 2px solid $color-page;
176     }
177   }
178   li:first-child {
179     margin-top: $-xs;
180   }
181 }
182 .sortable-page-list li.placeholder {
183   position: relative;
184 }
185 .sortable-page-list li.placeholder:before {
186   position: absolute;
187 }
188
189
190 .activity-list-item {
191   padding: $-s 0;
192   color: #888;
193   border-bottom: 1px solid #EEE;
194   font-size: 0.9em;
195   .left {
196     float: left;
197   }
198   .left + .right {
199     margin-left: 30px + $-s;
200   }
201 }