-
Notifications
You must be signed in to change notification settings - Fork 1
/
colorpanel.css
183 lines (158 loc) · 3.99 KB
/
colorpanel.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/*
colorpanel.css (part of editor.css)
=====================================
The color panel is related to the contents part of the panels that are
displayed when clicking the color buttons of the toolbar. See panels.css for
styles related to the outer part of panels.
The following is the visual representation of the color panel contents:
+-- .cke_panel_block.cke_colorblock --+
| +-- a.cke_colorauto --------------+ |
| | | |
| | AUTOMATIC COLOR | |
| | | |
| +---------------------------------+ |
| +-- table ------------------------+ |
| | | |
| | COLOR PALETTE | |
| | | |
| |---------------------------------| |
| | "More Colors" | |
| +---------------------------------+ |
+-------------------------------------+
The AUTOMATIC COLOR section is an <a> containing a table with two cells with
the following contents:
+-- TD -----------------+ +-- TD -----------------+
| +-- .cke_colorbox --+ | | |
| | | | | "Automatic" |
| +-------------------+ | | |
+-----------------------+ +-----------------------+
The COLOR PALETTE section instead is a table with a variable number of cells
(by default 8). Each cell represents a color box, with the following structure:
+-- A.cke_colorbox ---------+
| +-- SPAN.cke_colorbox --+ |
| | | |
| +-----------------------+ |
+---------------------------+
*/
/* The container of the color palette. */
.cke_colorblock
{
padding: 10px;
font-size: 11px;
font-family: 'Microsoft Sans Serif', Tahoma, Arial, Verdana, Sans-Serif;
}
.cke_colorblock,
.cke_colorblock a
{
text-decoration: none;
color: #000;
}
/* The wrapper of the span.cke_colorbox. It provides an extra border and padding. */
a.cke_colorbox
{
padding: 2px;
float: left;
width: 20px;
height: 20px;
}
.cke_rtl a.cke_colorbox
{
float: right;
}
/* Different states of the a.cke_colorbox wrapper. */
a:hover.cke_colorbox,
a:focus.cke_colorbox,
a:active.cke_colorbox
{
outline: none;
padding: 0;
border: 2px solid #139FF7;
}
a:hover.cke_colorbox
{
border-color: #bcbcbc;
}
/* The box which is to represent a single color on the color palette.
It is a small, square-shaped element which can be selected from the palette. */
span.cke_colorbox
{
width: 20px;
height: 20px;
float: left;
}
.cke_rtl span.cke_colorbox
{
float: right;
}
/* Buttons which are visible at the top/bottom of the color palette:
- cke_colorauto (TOP) applies the automatic color.
- cke_colormore (BOTTOM) executes the color dialog.
*/
a.cke_colorauto,
a.cke_colormore
{
border: #fff 1px solid;
padding: 3px;
display: block;
cursor: pointer;
}
a.cke_colorauto
{
padding: 0;
border: 1px solid transparent;
margin-bottom: 6px;
height: 26px;
line-height: 26px;
}
a.cke_colormore
{
margin-top: 10px;
height: 20px;
line-height: 19px;
}
/* Different states of cke_colorauto/cke_colormore buttons. */
a:hover.cke_colorauto,
a:hover.cke_colormore,
a:focus.cke_colorauto,
a:focus.cke_colormore,
a:active.cke_colorauto,
a:active.cke_colormore
{
outline: none;
border: #139FF7 1px solid;
background-color: #f8f8f8;
}
a:hover.cke_colorauto,
a:hover.cke_colormore
{
border-color: #bcbcbc;
}
.cke_colorauto span.cke_colorbox
{
width: 18px;
height: 18px;
border: 1px solid #808080;
margin-left: 1px;
margin-top: 3px;
}
.cke_rtl .cke_colorauto span.cke_colorbox
{
margin-left: 0;
margin-right: 1px;
}
span.cke_colorbox[style*="#ffffff"],
span.cke_colorbox[style*="#FFFFFF"],
span.cke_colorbox[style="background-color:#fff"],
span.cke_colorbox[style="background-color:#FFF"],
/* IE, Edge */
span.cke_colorbox[style*="rgb(255,255,255)"],
span.cke_colorbox[style*="rgb(255, 255, 255)"]
{
border: 1px solid #808080;
width: 18px;
height: 18px;
}