Dotclear

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

Revision 2738:d6b4c5ac9b33, 4.8 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/*
7menu.css (part of editor.css)
8===============================
9
10This file styles menus used in the editor UI. These menus are the list of
11options available inside some "floating panels", like menu buttons of the
12toolbar or the context menu.
13
14Note that the menu itself doesn't include the floating element that holds it.
15That element is styles in the panel.css file.
16
17The following is a visual representation of the main elements of a menu:
18
19+-- .cke_menu -----------------+
20| +-- .cke_menuitem  --------+ |
21| | +-- .cke_menubutton ---+ | |
22| | |                      | | |
23| | +----------------------+ | |
24| +--------------------------+ |
25| +-- .cke_menuseparator ----+ |
26| ...                          |
27+------------------------------+
28
29This is the .cke_menubutton structure:
30(Note that the menu button icon shares with toolbar button the common class .cke_button_icon to achieve the same outlook.)
31
32+-- .cke_menubutton -------------------------------------------------------------------------+
33| +-- .cke_menubutton_inner ---------------------------------------------------------------+ |
34| | +-- .cke_menubutton_icon ---+ +-- .cke_menubutton_label --+ +-- .cke_cke_menuarrow --+ | |
35| | | +-- .cke_button_icon ---+ | |                           | |                        | | |
36| | | |                       | | |                           | |                        | | |
37| | | +-----------------------+ | |                           | |                        | | |
38| | +---------------------------+ +---------------------------+ +------------------------+ | |
39| +----------------------------------------------------------------------------------------+ |
40+--------------------------------------------------------------------------------------------+
41
42Special outer level classes used in this file:
43
44     .cke_hc: Available when the editor is rendered on "High Contrast".
45     .cke_rtl: Available when the editor UI is on RTL.
46*/
47
48/* .cke_menuitem is the element that holds the entire structure of each of the
49   menu items. */
50
51.cke_menubutton
52{
53     /* The "button" inside a menu item is a <a> element.
54        Transforms it into a block. */
55     display:block;
56}
57
58.cke_menuitem span
59{
60     /* Avoid the text selection cursor inside menu items. */
61     cursor: default;
62}
63
64.cke_menubutton:hover,
65.cke_menubutton:focus,
66.cke_menubutton:active
67{
68     background-color: #D3D3D3;
69     display:block;
70}
71
72.cke_hc .cke_menubutton:hover,
73.cke_hc .cke_menubutton:focus,
74.cke_hc .cke_menubutton:active
75{
76     border: 2px solid;
77}
78
79.cke_menubutton_inner {
80     display: table-row;
81}
82
83.cke_menubutton_icon,
84.cke_menubutton_label,
85.cke_menuarrow {
86     display: table-cell;
87}
88
89/* The menu item icon. */
90.cke_menubutton_icon
91{
92     background-color: #D3D3D3;
93     opacity: 0.70; /* Safari, Opera and Mozilla */
94     filter: alpha(opacity=70); /* IE */
95     padding: 4px;
96}
97
98.cke_hc .cke_menubutton_icon
99{
100     height: 16px;
101     width: 0;
102     padding: 4px 0;
103}
104
105.cke_menubutton:hover .cke_menubutton_icon,
106.cke_menubutton:focus .cke_menubutton_icon,
107.cke_menubutton:active .cke_menubutton_icon
108{
109     background-color: #9d9d9d;
110}
111
112.cke_menubutton_disabled:hover .cke_menubutton_icon,
113.cke_menubutton_disabled:focus .cke_menubutton_icon,
114.cke_menubutton_disabled:active .cke_menubutton_icon
115{
116     /* The icon will get opacity as well when hovered. */
117     opacity: 0.3;
118     filter: alpha(opacity=30);
119}
120
121/* The textual part of each menu item. */
122.cke_menubutton_label
123{
124     padding: 0 5px;
125     background-color: transparent;
126     width: 100%;
127     vertical-align: middle;
128}
129
130.cke_menubutton_disabled .cke_menubutton_label
131{
132     /* Greyed label text indicates a disabled menu item. */
133     opacity: 0.3;
134     filter: alpha(opacity=30);
135}
136
137.cke_menubutton_on
138{
139     border: 1px solid #ccc;
140     background-color: #e9f5ff;
141}
142
143.cke_menubutton_on .cke_menubutton_icon
144{
145     padding-right: 3px;
146}
147
148.cke_menubutton:hover,
149.cke_menubutton:focus,
150.cke_menubutton:active
151{
152     background-color: #D3D3D3;
153}
154
155.cke_menubutton_on:hover,
156.cke_menubutton_on:focus,
157.cke_menubutton_on:active
158{
159     border-color: #316ac5;
160     background-color: #dff1ff;
161}
162
163.cke_panel_frame .cke_menubutton_label
164{
165     display: none;
166}
167
168/* The separator used to separate menu item groups. */
169.cke_menuseparator
170{
171     background-color: #D3D3D3;
172     height: 2px;
173     filter: alpha(opacity=70); /* IE */
174     opacity: 0.70; /* Safari, Opera and Mozilla */
175}
176
177/* The small arrow shown for item with sub-menus. */
178.cke_menuarrow
179{
180     /* arrowright.gif*/
181     background-image: url(images/sprites.png);
182     background-position: 0 -1400px;
183     background-repeat: no-repeat;
184     padding: 0 5px;
185}
186
187.cke_rtl .cke_menuarrow
188{
189     /* arrowleft.gif*/
190     background-image: url(images/sprites.png);
191     background-position: 7px -1380px;
192     background-repeat: no-repeat;
193}
194
195.cke_menuarrow span
196{
197     display: none;
198}
199
200.cke_hc .cke_menuarrow
201{
202}
203
204.cke_hc .cke_menuarrow span
205{
206     vertical-align: middle;
207     display: inline;
208}
Note: See TracBrowser for help on using the repository browser.

Sites map