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
richcombo.css (part of editor.css)
8
=================================
9

    
10
This file holds the style set of the "Rich Combo" widget which is commonly used
11
in the toolbar. It doesn't, however, styles the panel that is displayed when
12
clicking on the combo, which is instead styled by panel.css.
13

    
14
The visual representation of a rich combo widget looks as follows:
15

    
16
+-- .cke_combo----------------------------------------------------------------------+
17
| +-- .cke_combo_label --+ +-- .cke_combo_button ---------------------------------+ |
18
| |                      | | +-- .cke_combo_text --+ +-- .cke_combo_open -------+ | |
19
| |                      | | |                     | | +-- .cke_combo_arrow --+ | | |
20
| |                      | | |                     | | |                      | | | |
21
| |                      | | |                     | | +----------------------+ | | |
22
| |                      | | +---------------------+ +--------------------------+ | |
23
| +----------------------+ +------------------------------------------------------+ |
24
+-----------------------------------------------------------------------------------+
25
*/
26

    
27
/* The box that hold the entire combo widget */
28
.cke_combo
29
{
30
	display: inline-block;
31
	float: left;
32
}
33

    
34
.cke_rtl .cke_combo
35
{
36
	float: right;
37
}
38

    
39
.cke_hc .cke_combo
40
{
41
	margin-top: -2px;
42
}
43

    
44
/* The label of the combo widget. It is invisible by default, yet
45
   it's important for semantics and accessibility. */
46
.cke_combo_label
47
{
48
	display: none;
49
	float: left;
50
	line-height: 34px;
51
	vertical-align: top;
52
	margin-right: 5px;
53
}
54

    
55
.cke_rtl .cke_combo_label
56
{
57
	float: right;
58
	margin-left: 5px;
59
	margin-right: 0;
60
}
61

    
62
/* The container for combo text and arrow. */
63
a.cke_combo_button
64
{
65
	cursor: default;
66
	display: inline-block;
67
	float: left;
68
	margin: 0 8px 0 0;
69
	height: 34px;
70
}
71

    
72
/* Different states of the container. */
73
.cke_combo_off a.cke_combo_button:hover,
74
.cke_combo_off a.cke_combo_button:focus
75
{
76
	background: #e4e4e4;
77
	outline: none;
78
}
79

    
80
.cke_combo_off a.cke_combo_button:active,
81
.cke_combo_on a.cke_combo_button
82
{
83
	background: #e4e4e4;
84
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
85
}
86

    
87
.cke_combo_on a.cke_combo_button:hover,
88
.cke_combo_on a.cke_combo_button:focus,
89
.cke_combo_on a.cke_combo_button:active
90
{
91
}
92

    
93
.cke_rtl .cke_combo_button
94
{
95
	float: right;
96
	margin-left: 5px;
97
	margin-right: 0;
98
}
99

    
100
.cke_hc a.cke_combo_button
101
{
102
	padding: 3px;
103
}
104

    
105
.cke_hc .cke_combo_on a.cke_combo_button,
106
.cke_hc .cke_combo_off a.cke_combo_button:hover,
107
.cke_hc .cke_combo_off a.cke_combo_button:focus,
108
.cke_hc .cke_combo_off a.cke_combo_button:active
109
{
110
	border-width: 3px;
111
	padding: 1px;
112
}
113

    
114
/* The label that shows the current value of the rich combo.
115
   By default, it holds the name of the property.
116
   See: .cke_combo_inlinelabel */
117
.cke_combo_text
118
{
119
	line-height: 34px;
120
	padding-left: 10px;
121
	text-overflow: ellipsis;
122
	overflow: hidden;
123
	float: left;
124
	cursor: default;
125
	color: #474747;
126
    width: 60px;
127
}
128

    
129
.cke_rtl .cke_combo_text
130
{
131
	float: right;
132
	text-align: right;
133
	padding-left: 0;
134
	padding-right: 10px;
135
}
136

    
137
.cke_hc .cke_combo_text
138
{
139
	line-height: 18px;
140
	font-size: 12px;
141
}
142

    
143
/* The handler which opens the panel of rich combo properties.
144
   It holds an arrow as a visual indicator. */
145
.cke_combo_open
146
{
147
	cursor: default;
148
	display: inline-block;
149
	font-size: 0;
150
	height: 34px;
151
	line-height: 36px;
152
	margin: 4px 12px;
153
	width: 5px;
154
}
155

    
156
.cke_hc .cke_combo_open
157
{
158
	height: 12px;
159
}
160

    
161
/* The arrow which is displayed inside of the .cke_combo_open handler. */
162
.cke_combo_arrow
163
{
164
	cursor: default;
165
	margin: 11px 0 0;
166
	float: left;
167

    
168
	/* Pure CSS Arrow */
169
	height: 0;
170
	width: 0;
171
	font-size: 0;
172
	border-left: 4px solid transparent;
173
	border-right: 4px solid transparent;
174
	border-top: 4px solid #474747;
175
}
176

    
177
.cke_hc .cke_combo_arrow
178
{
179
	font-size: 10px;
180
	width: auto;
181
	border: 0;
182
	margin-top: 3px;
183
}
184

    
185
/* Disabled combo button styles. */
186
.cke_combo_disabled .cke_combo_inlinelabel,
187
.cke_combo_disabled .cke_combo_open
188
{
189
	opacity: 0.3;
190
}
(21-21/23)