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