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