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