You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_jquery.contextMenu.scss 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. @charset "UTF-8";
  2. /*!
  3. * jQuery contextMenu - Plugin for simple contextMenu handling
  4. *
  5. * Version: v2.1.1
  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-2016 SWIS BV and contributors
  11. *
  12. * Licensed under
  13. * MIT License http://www.opensource.org/licenses/mit-license
  14. *
  15. * Date: 2016-02-28T09:53:18.890Z
  16. */
  17. @font-face {
  18. font-family: "context-menu-icons";
  19. font-style: normal;
  20. font-weight: normal;
  21. src: url("font/context-menu-icons.eot?2qmzf");
  22. src: url("font/context-menu-icons.eot?2qmzf#iefix") format("embedded-opentype"), url("font/context-menu-icons.woff2?2qmzf") format("woff2"), url("font/context-menu-icons.woff?2qmzf") format("woff"), url("font/context-menu-icons.ttf?2qmzf") format("truetype");
  23. }
  24. .context-menu-icon:before {
  25. position: absolute;
  26. top: 50%;
  27. left: 0;
  28. width: 28px;
  29. font-family: "context-menu-icons";
  30. font-size: 16px;
  31. font-style: normal;
  32. font-weight: normal;
  33. line-height: 1;
  34. color: #2980b9;
  35. text-align: center;
  36. -webkit-transform: translateY(-50%);
  37. -ms-transform: translateY(-50%);
  38. -o-transform: translateY(-50%);
  39. transform: translateY(-50%);
  40. -webkit-font-smoothing: antialiased;
  41. -moz-osx-font-smoothing: grayscale;
  42. }
  43. .context-menu-icon-add:before {
  44. content: "";
  45. }
  46. .context-menu-icon-copy:before {
  47. content: "";
  48. }
  49. .context-menu-icon-cut:before {
  50. content: "";
  51. }
  52. .context-menu-icon-delete:before {
  53. content: "";
  54. }
  55. .context-menu-icon-edit:before {
  56. content: "";
  57. }
  58. .context-menu-icon-paste:before {
  59. content: "";
  60. }
  61. .context-menu-icon-quit:before {
  62. content: "";
  63. }
  64. .context-menu-icon.context-menu-hover:before {
  65. color: #fff;
  66. }
  67. .context-menu-list {
  68. position: absolute;
  69. display: inline-block;
  70. min-width: 180px;
  71. max-width: 360px;
  72. padding: 4px 0;
  73. margin: 5px;
  74. font-family: inherit;
  75. font-size: inherit;
  76. list-style-type: none;
  77. background: #fff;
  78. border: 1px solid #bebebe;
  79. border-radius: $borderRadius;
  80. -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
  81. box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
  82. }
  83. .context-menu-item {
  84. position: relative;
  85. padding: 3px 28px;
  86. color: #2f2f2f;
  87. -webkit-user-select: none;
  88. -moz-user-select: none;
  89. -ms-user-select: none;
  90. user-select: none;
  91. background-color: #fff;
  92. }
  93. .context-menu-separator {
  94. padding: 0;
  95. margin: 5px 0;
  96. border-bottom: 1px solid #e6e6e6;
  97. }
  98. .context-menu-item > label > input,
  99. .context-menu-item > label > textarea {
  100. -webkit-user-select: text;
  101. -moz-user-select: text;
  102. -ms-user-select: text;
  103. user-select: text;
  104. }
  105. .context-menu-item.context-menu-hover {
  106. color: #fff;
  107. cursor: pointer;
  108. background-color: #2980b9;
  109. }
  110. .context-menu-item.context-menu-disabled {
  111. color: #626262;
  112. background-color: #fff;
  113. }
  114. .context-menu-item.context-menu-disabled {
  115. color: #626262;
  116. }
  117. .context-menu-input.context-menu-hover,
  118. .context-menu-item.context-menu-disabled.context-menu-hover {
  119. cursor: default;
  120. background-color: #eee;
  121. }
  122. .context-menu-submenu:after {
  123. position: absolute;
  124. top: 50%;
  125. right: 8px;
  126. z-index: $zindex1;
  127. width: 0;
  128. height: 0;
  129. content: '';
  130. border-color: transparent transparent transparent #2f2f2f;
  131. border-style: solid;
  132. border-width: 4px 0 4px 4px;
  133. -webkit-transform: translateY(-50%);
  134. -ms-transform: translateY(-50%);
  135. -o-transform: translateY(-50%);
  136. transform: translateY(-50%);
  137. }
  138. /**
  139. * Inputs
  140. */
  141. .context-menu-item.context-menu-input {
  142. padding: 5px 10px;
  143. }
  144. /* vertically align inside labels */
  145. .context-menu-input > label > * {
  146. vertical-align: top;
  147. }
  148. /* position checkboxes and radios as icons */
  149. .context-menu-input > label > input[type="checkbox"],
  150. .context-menu-input > label > input[type="radio"] {
  151. position: relative;
  152. top: 3px;
  153. }
  154. .context-menu-input > label,
  155. .context-menu-input > label > input[type="text"],
  156. .context-menu-input > label > textarea,
  157. .context-menu-input > label > select {
  158. display: block;
  159. width: 100%;
  160. -webkit-box-sizing: border-box;
  161. -moz-box-sizing: border-box;
  162. box-sizing: border-box;
  163. }
  164. .context-menu-input > label > textarea {
  165. height: 100px;
  166. }
  167. .context-menu-item > .context-menu-list {
  168. top: 5px;
  169. /* re-positioned by js */
  170. right: -5px;
  171. display: none;
  172. }
  173. .context-menu-item.context-menu-visible > .context-menu-list {
  174. display: block;
  175. }
  176. .context-menu-accesskey {
  177. text-decoration: underline;
  178. }