]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_pages.scss
update japanese 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   h4 {
214     font-size: 24px;
215     margin: $-m 0 0 0;
216     padding: 0 $-l $-s $-l;
217   }
218   .tags input {
219     max-width: 100%;
220     width: 100%;
221     min-width: 50px;
222   }
223   .tags td, .tag-table > div > div > div {
224     padding-right: $-s;
225     padding-top: $-s;
226     position: relative;
227   }
228   .handle {
229     user-select: none;
230     cursor: move;
231     fill: #999;
232   }
233   form {
234     display: flex;
235     flex: 1;
236     flex-direction: column;
237     overflow-y: scroll;
238   }
239   table td, table th {
240     overflow: visible;
241   }
242 }
243
244 [toolbox-tab-content] {
245   display: none;
246 }
247
248 .tag-display {
249   position: relative;
250   table {
251     width: 100%;
252     margin: 0;
253     padding: 0;
254   }
255   tr:first-child td {
256     padding-top: 0;
257   }
258   .heading th {
259     padding: $-xs $-s;
260     color: rgba(100, 100, 100, 0.7);
261     border: 0;
262     font-weight: 400;
263   }
264   td {
265     border: 0;
266     border-bottom: 1px solid #EEE;
267     padding: $-xs $-s;
268     color: #444;
269   }
270   tr td:first-child {
271     padding-left:0;
272   }
273   .tag-value {
274     color: #888;
275   }
276   tr:last-child td {
277     border-bottom: none;
278   }
279   .tag {
280     padding: $-s;
281   }
282 }
283
284 .suggestion-box {
285   position: absolute;
286   background-color: #FFF;
287   border: 1px solid #BBB;
288   box-shadow: $bs-light;
289   list-style: none;
290   z-index: 100;
291   padding: 0;
292   margin: 0;
293   border-radius: 3px;
294   li {
295     display: block;
296     padding: $-xs $-s;
297     border-bottom: 1px solid #DDD;
298     &:last-child {
299       border-bottom: 0;
300     }
301     &.active {
302       background-color: #EEE;
303     }
304   }
305 }
306
307 .comment-editor .CodeMirror, .comment-editor .CodeMirror-scroll {
308   min-height: 175px;
309 }