]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_pages.scss
Added initial translation into German (formal)
[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   width: 48px;
154   overflow: hidden;
155   align-items: stretch;
156   flex-direction: row;
157   display: flex;
158   transition: width ease-in-out 180ms;
159   margin-top: -1px;
160   min-height: 0px;
161   &.open {
162     width: 480px;
163   }
164   [toolbox-toggle] i {
165     transition: transform ease-in-out 180ms;
166   }
167   [toolbox-toggle] {
168     transition: background-color ease-in-out 180ms;
169   }
170   &.open [toolbox-toggle] {
171     background-color: rgba(255, 0, 0, 0.29);
172   }
173   &.open [toolbox-toggle] i {
174     transform: rotate(180deg);
175   }
176   > div {
177     flex: 1;
178     position: relative;
179   }
180   .tabs {
181     display: block;
182     border-right: 1px solid #DDD;
183     width: 48px;
184     flex: 0 1 auto;
185   }
186   .tabs i {
187     color: rgba(0, 0, 0, 0.5);
188     padding: 0;
189     margin: 0;
190   }
191   .tabs > span {
192     display: block;
193     cursor: pointer;
194     padding: $-s $-m;
195     font-size: 13.5px;
196     line-height: 1.6;
197     border-bottom: 1px solid rgba(255, 255, 255, 0.3);
198   }
199   &.open .tabs > span.active {
200     color: #444;
201     background-color: rgba(0, 0, 0, 0.1);
202   }
203   div[toolbox-tab-content] {
204     padding-bottom: 45px;
205     display: flex;
206     flex: 1;
207     flex-direction: column;
208     min-height: 0px;
209     overflow-y: scroll;
210   }
211   div[toolbox-tab-content] .padded {
212     flex: 1;
213     padding-top: 0;
214   }
215   h4 {
216     font-size: 24px;
217     margin: $-m 0 0 0;
218     padding: 0 $-l $-s $-l;
219   }
220   .tags input {
221     max-width: 100%;
222     width: 100%;
223     min-width: 50px;
224   }
225   .tags td {
226     padding-right: $-s;
227     padding-top: $-s;
228     position: relative;
229   }
230   .handle {
231     user-select: none;
232     cursor: move;
233     color: #999;
234   }
235   form {
236     display: flex;
237     flex: 1;
238     flex-direction: column;
239     overflow-y: scroll;
240   }
241 }
242
243 [toolbox-tab-content] {
244   display: none;
245 }
246
247 .tag-display {
248   margin: $-xl $-m;
249   border: 1px solid #DDD;
250   min-width: 180px;
251   max-width: 320px;
252   opacity: 0.7;
253   z-index: 5;
254   position: relative;
255   table {
256     width: 100%;
257     margin: 0;
258     padding: 0;
259   }
260   .heading th {
261     padding: $-xs $-s;
262     color: #333;
263     font-weight: 400;
264   }
265   td {
266     border: 0;
267     border-bottom: 1px solid #DDD;
268     padding: $-xs $-s;
269     color: #444;
270   }
271   .tag-value {
272     color: #888;
273   }
274   tr:last-child td {
275     border-bottom: none;
276   }
277   .tag {
278     padding: $-s;
279   }
280 }
281
282 .suggestion-box {
283   position: absolute;
284   background-color: #FFF;
285   border: 1px solid #BBB;
286   box-shadow: $bs-light;
287   list-style: none;
288   z-index: 100;
289   padding: 0;
290   margin: 0;
291   border-radius: 3px;
292   li {
293     display: block;
294     padding: $-xs $-s;
295     border-bottom: 1px solid #DDD;
296     &:last-child {
297       border-bottom: 0;
298     }
299     &.active {
300       background-color: #EEE;
301     }
302   }
303 }