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
menu.css (part of editor.css)
8
===============================
9
 
10
This file styles menus used in the editor UI. These menus are the list of
11
options available inside some "floating panels", like menu buttons of the
12
toolbar or the context menu.
13
 
14
Note that the menu itself doesn't include the floating element that holds it.
15
That element is styles in the panel.css file.
16
 
17
The following is a visual representation of the main elements of a menu:
18
 
19
+-- .cke_menu -----------------+
20
| +-- .cke_menuitem  --------+ |
21
| | +-- .cke_menubutton ---+ | |
22
| | |                      | | |
23
| | +----------------------+ | |
24
| +--------------------------+ |
25
| +-- .cke_menuseparator ----+ |
26
| ...                          |
27
+------------------------------+
28
 
29
This is the .cke_menubutton structure:
30
(Note that the menu button icon shares with toolbar button the common class .cke_button_icon to achieve the same outlook.)
31
 
32
+-- .cke_menubutton -------------------------------------------------------------------------+
33
| +-- .cke_menubutton_inner ---------------------------------------------------------------+ |
34
| | +-- .cke_menubutton_icon ---+ +-- .cke_menubutton_label --+ +-- .cke_cke_menuarrow --+ | |
35
| | | +-- .cke_button_icon ---+ | |                           | |                        | | |
36
| | | |                       | | |                           | |                        | | |
37
| | | +-----------------------+ | |                           | |                        | | |
38
| | +---------------------------+ +---------------------------+ +------------------------+ | |
39
| +----------------------------------------------------------------------------------------+ |
40
+--------------------------------------------------------------------------------------------+
41
 
42
Special outer level classes used in this file:
43
 
44
    .cke_hc: Available when the editor is rendered on "High Contrast".
45
    .cke_rtl: Available when the editor UI is on RTL.
46
*/
47
 
48
/* .cke_menuitem is the element that holds the entire structure of each of the
49
   menu items. */
50
 
51
.cke_menubutton {
52
    /* The "button" inside a menu item is a <a> element.
53
       Transforms it into a block. */
54
    display: block;
55
}
56
 
57
.cke_button_icon {
58
    opacity: .8;
59
}
60
 
61
.cke_menuitem span {
62
    /* Avoid the text selection cursor inside menu items. */
63
    cursor: default;
64
}
65
 
66
.cke_menubutton {
67
    &:hover, &:focus, &:active {
68
        background-color: #D3D3D3;
69
        display: block;
70
    }
71
}
72
 
73
.cke_hc .cke_menubutton {
74
    padding: 2px;
75
    &:hover, &:focus, &:active {
76
        border: 2px solid;
77
        padding: 0;
78
    }
79
}
80
 
81
.cke_menubutton_inner {
82
    display: table-row;
83
}
84
 
85
.cke_menubutton_icon,
86
.cke_menubutton_label,
87
.cke_menuarrow {
88
    display: table-cell;
89
}
90
 
91
/* The menu item icon. */
92
.cke_menubutton_icon {
93
    background-color: #D7D8D7;
94
    opacity: 0.70; /* Safari, Opera and Mozilla */
95
    filter: alpha(opacity=70); /* IE */
96
    padding: 4px;
97
}
98
 
99
.cke_hc .cke_menubutton_icon {
100
    height: 16px;
101
    width: 0;
102
    padding: 4px 0;
103
}
104
 
105
.cke_menubutton {
106
    &:hover, &:focus, &:active {
107
        .cke_menubutton_icon {
108
            background-color: #D0D2D0;
109
        }
110
    }
111
}
112
 
113
.cke_menubutton_disabled {
114
    &:hover, &:focus, &:active {
115
        .cke_menubutton_icon {
116
            /* The icon will get opacity as well when hovered. */
117
            opacity: 0.3;
118
            filter: alpha(opacity=30);
119
        }
120
    }
121
}
122
 
123
/* The textual part of each menu item. */
124
.cke_menubutton_label {
125
    padding: 0 5px;
126
    background-color: transparent;
127
    width: 100%;
128
    vertical-align: middle;
129
}
130
 
131
.cke_menubutton_disabled .cke_menubutton_label {
132
    /* Greyed label text indicates a disabled menu item. */
133
    opacity: 0.3;
134
    filter: alpha(opacity=30);
135
}
136
 
137
.cke_menubutton_on {
138
    border: 1px solid #dedede;
139
    background-color: #f2f2f2;
140
    .cke_menubutton_icon {
141
        padding-right: 3px;
142
    }
143
}
144
 
145
.cke_menubutton {
146
    &:hover, &:focus, &:active {
147
        background-color: #EFF0EF;
148
    }
149
}
150
 
151
.cke_panel_frame .cke_menubutton_label {
152
    display: none;
153
}
154
 
155
/* The separator used to separate menu item groups. */
156
.cke_menuseparator {
157
    background-color: #D3D3D3;
158
    height: 1px;
159
    filter: alpha(opacity=70); /* IE */
160
    opacity: 0.70; /* Safari, Opera and Mozilla */
161
}
162
 
163
/* The small arrow shown for item with sub-menus. */
164
.cke_menuarrow {
165
    background-image: url(images/arrow.png);
166
    background-position: 0 10px;
167
    background-repeat: no-repeat;
168
    padding: 0 5px;
169
    span {
170
        display: none;
171
    }
172
}
173
 
174
.cke_rtl .cke_menuarrow {
175
    background-position: 5px -13px;
176
    background-repeat: no-repeat;
177
}
178
 
179
.cke_hc .cke_menuarrow span {
180
    vertical-align: middle;
181
    display: inline;
182
}