Dotclear

source: plugins/dcCKEditor/js/ckeditor-skins/dotclear/sass/_panel.scss @ 2738:d6b4c5ac9b33

Revision 2738:d6b4c5ac9b33, 5.4 KB checked in by Nicolas <nikrou77@…>, 11 years ago (diff)

Integrate dcCKEditor to distribution

Line 
1/*
2Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5
6/*
7panel.css (part of editor.css)
8================================
9
10Panels are floating elements that can hold different types of contents.
11The 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
18Panel contents are wrapped into an iframe, so it is possible to have additional
19CSS loaded inside them (e.g. to have more accurate preview on the styles combo).
20
21The 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
39This file also defines styles for panel lists (used by combos). For menu-like
40panel 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
50     border: 1px solid #8f8f73;
51     background-color: #fff;
52
53     width: 120px;
54     height: 100px;
55
56     overflow: hidden;
57
58     -moz-border-radius: 3px;
59     -webkit-border-radius: 3px;
60     border-radius: 3px;
61}
62
63/* This class represents panels which are used as context menus. */
64.cke_menu_panel
65{
66     padding: 2px;
67     margin: 0;
68}
69
70/* This class represents panels which are used by rich combos. */
71.cke_combopanel
72{
73     border: 1px solid #8f8f73;
74     -moz-border-radius-topleft: 0;
75     -webkit-border-top-left-radius: 0;
76     border-top-left-radius: 0;
77     width: 150px;
78    height: 170px;
79}
80
81/* The IFRAME the panel is wrapped into. */
82.cke_panel_frame
83{
84     width: 100%;
85     height: 100%;
86
87     /* Font */
88     font-family: Arial, Verdana, sans-serif;
89     font-size: 12px;
90
91     overflow: auto;
92     overflow-x: hidden;
93}
94
95/* The HTML document which is a direct descendant of the IFRAME */
96.cke_panel_container
97{
98     overflow-y: auto;
99     overflow-x: hidden;
100}
101
102/*
103Here we start the definition of panel lists (e.g. combo panels). The following
104is its visual representation:
105
106+-- .cke_panel_block -----------------+
107| +-- .cke_panel_grouptitle --------+ |
108| |                                 | |
109| +---------------------------------+ |
110| +-- .cke_panel_list --------------+ |
111| | +-- .cke_panel_listItem ------+ | |
112| | | +-- a --------------------+ | | |
113| | | | +-- span -------------+ | | | |
114| | | | |                     | | | | |
115| | | | +---------------------+ | | | |
116| | | +-------------------------+ | | |
117| | +-----------------------------+ | |
118| | +-- .cke_panel_listItem ------+ | |
119| | | +-- a --------------------+ | | |
120| | | | +-- span -------------+ | | | |
121| | | | |                     | | | | |
122| | | | +---------------------+ | | | |
123| | | +-------------------------+ | | |
124| | +-----------------------------+ | |
125| | ...                             | |
126| +---------------------------------+ |
127+-------------------------------------+
128*/
129
130
131/* The list of panel items. */
132.cke_panel_list
133{
134     list-style-type: none;
135     margin: 3px;
136     padding: 0px;
137     white-space: nowrap;
138}
139
140/* The item of .cke_panel_list */
141.cke_panel_listItem
142{
143     margin: 0px;
144}
145
146/* The child of .cke_panel_listItem. These elements contain spans which are
147   to display a real name of the property which is visible for an end-user. */
148.cke_panel_listItem a
149{
150     padding: 2px;
151     display: block;
152     border: 1px solid #fff;
153     color: inherit !important;
154     text-decoration: none;
155     overflow: hidden;
156     text-overflow: ellipsis;
157}
158
159/* IE6 */
160* html .cke_panel_listItem a
161{
162     width : 100%;
163
164     /* IE is not able to inherit the color, so we must force it to black */
165     color: #000;
166}
167
168/* IE7 */
169*:first-child+html .cke_panel_listItem a
170{
171     /* IE is not able to inherit the color, so we must force it to black */
172     color: #000;
173}
174
175.cke_panel_listItem.cke_selected a
176{
177     border: 1px solid #ccc;
178     background-color: #e9f5ff;
179}
180
181.cke_panel_listItem a:hover,
182.cke_panel_listItem a:focus,
183.cke_panel_listItem a:active
184{
185     border-color: #316ac5;
186     background-color: #dff1ff;
187}
188
189.cke_hc .cke_panel_listItem.cke_selected a,
190.cke_hc .cke_panel_listItem a:hover,
191.cke_hc .cke_panel_listItem a:focus,
192.cke_hc .cke_panel_listItem a:active
193{
194     border-width: 3px;
195     padding: 0px;
196}
197
198/* The title of the entire panel which is visible on top of the list. */
199.cke_panel_grouptitle
200{
201     font-size: 11px;
202     font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
203     font-weight: bold;
204     white-space: nowrap;
205     background-color: #dcdcdc;
206     color: #000;
207     margin:0px;
208     padding:3px;
209}
210
211/* The following styles set defaults of the elements used by the Paragraph
212   Format panel. */
213.cke_panel_listItem p,
214.cke_panel_listItem h1,
215.cke_panel_listItem h2,
216.cke_panel_listItem h3,
217.cke_panel_listItem h4,
218.cke_panel_listItem h5,
219.cke_panel_listItem h6,
220.cke_panel_listItem pre
221{
222     margin-top: 3px;
223     margin-bottom: 3px;
224}
Note: See TracBrowser for help on using the repository browser.

Sites map