1 | /* |
---|
2 | Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. |
---|
3 | For licensing, see LICENSE.md or http://ckeditor.com/license |
---|
4 | */ |
---|
5 | |
---|
6 | /* |
---|
7 | toolbar.css (part of editor.css) |
---|
8 | ================================== |
---|
9 | |
---|
10 | This files styles the CKEditor toolbar and its buttons. For toolbar combo |
---|
11 | styles, check richcombo.css. |
---|
12 | |
---|
13 | The toolbar is rendered as a big container (called toolbox), which contains |
---|
14 | smaller "toolbars". Each toolbar represents a group of items that cannot be |
---|
15 | separated. The following is the visual representation of the toolbox. |
---|
16 | |
---|
17 | +-- .cke_toolbox ----------------------------------------------------------+ |
---|
18 | | +-- .cke_toolbar --+ +-- .cke_toolbar --+ ... +-- .cke_toolbar_break --+ | |
---|
19 | | | | | | | | | |
---|
20 | | +------------------+ +------------------+ +------------------------+ | |
---|
21 | | +-- .cke_toolbar --+ +-- .cke_toolbar --+ ... | |
---|
22 | | | | | | | |
---|
23 | | +------------------+ +------------------+ | |
---|
24 | +--------------------------------------------------------------------------+ |
---|
25 | |
---|
26 | The following instead is the visual representation of a single toolbar: |
---|
27 | |
---|
28 | +-- .cke_toolbar ----------------------------------------------------------------+ |
---|
29 | | +-- .cke_toolbar_start --+ +-- .cke_toolgroup (*) --+ +-- .cke_toolbar_end --+ | |
---|
30 | | | | | | | | | |
---|
31 | | +------------------------+ +------------------------+ +----------------------+ | |
---|
32 | +--------------------------------------------------------------------------------+ |
---|
33 | (*) .cke_toolgroup is available only when the toolbar items can be grouped |
---|
34 | (buttons). If the items can't be group (combos), this box is not available |
---|
35 | and the items are rendered straight in that place. |
---|
36 | |
---|
37 | This file also styles toolbar buttons, which are rendered inside the above |
---|
38 | .cke_toolgroup containers. This is the visual representation of a button: |
---|
39 | |
---|
40 | +-- .cke_button -------------------------------------+ |
---|
41 | | +-- .cke_button_icon --+ +-- .cke_button_label --+ | |
---|
42 | | | | | | | |
---|
43 | | +----------------------+ +-----------------------+ | |
---|
44 | +----------------------------------------------------+ |
---|
45 | |
---|
46 | Special outer level classes used in this file: |
---|
47 | |
---|
48 | .cke_hc: Available when the editor is rendered on "High Contrast". |
---|
49 | .cke_rtl: Available when the editor UI is on RTL. |
---|
50 | */ |
---|
51 | |
---|
52 | /* The box that holds each toolbar. */ |
---|
53 | .cke_toolbar |
---|
54 | { |
---|
55 | float: left; |
---|
56 | } |
---|
57 | |
---|
58 | .cke_rtl .cke_toolbar |
---|
59 | { |
---|
60 | float: right; |
---|
61 | } |
---|
62 | |
---|
63 | /* The box that holds buttons. */ |
---|
64 | .cke_toolgroup |
---|
65 | { |
---|
66 | -moz-border-radius: 5px; |
---|
67 | -webkit-border-radius: 5px; |
---|
68 | border-radius: 5px; |
---|
69 | float: left; |
---|
70 | margin: 0 6px 5px 0; |
---|
71 | padding: 2px; |
---|
72 | background: url(images/sprites.png) repeat-x 0 -500px; |
---|
73 | |
---|
74 | background: -webkit-gradient(linear, 0 0, 0 100, from(#fff), to(#d3d3d3)); /* Chrome,Safari4+ */ |
---|
75 | background: -moz-linear-gradient(top, #fff, #d3d3d3 100px); /* FF3.6+ */ |
---|
76 | background: -webkit-linear-gradient(top, #fff, #d3d3d3 100px); /* Chrome10+,Safari5.1+ */ |
---|
77 | background: -o-linear-gradient(top, #fff, #d3d3d3 100px); /* Opera 11.10+ */ |
---|
78 | background: -ms-linear-gradient(top, #fff, #d3d3d3 100px); /* IE10+ */ |
---|
79 | background: linear-gradient(top, #fff, #d3d3d3 100px); /* W3C */ |
---|
80 | } |
---|
81 | |
---|
82 | .cke_hc .cke_toolgroup |
---|
83 | { |
---|
84 | padding-right: 0; |
---|
85 | margin-right: 4px; |
---|
86 | } |
---|
87 | |
---|
88 | .cke_rtl .cke_toolgroup |
---|
89 | { |
---|
90 | float: right; |
---|
91 | margin-left: 6px; |
---|
92 | margin-right: 0; |
---|
93 | } |
---|
94 | |
---|
95 | .cke_rtl.cke_hc .cke_toolgroup |
---|
96 | { |
---|
97 | padding-left: 0; |
---|
98 | margin-left: 4px; |
---|
99 | } |
---|
100 | |
---|
101 | /* A toolbar button . */ |
---|
102 | a.cke_button |
---|
103 | { |
---|
104 | display: inline-block; |
---|
105 | height: 18px; |
---|
106 | padding: 2px 4px; |
---|
107 | -moz-border-radius: 3px; |
---|
108 | -webkit-border-radius: 3px; |
---|
109 | border-radius: 3px; |
---|
110 | outline: none; |
---|
111 | cursor: default; |
---|
112 | float: left; |
---|
113 | border: 0; |
---|
114 | } |
---|
115 | |
---|
116 | .cke_rtl .cke_button |
---|
117 | { |
---|
118 | float: right; |
---|
119 | } |
---|
120 | |
---|
121 | .cke_hc .cke_button |
---|
122 | { |
---|
123 | border: 1px solid black; |
---|
124 | |
---|
125 | /* Compensate the added border */ |
---|
126 | padding: 3px 5px; |
---|
127 | margin: -2px 4px 0 -2px; |
---|
128 | } |
---|
129 | |
---|
130 | .cke_rtl.cke_hc .cke_button |
---|
131 | { |
---|
132 | margin: -2px -2px 0 4px; |
---|
133 | } |
---|
134 | |
---|
135 | /* This class is applied to the button when it is "active" (pushed). |
---|
136 | This style indicates that the feature associated with the button is active |
---|
137 | i.e. currently writing in bold or when spell checking is enabled. */ |
---|
138 | .cke_button_on |
---|
139 | { |
---|
140 | background-color: #a3d7ff; |
---|
141 | } |
---|
142 | |
---|
143 | .cke_hc .cke_button_on |
---|
144 | { |
---|
145 | border-width: 3px; |
---|
146 | |
---|
147 | /* Compensate the border change */ |
---|
148 | padding: 1px 3px; |
---|
149 | } |
---|
150 | |
---|
151 | /* This class is applied to the button when the feature associated with the |
---|
152 | button is available but currently not active.*/ |
---|
153 | .cke_button_off |
---|
154 | { |
---|
155 | opacity: 0.7; |
---|
156 | } |
---|
157 | |
---|
158 | /* This class is applied to the button when the feature associated with the |
---|
159 | button cannot be used (grayed-out). |
---|
160 | i.e. paste button remains disabled when there is nothing in the clipboard to |
---|
161 | be pasted. */ |
---|
162 | .cke_button_disabled |
---|
163 | { |
---|
164 | opacity: 0.3; |
---|
165 | } |
---|
166 | |
---|
167 | a.cke_button_on:hover, |
---|
168 | a.cke_button_on:focus, |
---|
169 | a.cke_button_on:active |
---|
170 | { |
---|
171 | background-color: #86caff; |
---|
172 | } |
---|
173 | |
---|
174 | .cke_hc a.cke_button:hover |
---|
175 | { |
---|
176 | background: black; |
---|
177 | } |
---|
178 | |
---|
179 | a.cke_button_off:hover, |
---|
180 | a.cke_button_off:focus, |
---|
181 | a.cke_button_off:active |
---|
182 | { |
---|
183 | background-color: #dff1ff; |
---|
184 | opacity: 1; |
---|
185 | } |
---|
186 | |
---|
187 | /* The icon which is a visual representation of the button. */ |
---|
188 | .cke_button_icon |
---|
189 | { |
---|
190 | cursor: inherit; |
---|
191 | background-repeat: no-repeat; |
---|
192 | margin-top: 1px; |
---|
193 | width: 16px; |
---|
194 | height: 16px; |
---|
195 | float: left; |
---|
196 | display: inline-block; |
---|
197 | } |
---|
198 | |
---|
199 | .cke_rtl .cke_button_icon |
---|
200 | { |
---|
201 | float: right; |
---|
202 | } |
---|
203 | |
---|
204 | .cke_hc .cke_button_icon |
---|
205 | { |
---|
206 | display: none; |
---|
207 | } |
---|
208 | |
---|
209 | /* The label of the button that stores the name of the feature. By default, |
---|
210 | labels are invisible. They can be revealed on demand though. */ |
---|
211 | .cke_button_label |
---|
212 | { |
---|
213 | display: none; |
---|
214 | padding-left: 3px; |
---|
215 | margin-top: 1px; |
---|
216 | line-height: 16px; |
---|
217 | vertical-align: middle; |
---|
218 | float: left; |
---|
219 | cursor: default; |
---|
220 | } |
---|
221 | |
---|
222 | .cke_hc .cke_button_label |
---|
223 | { |
---|
224 | padding: 0; |
---|
225 | display: inline-block; |
---|
226 | } |
---|
227 | |
---|
228 | .cke_rtl .cke_button_label |
---|
229 | { |
---|
230 | padding-right: 3px; |
---|
231 | padding-left: 0; |
---|
232 | float: right; |
---|
233 | } |
---|
234 | |
---|
235 | /* The small arrow available on buttons that can be expanded |
---|
236 | (e.g. the color buttons). */ |
---|
237 | .cke_button_arrow |
---|
238 | { |
---|
239 | /* Arrow in CSS */ |
---|
240 | display: inline-block; |
---|
241 | margin: 7px 0 0 1px; |
---|
242 | width: 0; |
---|
243 | height: 0; |
---|
244 | border-width: 3px; |
---|
245 | border-color: #2f2f2f transparent transparent transparent; |
---|
246 | border-style: solid dashed dashed dashed; |
---|
247 | cursor: default; |
---|
248 | vertical-align: middle; |
---|
249 | } |
---|
250 | |
---|
251 | .cke_rtl .cke_button_arrow |
---|
252 | { |
---|
253 | margin-right: 5px; |
---|
254 | margin-left: 0; |
---|
255 | } |
---|
256 | |
---|
257 | .cke_hc .cke_button_arrow |
---|
258 | { |
---|
259 | font-size: 10px; |
---|
260 | margin: 0 -2px 0 3px; |
---|
261 | width: auto; |
---|
262 | border: 0; |
---|
263 | } |
---|
264 | |
---|
265 | .cke_rtl.cke_hc .cke_button_arrow |
---|
266 | { |
---|
267 | margin: 0 3px 0 -2px; |
---|
268 | } |
---|
269 | |
---|
270 | /* The vertical separator which is used within a single toolbar to split |
---|
271 | buttons into sub-groups. */ |
---|
272 | .cke_toolbar_separator |
---|
273 | { |
---|
274 | float: left; |
---|
275 | border-left: solid 1px #D3D3D3; |
---|
276 | margin: 3px 2px 0; |
---|
277 | height: 16px; |
---|
278 | } |
---|
279 | |
---|
280 | .cke_rtl .cke_toolbar_separator |
---|
281 | { |
---|
282 | border-right: solid 1px #D3D3D3; |
---|
283 | border-left: 0; |
---|
284 | float: right; |
---|
285 | } |
---|
286 | |
---|
287 | .cke_hc .cke_toolbar_separator |
---|
288 | { |
---|
289 | margin-left: 0; |
---|
290 | width: 3px; |
---|
291 | } |
---|
292 | |
---|
293 | .cke_rtl.cke_hc .cke_toolbar_separator |
---|
294 | { |
---|
295 | margin:3px 0 0 2px; |
---|
296 | } |
---|
297 | |
---|
298 | /* The dummy element that breaks toolbars. |
---|
299 | Once it is placed, the very next toolbar is moved to the new row. */ |
---|
300 | .cke_toolbar_break |
---|
301 | { |
---|
302 | display: block; |
---|
303 | clear: left; |
---|
304 | } |
---|
305 | |
---|
306 | .cke_rtl .cke_toolbar_break |
---|
307 | { |
---|
308 | clear: right; |
---|
309 | } |
---|
310 | |
---|
311 | /* The button, which when clicked hides (collapses) all the toolbars. */ |
---|
312 | .cke_toolbox_collapser |
---|
313 | { |
---|
314 | width: 12px; |
---|
315 | height: 11px; |
---|
316 | float: right; |
---|
317 | border: 1px outset #d3d3d3; |
---|
318 | margin: 11px 0 0; |
---|
319 | font-size: 0; |
---|
320 | cursor: default; |
---|
321 | text-align: center; |
---|
322 | } |
---|
323 | |
---|
324 | .cke_toolbox_collapser.cke_toolbox_collapser_min |
---|
325 | { |
---|
326 | margin: 0 2px 4px; |
---|
327 | } |
---|
328 | |
---|
329 | .cke_rtl .cke_toolbox_collapser |
---|
330 | { |
---|
331 | float: left; |
---|
332 | } |
---|
333 | |
---|
334 | .cke_hc .cke_toolbox_collapser |
---|
335 | { |
---|
336 | border-width: 1px; |
---|
337 | } |
---|
338 | |
---|
339 | /* The CSS arrow, which belongs to the toolbar collapser. */ |
---|
340 | .cke_toolbox_collapser .cke_arrow |
---|
341 | { |
---|
342 | display: inline-block; |
---|
343 | |
---|
344 | /* Pure CSS Arrow */ |
---|
345 | height: 0; |
---|
346 | width: 0; |
---|
347 | font-size: 0; |
---|
348 | border-width: 3px; |
---|
349 | border-style: solid; |
---|
350 | border-color: transparent transparent #2f2f2f; |
---|
351 | } |
---|
352 | |
---|
353 | .cke_toolbox_collapser.cke_toolbox_collapser_min .cke_arrow |
---|
354 | { |
---|
355 | margin: 4px 2px 0 0; |
---|
356 | border-color: #2f2f2f transparent transparent; |
---|
357 | } |
---|
358 | |
---|
359 | .cke_hc .cke_toolbox_collapser .cke_arrow |
---|
360 | { |
---|
361 | font-size: 8px; |
---|
362 | width: auto; |
---|
363 | border: 0; |
---|
364 | margin-top: 0; |
---|
365 | margin-right: 2px; |
---|
366 | } |
---|