1
|
/*
|
2
|
Copyright (c) 2003-2015, 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
|
margin: 8px;
|
57
|
}
|
58
|
|
59
|
.cke_rtl .cke_toolbar
|
60
|
{
|
61
|
float: right;
|
62
|
}
|
63
|
|
64
|
/* The box that holds buttons. */
|
65
|
.cke_toolgroup
|
66
|
{
|
67
|
float: left;
|
68
|
margin: 0;
|
69
|
}
|
70
|
|
71
|
.cke_hc .cke_toolgroup
|
72
|
{
|
73
|
border: 0;
|
74
|
margin-right: 10px;
|
75
|
margin-bottom: 10px;
|
76
|
}
|
77
|
|
78
|
.cke_rtl .cke_toolgroup
|
79
|
{
|
80
|
float: right;
|
81
|
margin-left: 6px;
|
82
|
margin-right: 0;
|
83
|
}
|
84
|
|
85
|
/* A toolbar button . */
|
86
|
a.cke_button
|
87
|
{
|
88
|
display: inline-block;
|
89
|
height: 34px;
|
90
|
width: 34px;
|
91
|
padding: 0 0 0 2px;
|
92
|
outline: none;
|
93
|
cursor: default;
|
94
|
float: left;
|
95
|
border: 0;
|
96
|
text-align: center;
|
97
|
border-radius: 2px;
|
98
|
}
|
99
|
|
100
|
.cke_ltr .cke_button:last-child,
|
101
|
.cke_rtl .cke_button:first-child
|
102
|
{
|
103
|
}
|
104
|
|
105
|
.cke_ltr .cke_button:first-child,
|
106
|
.cke_rtl .cke_button:last-child
|
107
|
{
|
108
|
}
|
109
|
|
110
|
.cke_rtl .cke_button
|
111
|
{
|
112
|
float: right;
|
113
|
}
|
114
|
|
115
|
.cke_hc .cke_button
|
116
|
{
|
117
|
border: 1px solid black;
|
118
|
|
119
|
/* Compensate the added border */
|
120
|
padding: 3px 5px;
|
121
|
margin: -2px 4px 0 -2px;
|
122
|
}
|
123
|
|
124
|
/* This class is applied to the button when it is "active" (pushed).
|
125
|
This style indicates that the feature associated with the button is active
|
126
|
i.e. currently writing in bold or when spell checking is enabled. */
|
127
|
a.cke_button_on
|
128
|
{
|
129
|
background: #e5e5e5;
|
130
|
box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
|
131
|
}
|
132
|
|
133
|
|
134
|
/* This class is applied to the button when the feature associated with the
|
135
|
button cannot be used (grayed-out).
|
136
|
i.e. paste button remains disabled when there is nothing in the clipboard to
|
137
|
be pasted. */
|
138
|
.cke_button_disabled .cke_button_icon
|
139
|
{
|
140
|
opacity: 0.3;
|
141
|
}
|
142
|
|
143
|
.cke_hc .cke_button_disabled
|
144
|
{
|
145
|
opacity: 0.5;
|
146
|
}
|
147
|
|
148
|
a.cke_button_off:hover,
|
149
|
a.cke_button_off:focus,
|
150
|
a.cke_button_off:active,
|
151
|
a.cke_button_disabled:hover,
|
152
|
a.cke_button_disabled:focus,
|
153
|
a.cke_button_disabled:active
|
154
|
{
|
155
|
background: #e4e4e4;
|
156
|
}
|
157
|
|
158
|
/* The icon which is a visual representation of the button. */
|
159
|
.cke_button_icon
|
160
|
{
|
161
|
cursor: inherit;
|
162
|
background-repeat: no-repeat;
|
163
|
width: 18px;
|
164
|
height: 18px;
|
165
|
margin-top: 8px;
|
166
|
display: inline-block;
|
167
|
}
|
168
|
|
169
|
.cke_hc .cke_button_icon
|
170
|
{
|
171
|
display: none;
|
172
|
}
|
173
|
|
174
|
/* The label of the button that stores the name of the feature. By default,
|
175
|
labels are invisible. They can be revealed on demand though. */
|
176
|
.cke_button_label
|
177
|
{
|
178
|
display: none;
|
179
|
padding-left: 4px;
|
180
|
margin-top: 1px;
|
181
|
line-height: 18px;
|
182
|
vertical-align: middle;
|
183
|
float: left;
|
184
|
cursor: default;
|
185
|
color: #212121;
|
186
|
}
|
187
|
|
188
|
.cke_rtl .cke_button_label
|
189
|
{
|
190
|
padding-right: 3px;
|
191
|
padding-left: 0;
|
192
|
float: right;
|
193
|
}
|
194
|
|
195
|
.cke_hc .cke_button_label
|
196
|
{
|
197
|
padding: 0;
|
198
|
display: inline-block;
|
199
|
font-size: 12px;
|
200
|
}
|
201
|
|
202
|
/* The small arrow available on buttons that can be expanded
|
203
|
(e.g. the color buttons). */
|
204
|
.cke_button_arrow
|
205
|
{
|
206
|
/* Arrow in CSS */
|
207
|
display: inline-block;
|
208
|
margin: 14px 0 0 1px;
|
209
|
width: 0;
|
210
|
height: 0;
|
211
|
cursor: default;
|
212
|
vertical-align: top;
|
213
|
border-left: 3px solid transparent;
|
214
|
border-right: 3px solid transparent;
|
215
|
border-top: 3px solid #474747;
|
216
|
}
|
217
|
|
218
|
.cke_rtl .cke_button_arrow
|
219
|
{
|
220
|
margin-right: 5px;
|
221
|
margin-left: 0;
|
222
|
}
|
223
|
|
224
|
.cke_hc .cke_button_arrow
|
225
|
{
|
226
|
font-size: 10px;
|
227
|
margin: 3px -2px 0 3px;
|
228
|
width: auto;
|
229
|
border: 0;
|
230
|
}
|
231
|
|
232
|
/* The vertical separator which is used within a single toolbar to split
|
233
|
buttons into sub-groups. */
|
234
|
.cke_toolbar_separator
|
235
|
{
|
236
|
float: left;
|
237
|
background-color: #d0d0d0;
|
238
|
height: 34px;
|
239
|
width: 1px;
|
240
|
margin: 0 8px;
|
241
|
}
|
242
|
|
243
|
.cke_rtl .cke_toolbar_separator
|
244
|
{
|
245
|
float: right;
|
246
|
}
|
247
|
|
248
|
.cke_hc .cke_toolbar_separator
|
249
|
{
|
250
|
width: 0;
|
251
|
border-left: 1px solid;
|
252
|
margin: 1px 5px 0 0;
|
253
|
}
|
254
|
|
255
|
/* The dummy element that breaks toolbars.
|
256
|
Once it is placed, the very next toolbar is moved to the new row. */
|
257
|
.cke_toolbar_break
|
258
|
{
|
259
|
display: block;
|
260
|
clear: left;
|
261
|
}
|
262
|
|
263
|
.cke_rtl .cke_toolbar_break
|
264
|
{
|
265
|
clear: right;
|
266
|
}
|
267
|
|
268
|
/* The button, which when clicked hides (collapses) all the toolbars. */
|
269
|
a.cke_toolbox_collapser
|
270
|
{
|
271
|
width: 12px;
|
272
|
height: 11px;
|
273
|
float: right;
|
274
|
margin: 11px 0 0;
|
275
|
font-size: 0;
|
276
|
cursor: default;
|
277
|
text-align: center;
|
278
|
|
279
|
background: #e4e4e4;
|
280
|
}
|
281
|
|
282
|
.cke_toolbox_collapser:hover
|
283
|
{
|
284
|
background: #ccc;
|
285
|
}
|
286
|
|
287
|
.cke_toolbox_collapser.cke_toolbox_collapser_min
|
288
|
{
|
289
|
margin: 0 2px 4px;
|
290
|
}
|
291
|
|
292
|
.cke_rtl .cke_toolbox_collapser
|
293
|
{
|
294
|
float: left;
|
295
|
}
|
296
|
|
297
|
/* The CSS arrow, which belongs to the toolbar collapser. */
|
298
|
.cke_toolbox_collapser .cke_arrow
|
299
|
{
|
300
|
display: inline-block;
|
301
|
|
302
|
/* Pure CSS Arrow */
|
303
|
height: 0;
|
304
|
width: 0;
|
305
|
font-size: 0;
|
306
|
margin-top: 1px;
|
307
|
border-left: 3px solid transparent;
|
308
|
border-right: 3px solid transparent;
|
309
|
border-bottom: 3px solid #474747;
|
310
|
border-top: 3px solid transparent;
|
311
|
}
|
312
|
|
313
|
.cke_toolbox_collapser.cke_toolbox_collapser_min .cke_arrow
|
314
|
{
|
315
|
margin-top: 4px;
|
316
|
border-bottom-color: transparent;
|
317
|
border-top-color: #474747;
|
318
|
}
|
319
|
|
320
|
.cke_hc .cke_toolbox_collapser .cke_arrow
|
321
|
{
|
322
|
font-size: 8px;
|
323
|
width: auto;
|
324
|
border: 0;
|
325
|
margin-top: 0;
|
326
|
margin-right: 2px;
|
327
|
}
|