]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_pages.scss
Cleaned up vuejs components and added image-picker deafult image
[bookstack] / resources / assets / sass / _pages.scss
1 .page-editor {
2   display: flex;
3   flex-direction: column;
4   align-items: stretch;
5   .faded-small {
6     height: auto;
7   }
8   .edit-area {
9     flex: 1;
10     flex-direction: column;
11   }
12 }
13
14 .page-style.editor {
15   padding: 0 !important;
16 }
17
18 .page-content {
19   max-width: 840px;
20   overflow-wrap: break-word;
21   .align-left {
22     float: left !important;
23     text-align: left;
24     margin: $-xs $-s $-xs 0;
25   }
26   .align-right {
27     float: right !important;
28     text-align: right;
29     margin: $-xs 0 $-xs $-s;
30   }
31   .align-center {
32     text-align: center;
33   }
34   img {
35     max-width: 100%;
36     height:auto;
37   }
38   h1, h2, h3, h4, h5, h6 {
39     clear: both;
40   }
41   hr {
42     clear: both;
43     margin: $-m 0;
44   }
45   table {
46     word-break: break-all;
47     word-break: break-word;
48     hyphens: auto;
49   }
50 }
51
52 // Page content pointers
53 .pointer-container {
54   position: relative;
55   display: none;
56   left: 2%;
57 }
58 .pointer {
59   border: 1px solid #CCC;
60   display: inline-block;
61   padding: $-xs $-s;
62   border-radius: 4px;
63   box-shadow: 0 0 8px 1px rgba(212, 209, 209, 0.35);
64   position: absolute;
65   top: -60px;
66   background-color:#FFF;
67   &:before {
68     position: absolute;
69     left: 50%;
70     bottom: -9px;
71     width: 16px;
72     height: 16px;
73     margin-left: -8px;
74     content: '';
75     display: block;
76     background-color:#FFF;
77     transform: rotate(45deg);
78     transform-origin: 50% 50%;
79     border-bottom: 1px solid #CCC;
80     border-right: 1px solid #CCC;
81     z-index: 1;
82   }
83   input {
84     background-color: #FFF;
85     border: 1px solid #DDD;
86     color: #666;
87     width: 180px;
88     z-index: 40;
89   }
90   input, button {
91     position: relative;
92     border-radius: 0;
93     height: 28px;
94     font-size: 12px;
95   }
96   > i {
97     color: #888;
98     font-size: 18px;
99     padding-top: 4px;
100   }
101   .button {
102     line-height: 1;
103     margin: 0 0 0 -4px;
104     box-shadow: none;
105   }
106 }
107
108 h1, h2, h3, h4, h5, h6 {
109   &:hover a.link-hook {
110     opacity: 1;
111     transform: translate3d(0, 0, 0);
112   }
113 }