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
|
mainui.css (part of editor.css)
|
8
|
=================================
|
9
|
|
10
|
This file styles the basic structure of the CKEditor user interface - the box
|
11
|
that holds everything.
|
12
|
|
13
|
CKEditor offers two main editing modes. The main UI blocks that compose these
|
14
|
modes are:
|
15
|
|
16
|
For "Theme UI" mode, the one most generally used:
|
17
|
|
18
|
+-- .cke_chrome ----------------------+
|
19
|
|+-- .cke_inner ---------------------+|
|
20
|
|| +-- .cke_top -------------------+ ||
|
21
|
|| | | ||
|
22
|
|| +-------------------------------+ ||
|
23
|
|| +-- .cke_contents --------------+ ||
|
24
|
|| | | ||
|
25
|
|| +-------------------------------+ ||
|
26
|
|| +-- .cke_bottom ----------------+ ||
|
27
|
|| | | ||
|
28
|
|| +-------------------------------+ ||
|
29
|
|+-----------------------------------+|
|
30
|
+-------------------------------------+
|
31
|
|
32
|
For "Inline Editing" mode:
|
33
|
|
34
|
+-- .cke_chrome .cke_float------------+
|
35
|
|+-- .cke_inner ---------------------+|
|
36
|
|| +-- .cke_top -------------------+ ||
|
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
|
|
46
|
*/
|
47
|
|
48
|
/* The outer boundary of the interface. */
|
49
|
.cke_chrome
|
50
|
{
|
51
|
/* This is <span>, so transform it into a block.*/
|
52
|
display: block;
|
53
|
border: 1px solid #e0e0e0;
|
54
|
padding: 0;
|
55
|
}
|
56
|
|
57
|
/* The inner boundary of the interface. */
|
58
|
.cke_inner
|
59
|
{
|
60
|
/* This is <span>, so transform it into a block.*/
|
61
|
display: block;
|
62
|
|
63
|
-webkit-touch-callout: none;
|
64
|
|
65
|
background: #e6e6e6;
|
66
|
padding: 0;
|
67
|
}
|
68
|
|
69
|
/* Added to the outer boundary of the UI when in inline editing,
|
70
|
when the UI is floating. */
|
71
|
.cke_float
|
72
|
{
|
73
|
/* Make white the space between the outer and the inner borders. */
|
74
|
border: none;
|
75
|
}
|
76
|
|
77
|
.cke_float .cke_inner
|
78
|
{
|
79
|
/* As we don't have blocks following top (toolbar) we suppress the padding
|
80
|
as the toolbar defines its own margin. */
|
81
|
padding-bottom: 0;
|
82
|
}
|
83
|
|
84
|
/* Make the main spaces enlarge to hold potentially floated content. */
|
85
|
.cke_top,
|
86
|
.cke_contents,
|
87
|
.cke_bottom
|
88
|
{
|
89
|
/* These are <span>s, so transform them into blocks.*/
|
90
|
display: block;
|
91
|
|
92
|
/* Ideally this should be "auto", but it shows scrollbars in IE7. */
|
93
|
overflow: hidden;
|
94
|
}
|
95
|
|
96
|
.cke_top
|
97
|
{
|
98
|
background: #f1f1f1;
|
99
|
/* Allow breaking toolbars when in a narrow editor. (#9947) */
|
100
|
white-space: normal;
|
101
|
|
102
|
}
|
103
|
|
104
|
.cke_float .cke_top
|
105
|
{
|
106
|
border: 1px solid #e0e0e0;
|
107
|
border-bottom-color: #999;
|
108
|
}
|
109
|
|
110
|
.cke_contents {
|
111
|
padding: 16px;
|
112
|
}
|
113
|
|
114
|
.cke_bottom
|
115
|
{
|
116
|
background: #f1f1f1;
|
117
|
padding: 4px 8px;
|
118
|
position: relative;
|
119
|
}
|
120
|
|
121
|
/* On iOS we need to manually enable scrolling in the contents block. (#9945) */
|
122
|
.cke_browser_ios .cke_contents
|
123
|
{
|
124
|
overflow-y: scroll !important;
|
125
|
-webkit-overflow-scrolling: touch;
|
126
|
}
|
127
|
|
128
|
/* The resizer is the small UI element that is rendered at the bottom right
|
129
|
part of the editor. It makes is possible to resize the editor UI. */
|
130
|
.cke_resizer
|
131
|
{
|
132
|
/* To avoid using images for the resizer, we create a small triangle,
|
133
|
using some CSS magic. */
|
134
|
width: 0;
|
135
|
height: 0;
|
136
|
overflow: hidden;
|
137
|
width: 0;
|
138
|
height: 0;
|
139
|
overflow: hidden;
|
140
|
border-width: 10px 10px 0 0;
|
141
|
border-color: transparent #666 transparent transparent;
|
142
|
border-style: dashed solid dashed dashed;
|
143
|
|
144
|
font-size: 0;
|
145
|
vertical-align: bottom;
|
146
|
|
147
|
margin-top: 6px;
|
148
|
|
149
|
/* A margin in case of no other element in the same container
|
150
|
to keep a distance to the bottom edge. */
|
151
|
margin-bottom: 2px;
|
152
|
|
153
|
}
|
154
|
|
155
|
.cke_hc .cke_resizer
|
156
|
{
|
157
|
font-size: 15px;
|
158
|
width: auto;
|
159
|
height: auto;
|
160
|
border-width: 0;
|
161
|
}
|
162
|
|
163
|
.cke_resizer_ltr
|
164
|
{
|
165
|
cursor: se-resize;
|
166
|
|
167
|
float: right;
|
168
|
margin-right: -4px;
|
169
|
}
|
170
|
|
171
|
/* This class is added in RTL mode. This is a special case for the resizer
|
172
|
(usually the .cke_rtl class is used), because it may not necessarily be in
|
173
|
RTL mode if the main UI is RTL. It depends instead on the context where the
|
174
|
editor is inserted on. */
|
175
|
.cke_resizer_rtl
|
176
|
{
|
177
|
border-width: 10px 0 0 10px;
|
178
|
border-color: transparent transparent transparent #A5A5A5;
|
179
|
border-style: dashed dashed dashed solid;
|
180
|
|
181
|
cursor: sw-resize;
|
182
|
|
183
|
float: left;
|
184
|
margin-left: -4px;
|
185
|
right: auto;
|
186
|
}
|
187
|
|
188
|
/* The editing area (where users type) can be rendered as an editable <div>
|
189
|
element (e.g. divarea plugin). In that case, this is the class applied to
|
190
|
that element. */
|
191
|
.cke_wysiwyg_div
|
192
|
{
|
193
|
display: block;
|
194
|
height: 100%;
|
195
|
overflow: auto;
|
196
|
padding: 0 8px;
|
197
|
outline-style: none;
|
198
|
|
199
|
box-sizing: border-box;
|
200
|
}
|