Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

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