source: trunk/prototype/plugins/contextmenu/jquery.contextMenu.css @ 5497

Revision 5497, 3.4 KB checked in by adriano, 12 years ago (diff)

Ticket #2486 - alteracao dos menus de contexto e de ferramentas para a funcionalidade

Line 
1/*
2 * jQuery contextMenu - Plugin for simple contextMenu handling
3 *
4 * Version: 1.5.2
5 *
6 * Authors: Rodney Rehm, Addy Osmani (patches for FF)
7 * Web: http://medialize.github.com/jQuery-contextMenu/
8 *
9 * Licensed under
10 *   MIT License http://www.opensource.org/licenses/mit-license
11 *   GPL v3 http://opensource.org/licenses/GPL-3.0
12 *
13 */
14
15.context-menu-list {
16    margin:0;
17    padding:0;
18   
19    min-width: 120px;
20    max-width: 250px;
21    display: inline-block;
22    position: absolute;
23    list-style-type: none;
24   
25    border: 1px solid #DDD;
26    background: #EEE;
27   
28    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
29       -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
30        -ms-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
31         -o-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
32            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
33   
34    font-family: Verdana, Arial, Helvetica, sans-serif;
35    font-size: 11px;
36}
37
38.context-menu-item {
39    padding: 2px 2px 2px 24px;
40    background-color: #EEE;
41    position: relative;
42    -moz-user-select: -moz-none;
43}
44
45.context-menu-separator {
46    padding-bottom:0;
47    border-bottom: 1px solid #DDD;
48}
49
50.context-menu-item > label {
51    -moz-user-select: text;
52}
53
54.context-menu-item.hover {
55    cursor: pointer;
56    background-color: #39F;
57}
58
59.context-menu-item.disabled {
60    color: #666;
61}
62
63.context-menu-input.hover,
64.context-menu-item.disabled.hover {
65    cursor: default;
66    background-color: #EEE;
67}
68
69.context-menu-submenu:after {
70    content: ">";
71    color: #666;
72    position: absolute;
73    top: 0;
74    right: 3px;
75    z-index: 1;
76}
77
78/* icons
79    #protip:
80    In case you want to use sprites for icons (which I would suggest you do) have a look at
81    http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement
82    .context-menu-item.icon:before {}
83 */
84.context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }
85.context-menu-item.icon-edit { background-image: url(images/page_white_edit.png); }
86.context-menu-item.icon-cut { background-image: url(images/cut.png); }
87.context-menu-item.icon-copy { background-image: url(images/page_white_copy.png); }
88.context-menu-item.icon-paste { background-image: url(images/page_white_paste.png); }
89.context-menu-item.icon-delete { background-image: url(images/page_white_delete.png); }
90.context-menu-item.icon-quit { background-image: url(images/door.png); }
91
92/* vertically align inside labels */
93.context-menu-input > label > * { vertical-align: top; }
94
95/* position checkboxes and radios as icons */
96.context-menu-input > label > input[type="checkbox"],
97.context-menu-input > label > input[type="radio"] {
98    margin-left: -17px;
99}
100.context-menu-input > label > span {
101    margin-left: 5px;
102}
103
104.context-menu-input > label,
105.context-menu-input > label > input[type="text"],
106.context-menu-input > label > textarea,
107.context-menu-input > label > select {
108    display: block;
109    width: 100%;
110   
111    -webkit-box-sizing: border-box;
112       -moz-box-sizing: border-box;
113        -ms-box-sizing: border-box;
114         -o-box-sizing: border-box;
115            box-sizing: border-box;
116}
117
118.context-menu-input > label > textarea {
119    height: 100px;
120}
121.context-menu-item > .context-menu-list {
122    display: none;
123    /* re-positioned by js */
124    right: -5px;
125    top: 5px;
126}
127
128.context-menu-item.hover > .context-menu-list {
129    display: block;
130}
131
132.context-menu-accesskey {
133    text-decoration: underline;
134}
Note: See TracBrowser for help on using the repository browser.