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