]> BookStack Code Mirror - bookstack/blob - resources/sass/styles.scss
Add git to the apt-get install packages.
[bookstack] / resources / sass / styles.scss
1 @import "reset";
2 @import "variables";
3 @import "mixins";
4 @import "spacing";
5 @import "html";
6 @import "text";
7 @import "colors";
8 @import "layout";
9 @import "blocks";
10 @import "buttons";
11 @import "tables";
12 @import "forms";
13 @import "animations";
14 @import "tinymce";
15 @import "codemirror";
16 @import "components";
17 @import "header";
18 @import "lists";
19 @import "pages";
20
21 [v-cloak] {
22   display: none; opacity: 0;
23   animation-name: none !important;
24 }
25
26 // Jquery Sortable Styles
27 .dragged {
28   position: absolute;
29   opacity: 0.5;
30   z-index: 2000;
31 }
32 body.dragging, body.dragging * {
33   cursor: move !important;
34 }
35
36 // User Avatar Images
37 .avatar {
38   border-radius: 100%;
39   background-color: #EEE;
40   width: 30px;
41   height: 30px;
42   &.med {
43     width: 40px;
44     height: 40px;
45   }
46   &.large {
47     width: 80px;
48     height: 80px;
49   }
50   &.huge {
51     width: 120px;
52     height: 120px;
53   }
54   &.square {
55     border-radius: 3px;
56   }
57 }
58
59 // Loading icon
60 $loadingSize: 10px;
61 .loading-container {
62   position: relative;
63   display: block;
64   margin: $-xl auto;
65   > div {
66     width: $loadingSize;
67     height: $loadingSize;
68     border-radius: $loadingSize;
69     display: inline-block;
70     vertical-align: top;
71     transform: translate3d(-10px, 0, 0);
72     margin-top: $-xs;
73     animation-name: loadingBob;
74     animation-duration: 1.4s;
75     animation-iteration-count: infinite;
76     animation-timing-function: cubic-bezier(.62, .28, .23, .99);
77     margin-right: 4px;
78     background-color: var(--color-page);
79     animation-delay: 0.3s;
80   }
81   > div:first-child {
82       left: -($loadingSize+$-xs);
83       background-color: var(--color-book);
84       animation-delay: 0s;
85   }
86   > div:last-of-type {
87     left: $loadingSize+$-xs;
88     background-color: var(--color-chapter);
89     animation-delay: 0.6s;
90   }
91   > span {
92     margin-left: $-s;
93     font-style: italic;
94     color: #888;
95     vertical-align: top;
96   }
97 }
98
99 // Back to top link
100 $btt-size: 40px;
101 [back-to-top] {
102   background-color: var(--color-primary);
103   position: fixed;
104   bottom: $-m;
105   right: $-l;
106   padding: 5px 7px;
107   cursor: pointer;
108   color: #FFF;
109   fill: #FFF;
110   svg {
111     width: $btt-size / 1.5;
112     height: $btt-size / 1.5;
113     margin-right: 4px;
114   }
115   width: $btt-size;
116   height: $btt-size;
117   border-radius: $btt-size;
118   transition: all ease-in-out 180ms;
119   opacity: 0;
120   z-index: 999;
121   overflow: hidden;
122   &:hover {
123     width: $btt-size*3.4;
124     opacity: 1 !important;
125   }
126   .inner {
127     width: $btt-size*3.4;
128   }
129   span {
130     position: relative;
131     vertical-align: top;
132     line-height: 2;
133   }
134 }
135
136 .contained-search-box {
137   display: flex;
138   input, button {
139     border-radius: 0;
140     border: 1px solid #DDD;
141     margin-left: -1px;
142   }
143   input {
144     flex: 5;
145     padding: $-xs $-s;
146     &:focus, &:active {
147       outline: 0;
148     }
149   }
150   button {
151     width: 60px;
152   }
153   button i {
154     padding: 0;
155   }
156   button.cancel.active {
157     background-color: $negative;
158     color: #EEE;
159   }
160 }
161
162 .entity-selector {
163   border: 1px solid #DDD;
164   border-radius: 3px;
165   overflow: hidden;
166   font-size: 0.8em;
167   input[type="text"] {
168     width: 100%;
169     display: block;
170     border-radius: 0;
171     border: 0;
172     border-bottom: 1px solid #DDD;
173     font-size: 16px;
174     padding: $-s $-m;
175   }
176   .entity-list {
177     overflow-y: scroll;
178     height: 400px;
179     background-color: #EEEEEE;
180     margin-right: 0;
181     margin-left: 0;
182   }
183   .entity-list-item {
184     background-color: #FFF;
185   }
186   .entity-list-item p {
187     margin-bottom: 0;
188   }
189   .entity-list-item.selected {
190     background-color: rgba(0, 0, 0, 0.05) !important;
191   }
192   .loading {
193     height: 400px;
194     padding-top: $-l;
195   }
196   .entity-selector-add button {
197     margin: 0;
198     display: block;
199     width: 100%;
200     border: 0;
201     border-top: 1px solid #DDD;
202   }
203   &.compact {
204     font-size: 10px;
205     .entity-item-snippet {
206       display: none;
207     }
208   }
209 }
210
211 .scroll-box {
212   max-height: 250px;
213   overflow-y: scroll;
214   border: 1px solid #DDD;
215   border-radius: 3px;
216   .scroll-box-item {
217     padding: $-xs $-m;
218     border-bottom: 1px solid #DDD;
219     border-top: 1px solid #DDD;
220     margin-top: -1px;
221     &:last-child {
222       border-bottom: 0;
223     }
224   }
225 }
226
227 .scroll-box[data-instruction]:before {
228   content: attr(data-instruction);
229   padding: $-xs $-m;
230   border-bottom: 1px solid #DDD;
231   display: block;
232   font-size: 0.75rem;
233   color: #666;
234 }
235
236 .fullscreen {
237   border:0;
238   position:fixed;
239   top:0;
240   left:0;
241   right:0;
242   bottom:0;
243   width:100%;
244   height:100%;
245   z-index: 150;
246 }
247
248 .list-sort-container {
249   display: inline-block;
250   form {
251     display: inline-block;
252   }
253   .list-sort {
254     display: inline-grid;
255     margin-left: $-s;
256     grid-template-columns: 120px 40px;
257     border: 2px solid #DDD;
258     border-radius: 4px;
259   }
260   .list-sort-label {
261     font-weight: bold;
262     display: inline-block;
263     color: #555;
264   }
265   .list-sort-type {
266     text-align: left;
267   }
268   .list-sort-type, .list-sort-dir {
269     padding: $-xs $-s;
270     cursor: pointer;
271   }
272   .list-sort-dir {
273     border-left: 2px solid #DDD;
274     fill: #888;
275     .svg-icon {
276       transition: transform ease-in-out 120ms;
277     }
278     &:hover .svg-icon {
279       transform: rotate(180deg);
280     }
281   }
282 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.