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 |
colorpanel.css (part of editor.css)
|
|
|
8 |
=====================================
|
|
|
9 |
|
|
|
10 |
The color panel is related to the contents part of the panels that are
|
|
|
11 |
displayed when clicking the color buttons of the toolbar. See panels.css for
|
|
|
12 |
styles related to the outer part of panels.
|
|
|
13 |
|
|
|
14 |
The following is the visual representation of the color panel contents:
|
|
|
15 |
|
|
|
16 |
+-- .cke_panel_block.cke_colorblock --+
|
|
|
17 |
| +-- a.cke_colorauto --------------+ |
|
|
|
18 |
| | | |
|
|
|
19 |
| | AUTOMATIC COLOR | |
|
|
|
20 |
| | | |
|
|
|
21 |
| +---------------------------------+ |
|
|
|
22 |
| +-- table ------------------------+ |
|
|
|
23 |
| | | |
|
|
|
24 |
| | COLOR PALETTE | |
|
|
|
25 |
| | | |
|
|
|
26 |
| |---------------------------------| |
|
|
|
27 |
| | "More Colors" | |
|
|
|
28 |
| +---------------------------------+ |
|
|
|
29 |
+-------------------------------------+
|
|
|
30 |
|
|
|
31 |
The AUTOMATIC COLOR section is an <a> containing a table with two cells with
|
|
|
32 |
the following contents:
|
|
|
33 |
|
|
|
34 |
+-- TD -----------------+ +-- TD -----------------+
|
|
|
35 |
| +-- .cke_colorbox --+ | | |
|
|
|
36 |
| | | | | "Automatic" |
|
|
|
37 |
| +-------------------+ | | |
|
|
|
38 |
+-----------------------+ +-----------------------+
|
|
|
39 |
|
|
|
40 |
The COLOR PALETTE section instead is a table with a variable number of cells
|
|
|
41 |
(by default 8). Each cell represents a color box, with the following structure:
|
|
|
42 |
|
|
|
43 |
+-- A.cke_colorbox ---------+
|
|
|
44 |
| +-- SPAN.cke_colorbox --+ |
|
|
|
45 |
| | | |
|
|
|
46 |
| +-----------------------+ |
|
|
|
47 |
+---------------------------+
|
|
|
48 |
*/
|
|
|
49 |
|
|
|
50 |
/* The container of the color palette. */
|
|
|
51 |
.cke_colorblock {
|
|
|
52 |
padding: 3px;
|
|
|
53 |
font-size: 11px;
|
|
|
54 |
font-family: 'Microsoft Sans Serif', Tahoma, Arial, Verdana, Sans-Serif;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
.cke_colorblock,
|
|
|
58 |
.cke_colorblock a {
|
|
|
59 |
text-decoration: none;
|
|
|
60 |
color: #000;
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
/* The box which is to represent a single color on the color palette.
|
|
|
64 |
It is a small, square-shaped element which can be selected from the palette. */
|
|
|
65 |
span.cke_colorbox {
|
|
|
66 |
width: 10px;
|
|
|
67 |
height: 10px;
|
|
|
68 |
border: 1px solid $gray;
|
|
|
69 |
float: left;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
.cke_rtl span.cke_colorbox {
|
|
|
73 |
float: right;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
/* The wrapper of the span.cke_colorbox. It provides an extra border and padding. */
|
|
|
77 |
a.cke_colorbox {
|
|
|
78 |
border: 1px solid #fff;
|
|
|
79 |
padding: 2px;
|
|
|
80 |
float: left;
|
|
|
81 |
width: 12px;
|
|
|
82 |
height: 12px;
|
|
|
83 |
border-radius: 2px;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
.cke_rtl a.cke_colorbox {
|
|
|
87 |
float: right;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
/* Different states of the a.cke_colorbox wrapper. */
|
|
|
91 |
a {
|
|
|
92 |
&:hover, &:focus, &:active {
|
|
|
93 |
&.cke_colorbox {
|
|
|
94 |
border: 1px solid $hr-border;
|
|
|
95 |
background-color: $gray-lighter;
|
|
|
96 |
}
|
|
|
97 |
}
|
|
|
98 |
}
|
|
|
99 |
|
|
|
100 |
/* Buttons which are visible at the top/bottom of the color palette:
|
|
|
101 |
- cke_colorauto (TOP) applies the automatic color.
|
|
|
102 |
- cke_colormore (BOTTOM) executes the color dialog.
|
|
|
103 |
*/
|
|
|
104 |
a.cke_colorauto, a.cke_colormore {
|
|
|
105 |
border: 1px solid #fff;
|
|
|
106 |
padding: 2px;
|
|
|
107 |
display: block;
|
|
|
108 |
cursor: pointer;
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
/* Different states of cke_colorauto/cke_colormore buttons. */
|
|
|
112 |
a {
|
|
|
113 |
&:hover, &:focus, &:active {
|
|
|
114 |
&.cke_colorauto, &.cke_colormore {
|
|
|
115 |
border: 1px solid $hr-border;
|
|
|
116 |
background-color: $gray-lighter;
|
|
|
117 |
}
|
|
|
118 |
}
|
|
|
119 |
}
|