1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,308 @@ |
1 |
+html { |
|
2 |
+ overflow: hidden; |
|
3 |
+ background: #fff; |
|
4 |
+ height: 100%; |
|
5 |
+} |
|
6 |
+ |
|
7 |
+body { |
|
8 |
+ width: 810px; |
|
9 |
+ min-height: 100%; |
|
10 |
+ margin: 0 auto; |
|
11 |
+} |
|
12 |
+ |
|
13 |
+body, textarea, input { |
|
14 |
+ font-family: Helvetica, Arial, Verdana; |
|
15 |
+} |
|
16 |
+ |
|
17 |
+strong { |
|
18 |
+ font-weight: bold; |
|
19 |
+} |
|
20 |
+ |
|
21 |
+.get-started { |
|
22 |
+ margin: 20px 0; |
|
23 |
+ color: #666; |
|
24 |
+ font-size: 11px; |
|
25 |
+ text-align: center; |
|
26 |
+} |
|
27 |
+ |
|
28 |
+.get-started a { |
|
29 |
+ color: #666; |
|
30 |
+} |
|
31 |
+ |
|
32 |
+#wysihtml5-editor-toolbar { |
|
33 |
+ position: relative; |
|
34 |
+} |
|
35 |
+ |
|
36 |
+header { |
|
37 |
+ display: block; |
|
38 |
+ border-radius: 4px; |
|
39 |
+ width: 810px; |
|
40 |
+ background: #f6f6f6; |
|
41 |
+ position: relative; |
|
42 |
+ z-index: 1; |
|
43 |
+ text-align: center; |
|
44 |
+ border: 1px solid #ddd\9; /* IE 8 and below */ |
|
45 |
+ background-image: linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%); |
|
46 |
+ background-image: -o-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%); |
|
47 |
+ background-image: -moz-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%); |
|
48 |
+ background-image: -webkit-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%); |
|
49 |
+ background-image: -ms-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%); |
|
50 |
+ box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.3); |
|
51 |
+ font-size: 0; |
|
52 |
+ text-align: center; |
|
53 |
+} |
|
54 |
+ |
|
55 |
+.commands { |
|
56 |
+ border-left: 1px solid #ddd; |
|
57 |
+ display: inline-block; |
|
58 |
+} |
|
59 |
+ |
|
60 |
+[data-wysihtml5-command], |
|
61 |
+[data-wysihtml5-action], |
|
62 |
+.fore-color { |
|
63 |
+ position: relative; |
|
64 |
+ border-right: 1px solid #ddd; |
|
65 |
+ border-left: 1px solid #fff; |
|
66 |
+ list-style: none; |
|
67 |
+ font-size: 12px; |
|
68 |
+ display: inline-block; |
|
69 |
+ cursor: pointer; |
|
70 |
+ height: 40px; |
|
71 |
+ width: 68px; |
|
72 |
+} |
|
73 |
+ |
|
74 |
+[data-wysihtml5-command]:after, |
|
75 |
+[data-wysihtml5-action]:after, |
|
76 |
+.fore-color:after { |
|
77 |
+ content: ""; |
|
78 |
+ background-image: url(../img/spr_toolbar_icons_r1.png); |
|
79 |
+ background-repeat: no-repeat; |
|
80 |
+ position: absolute; |
|
81 |
+ left: 0; |
|
82 |
+ right: 0; |
|
83 |
+ top: 0; |
|
84 |
+ bottom: 0; |
|
85 |
+} |
|
86 |
+ |
|
87 |
+[data-wysihtml5-command]:hover, |
|
88 |
+[data-wysihtml5-action]:hover, |
|
89 |
+.fore-color:hover { |
|
90 |
+ background-image: linear-gradient(bottom, rgb(229,240,226) 0%, rgb(255,255,255) 100%); |
|
91 |
+ background-image: -o-linear-gradient(bottom, rgb(229,240,226) 0%, rgb(255,255,255) 100%); |
|
92 |
+ background-image: -moz-linear-gradient(bottom, rgb(229,240,226) 0%, rgb(255,255,255) 100%); |
|
93 |
+ background-image: -webkit-linear-gradient(bottom, rgb(229,240,226) 0%, rgb(255,255,255) 100%); |
|
94 |
+ background-image: -ms-linear-gradient(bottom, rgb(229,240,226) 0%, rgb(255,255,255) 100%); |
|
95 |
+} |
|
96 |
+ |
|
97 |
+[data-wysihtml5-command="bold"]:after { |
|
98 |
+ background-position: 24px center; |
|
99 |
+} |
|
100 |
+ |
|
101 |
+[data-wysihtml5-command="italic"]:after { |
|
102 |
+ background-position: -48px center; |
|
103 |
+} |
|
104 |
+ |
|
105 |
+[data-wysihtml5-command="insertUnorderedList"]:after { |
|
106 |
+ background-position: -115px center; |
|
107 |
+} |
|
108 |
+ |
|
109 |
+[data-wysihtml5-command="insertOrderedList"]:after { |
|
110 |
+ background-position: -197px center; |
|
111 |
+} |
|
112 |
+ |
|
113 |
+[data-wysihtml5-command="formatBlock"][data-wysihtml5-command-value="h1"]:after { |
|
114 |
+ background-position: -344px center; |
|
115 |
+} |
|
116 |
+ |
|
117 |
+[data-wysihtml5-command="formatBlock"][data-wysihtml5-command-value="h2"]:after { |
|
118 |
+ background-position: -428px center; |
|
119 |
+} |
|
120 |
+ |
|
121 |
+[data-wysihtml5-command="createLink"]:after { |
|
122 |
+ background-position: -271px center; |
|
123 |
+} |
|
124 |
+ |
|
125 |
+[data-wysihtml5-command="insertImage"]:after { |
|
126 |
+ background-position: -513px center; |
|
127 |
+} |
|
128 |
+ |
|
129 |
+.fore-color:after { |
|
130 |
+ background-position: -741px center; |
|
131 |
+} |
|
132 |
+ |
|
133 |
+[data-wysihtml5-command="insertSpeech"]:after { |
|
134 |
+ background-position: -596px center; |
|
135 |
+} |
|
136 |
+ |
|
137 |
+[data-wysihtml5-action="change_view"]:after { |
|
138 |
+ background-position: -670px center; |
|
139 |
+} |
|
140 |
+ |
|
141 |
+.fore-color ul { |
|
142 |
+ display: none; |
|
143 |
+ position: absolute; |
|
144 |
+ z-index: 2; |
|
145 |
+ top: 40px; |
|
146 |
+ right: -1px; |
|
147 |
+ left: -2px; |
|
148 |
+ border: 1px solid #ccc; |
|
149 |
+ border-top: 0; |
|
150 |
+ background: #fff; |
|
151 |
+ overflow: hidden; |
|
152 |
+} |
|
153 |
+ |
|
154 |
+.fore-color li { |
|
155 |
+ display: block; |
|
156 |
+ margin: 3px; |
|
157 |
+ width: auto; |
|
158 |
+ border: 0; |
|
159 |
+ height: 15px; |
|
160 |
+} |
|
161 |
+ |
|
162 |
+.fore-color li:after { |
|
163 |
+ display: none; |
|
164 |
+} |
|
165 |
+ |
|
166 |
+.fore-color:hover ul { |
|
167 |
+ display: block; |
|
168 |
+} |
|
169 |
+ |
|
170 |
+.fore-color [data-wysihtml5-command-value="silver"] { |
|
171 |
+ background: silver !important; |
|
172 |
+} |
|
173 |
+ |
|
174 |
+ |
|
175 |
+.fore-color [data-wysihtml5-command-value="gray"] { |
|
176 |
+ background: gray !important; |
|
177 |
+} |
|
178 |
+ |
|
179 |
+.fore-color [data-wysihtml5-command-value="maroon"] { |
|
180 |
+ background: maroon !important; |
|
181 |
+} |
|
182 |
+ |
|
183 |
+.fore-color [data-wysihtml5-command-value="red"] { |
|
184 |
+ background: red !important; |
|
185 |
+} |
|
186 |
+ |
|
187 |
+.fore-color [data-wysihtml5-command-value="purple"] { |
|
188 |
+ background: purple !important; |
|
189 |
+} |
|
190 |
+ |
|
191 |
+.fore-color [data-wysihtml5-command-value="green"] { |
|
192 |
+ background: green !important; |
|
193 |
+} |
|
194 |
+ |
|
195 |
+.fore-color [data-wysihtml5-command-value="olive"] { |
|
196 |
+ background: olive !important; |
|
197 |
+} |
|
198 |
+ |
|
199 |
+.fore-color [data-wysihtml5-command-value="navy"] { |
|
200 |
+ background: navy !important; |
|
201 |
+} |
|
202 |
+ |
|
203 |
+.fore-color [data-wysihtml5-command-value="blue"] { |
|
204 |
+ background: blue !important; |
|
205 |
+} |
|
206 |
+ |
|
207 |
+.fore-color .wysihtml5-command-active { |
|
208 |
+ outline: 1px solid #666; |
|
209 |
+ outline-offset: 1px; |
|
210 |
+} |
|
211 |
+ |
|
212 |
+.wysihtml5-commands-disabled .fore-color ul { |
|
213 |
+ display: none; |
|
214 |
+} |
|
215 |
+ |
|
216 |
+.wysihtml5-action-active, |
|
217 |
+.wysihtml5-command-active { |
|
218 |
+ box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.2); |
|
219 |
+ background: #eee !important; |
|
220 |
+} |
|
221 |
+ |
|
222 |
+.wysihtml5-commands-disabled [data-wysihtml5-command], |
|
223 |
+.wysihtml5-commands-disabled .fore-color { |
|
224 |
+ opacity: 0.4; |
|
225 |
+ cursor: default; |
|
226 |
+ background-image: none !important; |
|
227 |
+} |
|
228 |
+ |
|
229 |
+[data-wysihtml5-dialog] { |
|
230 |
+ color: #333; |
|
231 |
+ font-size: 14px; |
|
232 |
+ text-align: left; |
|
233 |
+ border-radius: 4px; |
|
234 |
+ -ms-box-sizing: border-box; |
|
235 |
+ -webkit-box-sizing: border-box; |
|
236 |
+ -moz-box-sizing: border-box; |
|
237 |
+ box-sizing: border-box; |
|
238 |
+ border: 1px solid #ccc; |
|
239 |
+ padding: 5px 10px; |
|
240 |
+ background: #FFFBE0; |
|
241 |
+ position: absolute; |
|
242 |
+ width: 810px; |
|
243 |
+ text-align: center; |
|
244 |
+ top: 45px; |
|
245 |
+} |
|
246 |
+ |
|
247 |
+[data-wysihtml5-dialog] input { |
|
248 |
+ color: #333; |
|
249 |
+ border: 1px solid #ccc; |
|
250 |
+ padding: 3px; |
|
251 |
+ width: 300px; |
|
252 |
+} |
|
253 |
+ |
|
254 |
+[data-wysihtml5-dialog] input:focus { |
|
255 |
+ outline: 0; |
|
256 |
+ border: 1px solid #666; |
|
257 |
+} |
|
258 |
+ |
|
259 |
+[data-wysihtml5-dialog-action] { |
|
260 |
+ padding: 4px; |
|
261 |
+ color: #fff; |
|
262 |
+ cursor: pointer; |
|
263 |
+} |
|
264 |
+ |
|
265 |
+[data-wysihtml5-dialog-action="save"] { |
|
266 |
+ background: #007200; |
|
267 |
+} |
|
268 |
+ |
|
269 |
+[data-wysihtml5-dialog-action="cancel"] { |
|
270 |
+ background: #999; |
|
271 |
+} |
|
272 |
+ |
|
273 |
+section { |
|
274 |
+ position: absolute; |
|
275 |
+ width: 810px; |
|
276 |
+ top: 139px; |
|
277 |
+ bottom: 0; |
|
278 |
+} |
|
279 |
+ |
|
280 |
+textarea { |
|
281 |
+ width: 100%; |
|
282 |
+ background: transparent; |
|
283 |
+ height: 100%; |
|
284 |
+ border: 0; |
|
285 |
+ resize: none; |
|
286 |
+ white-space: pre; |
|
287 |
+ border-top-left-radius: 4px; |
|
288 |
+ border-top-right-radius: 4px; |
|
289 |
+ padding: 10px; |
|
290 |
+ word-wrap: normal; |
|
291 |
+ -ms-box-sizing: border-box; |
|
292 |
+ -webkit-box-sizing: border-box; |
|
293 |
+ -moz-box-sizing: border-box; |
|
294 |
+ box-sizing: border-box; |
|
295 |
+} |
|
296 |
+ |
|
297 |
+textarea:focus { |
|
298 |
+ box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.3); |
|
299 |
+ background: rgba(255, 255, 255, 0.4); |
|
300 |
+ outline: 0; |
|
301 |
+} |
|
302 |
+ |
|
303 |
+a.fork { |
|
304 |
+ position: absolute; |
|
305 |
+ top: 0; |
|
306 |
+ right: 0; |
|
307 |
+ border: 0; |
|
308 |
+} |