jquery.contextMenu.css 3.7 KB

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