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
panel.css (part of editor.css)
8
================================
9
 
10
Panels are floating elements that can hold different types of contents.
11
The following are common uses of it:
12
 
13
    - The element that toolbar combos display when opening them.
14
    - The context menu.
15
    - The list of items displayed by "menu buttons" (e.g. scayt).
16
    - The panel shown when opening "panel buttons" (e.g. color buttons).
17
 
18
Panel contents are wrapped into an iframe, so it is possible to have additional
19
CSS loaded inside them (e.g. to have more accurate preview on the styles combo).
20
 
21
The following is a visual representation of the outer elements of a panel:
22
 
23
+-- .cke_panel(*) ---------------------+
24
| +-- IFRAME.cke_panel_frame --------+ |
25
| | +-- HTML.cke_panel_container --+ | |
26
| | | +-- .cke_panel_block ------+ | | |
27
| | | |                          | | | |
28
| | | |     (contents here)      | | | |
29
| | | |                          | | | |
30
| | | +--------------------------+ | | |
31
| | +------------------------------+ | |
32
| +----------------------------------+ |
33
+--------------------------------------+
34
 
35
(*) All kinds of panel share the above structure. Menu panels adds the
36
    .cke_menu_panel class to the outer element, while toolbar combos add the
37
    .cke_combopanel class.
38
 
39
This file also defines styles for panel lists (used by combos). For menu-like
40
panel contents and color panels check menu.css and colorpanel.css.
41
*/
42
 
43
/* The box that holds an IFRAME. It's inserted into a host document and positioned
44
   absolutely by the application. It floats above the host document/editor. */
45
.cke_panel {
46
    /* Restore the loading hide */
47
    visibility: visible;
48
    width: 120px;
49
    height: 100px;
50
    overflow: hidden;
51
    margin-top: 5px;
52
 
53
    background-color: #fff;
54
    border: 1px solid $gray;
55
    border-radius: $border-radius;
56
}
57
 
58
/* This class represents panels which are used as context menus. */
59
.cke_menu_panel {
60
    padding: 0;
61
    margin: 0;
62
}
63
 
64
/* This class represents panels which are used by rich combos. */
65
.cke_combopanel {
66
    width: 150px;
67
    height: 178px;
68
}
69
 
70
/* The IFRAME the panel is wrapped into. */
71
.cke_panel_frame {
72
    width: 100%;
73
    height: 100%;
74
    font-size: 12px;
75
 
76
    overflow: auto;
77
    overflow-x: hidden;
78
}
79
 
80
/* The HTML document which is a direct descendant of the IFRAME */
81
.cke_panel_container {
82
    overflow-y: auto;
83
    overflow-x: hidden;
84
}
85
 
86
/*
87
Here we start the definition of panel lists (e.g. combo panels). The following
88
is its visual representation:
89
 
90
+-- .cke_panel_block -----------------+
91
| +-- .cke_panel_grouptitle --------+ |
92
| |                                 | |
93
| +---------------------------------+ |
94
| +-- .cke_panel_list --------------+ |
95
| | +-- .cke_panel_listItem ------+ | |
96
| | | +-- a --------------------+ | | |
97
| | | | +-- span -------------+ | | | |
98
| | | | |                     | | | | |
99
| | | | +---------------------+ | | | |
100
| | | +-------------------------+ | | |
101
| | +-----------------------------+ | |
102
| | +-- .cke_panel_listItem ------+ | |
103
| | | +-- a --------------------+ | | |
104
| | | | +-- span -------------+ | | | |
105
| | | | |                     | | | | |
106
| | | | +---------------------+ | | | |
107
| | | +-------------------------+ | | |
108
| | +-----------------------------+ | |
109
| | ...                             | |
110
| +---------------------------------+ |
111
+-------------------------------------+
112
*/
113
 
114
 
115
/* The list of panel items. */
116
.cke_panel_list {
117
    list-style-type: none;
118
    margin: 3px;
119
    padding: 0;
120
    white-space: nowrap;
121
}
122
 
123
/* The item of .cke_panel_list */
124
.cke_panel_listItem {
125
    margin: 0;
126
    padding-bottom: 1px;
127
}
128
 
129
/* The child of .cke_panel_listItem. These elements contain spans which are
130
   to display a real name of the property which is visible for an end-user. */
131
.cke_panel_listItem a {
132
    padding: 3px 4px;
133
    display: block;
134
    border: 1px solid #fff;
135
    color: inherit !important;
136
    text-decoration: none;
137
    overflow: hidden;
138
    text-overflow: ellipsis;
139
    border-radius: 2px;
140
    &:hover, &:focus, &:active {
141
        background-color: $primary-lighter;
142
    }
143
}
144
 
145
/* IE6 */
146
* html .cke_panel_listItem a {
147
    width : 100%;
148
 
149
    /* IE is not able to inherit the color, so we must force it to black */
150
    color: #000;
151
}
152
 
153
/* IE7 */
154
*:first-child+html .cke_panel_listItem a {
155
    /* IE is not able to inherit the color, so we must force it to black */
156
    color: #000;
157
}
158
 
159
.cke_panel_listItem.cke_selected a {
160
    background-color: $primary-light;
161
    outline: none;
162
}
163
 
164
.cke_hc .cke_panel_listItem a {
165
    border-style: none;
166
}
167
 
168
.cke_hc .cke_panel_listItem a {
169
    &:hover, &:focus, &:active {
170
        border: 2px solid;
171
        padding: 1px 2px;
172
    }
173
}
174
 
175
/* The title of the entire panel which is visible on top of the list. */
176
.cke_panel_grouptitle {
177
    font-size: 11px;
178
    font-weight: bold;
179
    white-space: nowrap;
180
    margin: 0;
181
    padding: 6px 6px;
182
 
183
    color: #474747;
184
    border-bottom: 1px solid $gray;
185
 
186
    background: $gray-lighter;
187
    &:first-child {
188
        border-radius: $border-radius $border-radius 0 0;
189
    }
190
}
191
 
192
/* The following styles set defaults of the elements used by the Paragraph
193
   Format panel. */
194
.cke_panel_listItem {
195
    p, h1, h2, h3, h4, h5, h6, pre {
196
        margin-top: 0px;
197
        margin-bottom: 0px;
198
    }
199
}