Project

General

Profile

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
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
{
47
	/* Restore the loading hide */
48
	visibility: visible;
49
    width: 140px;
50
   	height: 100px;
51
   	overflow: hidden;
52
	background-color: #fff;
53
	box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
54
    margin-top: 1px;
55
}
56

    
57
/* This class represents panels which are used as context menus. */
58
.cke_menu_panel
59
{
60
	padding: 0;
61
	margin: 0;
62
}
63

    
64
/* This class represents panels which are used by rich combos. */
65
.cke_combopanel
66
{
67
    width: 150px;
68
    height: 170px;
69
}
70

    
71
/* The IFRAME the panel is wrapped into. */
72
.cke_panel_frame
73
{
74
	width: 100%;
75
	height: 100%;
76
	font-size: 12px;
77

    
78
	overflow: auto;
79
	overflow-x: hidden;
80
}
81

    
82
/* The HTML document which is a direct descendant of the IFRAME */
83
.cke_panel_container
84
{
85
	overflow-y: auto;
86
	overflow-x: hidden;
87
}
88

    
89
/*
90
Here we start the definition of panel lists (e.g. combo panels). The following
91
is its visual representation:
92

    
93
+-- .cke_panel_block -----------------+
94
| +-- .cke_panel_grouptitle --------+ |
95
| |                                 | |
96
| +---------------------------------+ |
97
| +-- .cke_panel_list --------------+ |
98
| | +-- .cke_panel_listItem ------+ | |
99
| | | +-- a --------------------+ | | |
100
| | | | +-- span -------------+ | | | |
101
| | | | |                     | | | | |
102
| | | | +---------------------+ | | | |
103
| | | +-------------------------+ | | |
104
| | +-----------------------------+ | |
105
| | +-- .cke_panel_listItem ------+ | |
106
| | | +-- a --------------------+ | | |
107
| | | | +-- span -------------+ | | | |
108
| | | | |                     | | | | |
109
| | | | +---------------------+ | | | |
110
| | | +-------------------------+ | | |
111
| | +-----------------------------+ | |
112
| | ...                             | |
113
| +---------------------------------+ |
114
+-------------------------------------+
115
*/
116

    
117

    
118
/* The list of panel items. */
119
.cke_panel_list
120
{
121
	list-style-type: none;
122
	margin: 3px;
123
	padding: 0;
124
	white-space: nowrap;
125
}
126

    
127
/* The item of .cke_panel_list */
128
.cke_panel_listItem
129
{
130
	margin: 0;
131
    padding-bottom: 1px;
132
}
133

    
134
/* The child of .cke_panel_listItem. These elements contain spans which are
135
   to display a real name of the property which is visible for an end-user. */
136
.cke_panel_listItem a
137
{
138
	padding: 3px 4px;
139
	display: block;
140
	border: 1px solid #fff;
141
	color: inherit !important;
142
	text-decoration: none;
143
	overflow: hidden;
144
	text-overflow: ellipsis;
145

    
146
    border-radius: 2px;
147
}
148

    
149
/* IE6 */
150
* html .cke_panel_listItem a
151
{
152
	width : 100%;
153

    
154
	/* IE is not able to inherit the color, so we must force it to black */
155
	color: #000;
156
}
157

    
158
/* IE7 */
159
*:first-child+html .cke_panel_listItem a
160
{
161
	/* IE is not able to inherit the color, so we must force it to black */
162
	color: #000;
163
}
164

    
165
.cke_panel_listItem.cke_selected a
166
{
167
	border: 1px solid #dedede;
168
	background-color: #f2f2f2;
169

    
170
    box-shadow: 0 0 2px rgba(0,0,0,.1) inset;
171
}
172

    
173
.cke_panel_listItem a:hover,
174
.cke_panel_listItem a:focus,
175
.cke_panel_listItem a:active
176
{
177
	border-color: #dedede;
178
	background-color: #f2f2f2;
179

    
180
    box-shadow: 0 0 2px rgba(0,0,0,.1) inset;
181
}
182

    
183
.cke_hc .cke_panel_listItem a
184
{
185
	border-style: none;
186
}
187

    
188
.cke_hc .cke_panel_listItem a:hover,
189
.cke_hc .cke_panel_listItem a:focus,
190
.cke_hc .cke_panel_listItem a:active
191
{
192
	border: 2px solid;
193
	padding: 1px 2px;
194
}
195

    
196
/* The title of the entire panel which is visible on top of the list. */
197
.cke_panel_grouptitle
198
{
199
	cursor: default;
200
	font-weight: bold;
201
	white-space: nowrap;
202
	margin: 0;
203
	padding: 8px 6px;
204
    color: #444;
205
    background: #e4e4e4;
206
	font-size: 11px;
207
	text-transform: uppercase;
208
}
209

    
210
/* The following styles set defaults of the elements used by the Paragraph
211
   Format panel. */
212
.cke_panel_listItem p,
213
.cke_panel_listItem h1,
214
.cke_panel_listItem h2,
215
.cke_panel_listItem h3,
216
.cke_panel_listItem h4,
217
.cke_panel_listItem h5,
218
.cke_panel_listItem h6,
219
.cke_panel_listItem pre
220
{
221
	margin-top: 0px;
222
	margin-bottom: 0px;
223
}
(17-17/23)