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