jquery.contextMenu.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. @charset "UTF-8";
  2. /*!
  3. * jQuery contextMenu - Plugin for simple contextMenu handling
  4. *
  5. * Version: v@VERSION
  6. *
  7. * Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)
  8. * Web: http://swisnl.github.io/jQuery-contextMenu/
  9. *
  10. * Copyright (c) 2011-@YEAR SWIS BV and contributors
  11. *
  12. * Licensed under
  13. * MIT License http://www.opensource.org/licenses/mit-license
  14. *
  15. * Date: @DATE
  16. */
  17. @-webkit-keyframes cm-spin {
  18. 0% {
  19. -webkit-transform: translateY(-50%) rotate(0deg);
  20. transform: translateY(-50%) rotate(0deg); }
  21. 100% {
  22. -webkit-transform: translateY(-50%) rotate(359deg);
  23. transform: translateY(-50%) rotate(359deg); } }
  24. @keyframes cm-spin {
  25. 0% {
  26. -webkit-transform: translateY(-50%) rotate(0deg);
  27. transform: translateY(-50%) rotate(0deg); }
  28. 100% {
  29. -webkit-transform: translateY(-50%) rotate(359deg);
  30. transform: translateY(-50%) rotate(359deg); } }
  31. @font-face {
  32. font-family: "context-menu-icons";
  33. src: url("font/context-menu-icons.eot?4llt4");
  34. src: url("font/context-menu-icons.eot?4llt4#iefix") format("embedded-opentype"), url("font/context-menu-icons.woff2?4llt4") format("woff2"), url("font/context-menu-icons.woff?4llt4") format("woff"), url("font/context-menu-icons.ttf?4llt4") format("truetype");
  35. font-weight: normal;
  36. font-style: normal; }
  37. .context-menu-icon-add:before {
  38. content: "\EA01"; }
  39. .context-menu-icon-copy:before {
  40. content: "\EA02"; }
  41. .context-menu-icon-cut:before {
  42. content: "\EA03"; }
  43. .context-menu-icon-delete:before {
  44. content: "\EA04"; }
  45. .context-menu-icon-edit:before {
  46. content: "\EA05"; }
  47. .context-menu-icon-loading:before {
  48. content: "\EA06"; }
  49. .context-menu-icon-paste:before {
  50. content: "\EA07"; }
  51. .context-menu-icon-quit:before {
  52. content: "\EA08"; }
  53. .context-menu-icon::before {
  54. color: #76838f;
  55. font-family: "Web Icons";
  56. font-style: normal;
  57. font-weight: normal;
  58. font-size: 1rem;
  59. left: 0;
  60. line-height: 1;
  61. position: absolute;
  62. text-align: center;
  63. top: 50%;
  64. -webkit-transform: translateY(-50%);
  65. transform: translateY(-50%);
  66. -webkit-font-smoothing: antialiased;
  67. -moz-osx-font-smoothing: grayscale;
  68. width: 2em; }
  69. .context-menu-icon.context-menu-hover:before {
  70. color: #76838f; }
  71. .context-menu-icon.context-menu-disabled::before {
  72. color: #e4eaec; }
  73. .context-menu-icon.context-menu-icon-loading:before {
  74. -webkit-animation: cm-spin 2s infinite;
  75. animation: cm-spin 2s infinite; }
  76. .context-menu-icon.context-menu-icon--fa {
  77. display: list-item;
  78. font-family: inherit; }
  79. .context-menu-icon.context-menu-icon--fa::before {
  80. color: #76838f;
  81. font-family: FontAwesome;
  82. font-style: normal;
  83. font-weight: normal;
  84. font-size: 1rem;
  85. left: 0;
  86. line-height: 1;
  87. position: absolute;
  88. text-align: center;
  89. top: 50%;
  90. -webkit-transform: translateY(-50%);
  91. transform: translateY(-50%);
  92. -webkit-font-smoothing: antialiased;
  93. -moz-osx-font-smoothing: grayscale;
  94. width: 2em; }
  95. .context-menu-icon.context-menu-icon--fa.context-menu-hover:before {
  96. color: #76838f; }
  97. .context-menu-icon.context-menu-icon--fa.context-menu-disabled::before {
  98. color: #e4eaec; }
  99. .context-menu-list {
  100. position: absolute;
  101. display: inline-block;
  102. min-width: 160px;
  103. max-width: 26em;
  104. padding: 5px 5px;
  105. margin: 0.3em;
  106. font-family: inherit;
  107. font-size: inherit;
  108. list-style-type: none;
  109. background: #fff;
  110. border: 1px solid #e4eaec;
  111. border-radius: 0.215rem;
  112. box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05); }
  113. .context-menu-item {
  114. position: relative;
  115. padding: 0.572rem 1.072rem;
  116. color: #76838f;
  117. -webkit-user-select: none;
  118. -moz-user-select: none;
  119. -ms-user-select: none;
  120. user-select: none;
  121. background-color: #fff; }
  122. .context-menu-separator {
  123. padding: 0;
  124. margin: 0.35em 0;
  125. border-bottom: 1px solid #e4eaec; }
  126. .context-menu-item > label > input, .context-menu-item > label > textarea {
  127. -webkit-user-select: text;
  128. -moz-user-select: text;
  129. -ms-user-select: text;
  130. user-select: text; }
  131. .context-menu-item.context-menu-hover {
  132. color: #76838f;
  133. cursor: pointer;
  134. background-color: #f3f7f9; }
  135. .context-menu-item.context-menu-disabled {
  136. color: #e4eaec;
  137. cursor: default;
  138. background-color: #fff; }
  139. .context-menu-input.context-menu-hover {
  140. color: #76838f;
  141. cursor: default; }
  142. .context-menu-submenu:after {
  143. position: absolute;
  144. top: 50%;
  145. right: .5em;
  146. z-index: 1;
  147. width: 0;
  148. height: 0;
  149. content: "";
  150. border-color: transparent transparent transparent #76838f;
  151. border-style: solid;
  152. border-width: .25em 0 .25em .25em;
  153. -webkit-transform: translateY(-50%);
  154. transform: translateY(-50%); }
  155. /**
  156. * Inputs
  157. */
  158. .context-menu-item.context-menu-input {
  159. padding: .3em .6em; }
  160. /* vertically align inside labels */
  161. .context-menu-input > label > * {
  162. vertical-align: top; }
  163. /* position checkboxes and radios as icons */
  164. .context-menu-input > label > input[type="checkbox"], .context-menu-input > label > input[type="radio"] {
  165. position: relative;
  166. top: .12em;
  167. margin-right: .4em; }
  168. .context-menu-input > label {
  169. margin: 0; }
  170. .context-menu-input > label, .context-menu-input > label > input[type="text"], .context-menu-input > label > textarea, .context-menu-input > label > select {
  171. box-sizing: border-box;
  172. display: block;
  173. width: 100%; }
  174. .context-menu-input > label > textarea {
  175. height: 7em; }
  176. .context-menu-item > .context-menu-list {
  177. top: .3em;
  178. /* re-positioned by js */
  179. right: -.3em;
  180. display: none; }
  181. .context-menu-item.context-menu-visible > .context-menu-list {
  182. display: block; }
  183. .context-menu-accesskey {
  184. text-decoration: underline; }
  185. .context-menu-extend-icon {
  186. display: block !important; }
  187. .context-menu-extend-icon:before {
  188. position: static;
  189. text-align: left; }
  190. .context-menu-extend-icon > span {
  191. margin-left: .5em; }