]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_pages.scss
Merge branch 'diff' of git://github.com/younes0/BookStack into younes0-diff
[bookstack] / resources / assets / sass / _pages.scss
1 #page-show {
2   >.row .col-md-9 {
3     z-index: 2;
4   }
5   >.row .col-md-3 {
6     z-index: 1;
7   }
8 }
9
10 .page-editor {
11   display: flex;
12   flex-direction: column;
13   align-items: stretch;
14   .faded-small {
15     height: auto;
16   }
17   .edit-area {
18     flex: 1;
19     flex-direction: column;
20   }
21 }
22
23 .draft-notification {
24   pointer-events: none;
25   transform: scale(0);
26   transition: transform ease-in-out 120ms;
27   transform-origin: 50% 50%;
28   &.visible {
29     transform: scale(1);
30   }
31 }
32
33 .page-style.editor {
34   padding: 0 !important;
35 }
36
37 .page-content {
38   max-width: 840px;
39   overflow-wrap: break-word;
40   .align-left {
41     text-align: left;
42   }
43   img.align-left, table.align-left {
44     float: left !important;
45     margin: $-xs $-s $-xs 0;
46   }
47   .align-right {
48     float: right !important;
49   }
50   img.align-right, table.align-right {
51     text-align: right;
52     margin: $-xs 0 $-xs $-s;
53   }
54   .align-center {
55     text-align: center;
56   }
57   img {
58     max-width: 100%;
59     height:auto;
60   }
61   h1, h2, h3, h4, h5, h6, pre {
62     clear: left;
63   }
64   hr {
65     clear: both;
66     margin: $-m 0;
67   }
68   table {
69     hyphens: auto;
70     table-layout: fixed;
71     max-width: 100%;
72     height: auto !important;
73   }
74
75   // diffs
76   ins,
77   del {
78     text-decoration: none;
79   }
80   ins {
81     background: #dbffdb;
82   }
83   del {
84     background: #FFECEC;
85   }
86 }
87
88 // Page content pointers
89 .pointer-container {
90   position: relative;
91   display: none;
92   left: 0;
93   z-index: 10;
94 }
95 .pointer {
96   border: 1px solid #CCC;
97   display: inline-block;
98   padding: $-s $-s;
99   border-radius: 4px;
100   box-shadow: 0 0 8px 1px rgba(212, 209, 209, 0.35);
101   position: absolute;
102   top: -60px;
103   background-color:#FFF;
104   width: 272px;
105   z-index: 55;
106   &:before {
107     position: absolute;
108     left: 50%;
109     bottom: -9px;
110     width: 16px;
111     height: 16px;
112     margin-left: -8px;
113     content: '';
114     display: block;
115     background-color:#FFF;
116     transform: rotate(45deg);
117     transform-origin: 50% 50%;
118     border-bottom: 1px solid #CCC;
119     border-right: 1px solid #CCC;
120     z-index: 56;
121   }
122   input {
123     background-color: #FFF;
124     border: 1px solid #DDD;
125     color: #666;
126     width: 172px;
127     z-index: 40;
128   }
129   input, button {
130     position: relative;
131     border-radius: 0;
132     height: 28px;
133     font-size: 12px;
134     vertical-align: top;
135   }
136   > i {
137     color: #888;
138     font-size: 18px;
139     padding-top: 4px;
140   }
141   .button {
142     line-height: 1;
143     margin: 0 0 0 -4px;
144     box-shadow: none;
145   }
146 }
147
148 // Attribute form
149 .floating-toolbox {
150   background-color: #FFF;
151   border: 1px solid #DDD;
152   right: $-xl*2;
153   z-index: 99;
154   width: 48px;
155   overflow: hidden;
156   align-items: stretch;
157   flex-direction: row;
158   display: flex;
159   transition: width ease-in-out 180ms;
160   margin-top: -1px;
161   min-height: 0px;
162   &.open {
163     width: 480px;
164   }
165   [toolbox-toggle] i {
166     transition: transform ease-in-out 180ms;
167   }
168   [toolbox-toggle] {
169     transition: background-color ease-in-out 180ms;
170   }
171   &.open [toolbox-toggle] {
172     background-color: rgba(255, 0, 0, 0.29);
173   }
174   &.open [toolbox-toggle] i {
175     transform: rotate(180deg);
176   }
177   > div {
178     flex: 1;
179     position: relative;
180   }
181   .tabs {
182     display: block;
183     border-right: 1px solid #DDD;
184     width: 48px;
185     flex: 0 1 auto;
186   }
187   .tabs i {
188     color: rgba(0, 0, 0, 0.5);
189     padding: 0;
190     margin: 0;
191   }
192   .tabs > span {
193     display: block;
194     cursor: pointer;
195     padding: $-s $-m;
196     font-size: 13.5px;
197     line-height: 1.6;
198     border-bottom: 1px solid rgba(255, 255, 255, 0.3);
199   }
200   &.open .tabs > span.active {
201     color: #444;
202     background-color: rgba(0, 0, 0, 0.1);
203   }
204   div[tab-content] {
205     padding-bottom: 45px;
206     display: flex;
207     flex: 1;
208     flex-direction: column;
209     min-height: 0px;
210     overflow-y: scroll;
211   }
212   div[tab-content] .padded {
213     flex: 1;
214     padding-top: 0;
215   }
216   h4 {
217     font-size: 24px;
218     margin: $-m 0 0 0;
219     padding: 0 $-l $-s $-l;
220   }
221   .tags input {
222     max-width: 100%;
223     width: 100%;
224     min-width: 50px;
225   }
226   .tags td {
227     padding-right: $-s;
228     padding-top: $-s;
229     position: relative;
230   }
231   button.pos {
232     position: absolute;
233     bottom: 0;
234     display: block;
235     width: 100%;
236     padding: $-s;
237     height: 45px;
238     border: 0;
239     margin: 0;
240     box-shadow: none;
241     border-radius: 0;
242     &:hover{
243       box-shadow: none;
244     }
245   }
246   .handle {
247     user-select: none;
248     cursor: move;
249     color: #999;
250   }
251   form {
252     display: flex;
253     flex: 1;
254     flex-direction: column;
255     overflow-y: scroll;
256   }
257 }
258
259 [tab-content] {
260   display: none;
261 }
262
263 .tag-display {
264   margin: $-xl $-m;
265   border: 1px solid #DDD;
266   min-width: 180px;
267   max-width: 320px;
268   opacity: 0.7;
269   z-index: 5;
270   position: relative;
271   table {
272     width: 100%;
273     margin: 0;
274     padding: 0;
275   }
276   .heading th {
277     padding: $-xs $-s;
278     color: #333;
279     font-weight: 400;
280   }
281   td {
282     border: 0;
283     border-bottom: 1px solid #DDD;
284     padding: $-xs $-s;
285     color: #444;
286   }
287   .tag-value {
288     color: #888;
289   }
290   tr:last-child td {
291     border-bottom: none;
292   }
293   .tag {
294     padding: $-s;
295   }
296 }
297
298 .suggestion-box {
299   position: absolute;
300   background-color: #FFF;
301   border: 1px solid #BBB;
302   box-shadow: $bs-light;
303   list-style: none;
304   z-index: 100;
305   padding: 0;
306   margin: 0;
307   border-radius: 3px;
308   li {
309     display: block;
310     padding: $-xs $-s;
311     border-bottom: 1px solid #DDD;
312     &:last-child {
313       border-bottom: 0;
314     }
315     &.active {
316       background-color: #EEE;
317     }
318   }
319 }