forked from Studio-42/elFinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contextmenu.css
120 lines (108 loc) · 3.44 KB
/
contextmenu.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
/* menu and submenu */
.elfinder .elfinder-contextmenu,
.elfinder .elfinder-contextmenu-sub {
display:none;
position:absolute;
border:1px solid #aaa;
background:#fff;
color:#555;
padding:4px 0;
}
/* submenu */
.elfinder .elfinder-contextmenu-sub { top:5px; }
/* submenu in rtl/ltr enviroment */
.elfinder .elfinder-contextmenu-ltr .elfinder-contextmenu-sub { margin-left:-5px; }
.elfinder .elfinder-contextmenu-rtl .elfinder-contextmenu-sub { margin-right:-5px; }
/* menu item */
.elfinder .elfinder-contextmenu-header {
margin-top: -4px;
padding: 0 .5em .2ex;
border: none;
text-align: center;
}
.elfinder .elfinder-contextmenu-header span {
font-weight: normal;
font-size: 0.8em;
font-weight: bolder;
}
.elfinder .elfinder-contextmenu-item {
position:relative;
display:block;
padding:4px 30px;
text-decoration:none;
white-space:nowrap;
cursor:default;
}
.elfinder .elfinder-contextmenu-item .ui-icon {
width:16px;
height:16px;
position:absolute;
left:auto;
right:auto;
top:50%;
margin-top:-8px;
display:none;
}
.elfinder .elfinder-contextmenu-ltr .elfinder-contextmenu-item .ui-icon {
left: 2px;
}
.elfinder .elfinder-contextmenu-rtl .elfinder-contextmenu-item .ui-icon {
right: 2px;
}
.elfinder-touch .elfinder-contextmenu-item {
padding:12px 38px;
}
/* text in item */
.elfinder .elfinder-contextmenu .elfinder-contextmenu-item span { display:block; }
/* submenu item in rtl/ltr enviroment */
.elfinder .elfinder-contextmenu-ltr .elfinder-contextmenu-item { text-align:left; }
.elfinder .elfinder-contextmenu-rtl .elfinder-contextmenu-item { text-align:right; }
.elfinder .elfinder-contextmenu-ltr .elfinder-contextmenu-sub .elfinder-contextmenu-item { padding-left:12px; }
.elfinder .elfinder-contextmenu-rtl .elfinder-contextmenu-sub .elfinder-contextmenu-item { padding-right:12px; }
/* command/submenu icon */
.elfinder .elfinder-contextmenu-extra-icon,
.elfinder .elfinder-contextmenu-arrow,
.elfinder .elfinder-contextmenu-icon {
position:absolute;
top:50%;
margin-top:-8px;
overflow: hidden;
}
/* command icon in rtl/ltr enviroment */
.elfinder .elfinder-contextmenu-ltr .elfinder-contextmenu-icon { left:8px; }
.elfinder .elfinder-contextmenu-rtl .elfinder-contextmenu-icon { right:8px; }
.elfinder .elfinder-contextmenu-ltr .elfinder-contextmenu-extra-icon { right:8px; }
.elfinder .elfinder-contextmenu-rtl .elfinder-contextmenu-extra-icon { left:8px; }
/* arrow icon */
.elfinder .elfinder-contextmenu-arrow {
width:16px;
height:16px;
background:url('../img/arrows-normal.png') 5px 4px no-repeat;
}
/* arrow icon in rtl/ltr enviroment */
.elfinder .elfinder-contextmenu-ltr .elfinder-contextmenu-arrow { right:5px; }
.elfinder .elfinder-contextmenu-rtl .elfinder-contextmenu-arrow { left:5px; background-position: 0 -10px; }
/* command extra icon's <a>, <span> tag */
.elfinder .elfinder-contextmenu-extra-icon a,
.elfinder .elfinder-contextmenu-extra-icon span {
display: inline-block;
width: 100%;
height: 100%;
padding: 20px;
margin: 0;
color: transparent !important;
text-decoration: none;
cursor: pointer;
}
/* disable ui border/bg image on hover */
.elfinder .elfinder-contextmenu .ui-state-hover { border:0 solid; background-image:none;}
/* separator */
.elfinder .elfinder-contextmenu-separator {
height:0px;
border-top:1px solid #ccc;
margin:0 1px;
}
/* for CSS style priority to ui-state-disabled - "background-image: none" */
.elfinder .elfinder-button-icon.ui-state-disabled {
background-image: url('../img/toolbar.png') !important;
}