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