jquery.cytoscape-panzoom.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. /* jquery.cytoscape-panzoom.css */
  2. /**
  3. * This file is part of cytoscape.js 2.0.2.
  4. *
  5. * Cytoscape.js is free software: you can redistribute it and/or modify it
  6. * under the terms of the GNU Lesser General Public License as published by the Free
  7. * Software Foundation, either version 3 of the License, or (at your option) any
  8. * later version.
  9. *
  10. * Cytoscape.js is distributed in the hope that it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  12. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  13. * details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public License along with
  16. * cytoscape.js. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. .ui-cytoscape-panzoom {
  19. position: absolute;
  20. font-size: 12px;
  21. color: #fff;
  22. font-family: arial, helvetica, sans-serif;
  23. line-height: 1;
  24. color: #666;
  25. font-size: 11px;
  26. z-index: 99999;
  27. }
  28. .ui-cytoscape-panzoom-zoom-button {
  29. cursor: pointer;
  30. padding: 3px;
  31. text-align: center;
  32. position: absolute;
  33. border-radius: 3px;
  34. width: 10px;
  35. height: 10px;
  36. left: 16px;
  37. background: #fff;
  38. border: 1px solid #999;
  39. margin-left: -1px;
  40. margin-top: -1px;
  41. z-index: 1;
  42. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  43. }
  44. .ui-cytoscape-panzoom-zoom-button:active,
  45. .ui-cytoscape-panzoom-slider-handle:active,
  46. .ui-cytoscape-panzoom-slider-handle.active {
  47. background: #ddd;
  48. }
  49. .ui-cytoscape-panzoom-pan-button {
  50. position: absolute;
  51. z-index: 1;
  52. height: 16px;
  53. width: 16px;
  54. }
  55. .ui-cytoscape-panzoom-reset {
  56. top: 55px;
  57. }
  58. .ui-cytoscape-panzoom-zoom-in {
  59. top: 80px;
  60. }
  61. .ui-cytoscape-panzoom-zoom-out {
  62. top: 197px;
  63. }
  64. .ui-cytoscape-panzoom-pan-up {
  65. top: 0;
  66. left: 50%;
  67. margin-left: -5px;
  68. width: 0;
  69. height: 0;
  70. border-left: 5px solid transparent;
  71. border-right: 5px solid transparent;
  72. border-bottom: 5px solid #666;
  73. }
  74. .ui-cytoscape-panzoom-pan-down {
  75. bottom: 0;
  76. left: 50%;
  77. margin-left: -5px;
  78. width: 0;
  79. height: 0;
  80. border-left: 5px solid transparent;
  81. border-right: 5px solid transparent;
  82. border-top: 5px solid #666;
  83. }
  84. .ui-cytoscape-panzoom-pan-left {
  85. top: 50%;
  86. left: 0;
  87. margin-top: -5px;
  88. width: 0;
  89. height: 0;
  90. border-top: 5px solid transparent;
  91. border-bottom: 5px solid transparent;
  92. border-right: 5px solid #666;
  93. }
  94. .ui-cytoscape-panzoom-pan-right {
  95. top: 50%;
  96. right: 0;
  97. margin-top: -5px;
  98. width: 0;
  99. height: 0;
  100. border-top: 5px solid transparent;
  101. border-bottom: 5px solid transparent;
  102. border-left: 5px solid #666;
  103. }
  104. .ui-cytoscape-panzoom-pan-indicator {
  105. position: absolute;
  106. left: 0;
  107. top: 0;
  108. width: 8px;
  109. height: 8px;
  110. border-radius: 8px;
  111. background: #000;
  112. border-radius: 8px;
  113. margin-left: -5px;
  114. margin-top: -5px;
  115. display: none;
  116. z-index: 999;
  117. opacity: 0.6;
  118. }
  119. .ui-cytoscape-panzoom-slider {
  120. position: absolute;
  121. top: 97px;
  122. left: 17px;
  123. height: 100px;
  124. width: 15px;
  125. }
  126. .ui-cytoscape-panzoom-slider-background {
  127. position: absolute;
  128. top: 0;
  129. width: 2px;
  130. height: 100px;
  131. left: 5px;
  132. background: #fff;
  133. box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25);
  134. border-left: 1px solid #999;
  135. border-right: 1px solid #999;
  136. }
  137. .ui-cytoscape-panzoom-slider-handle {
  138. position: absolute;
  139. width: 16px;
  140. height: 8px;
  141. background: #fff;
  142. border: 1px solid #999;
  143. border-radius: 2px;
  144. margin-left: -2px;
  145. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  146. z-index: 999;
  147. line-height: 8px;
  148. }
  149. .ui-cytoscape-panzoom-slider-handle .icon {
  150. margin: 0 4px;
  151. line-height: 10px;
  152. }
  153. .ui-cytoscape-panzoom-no-zoom-tick {
  154. position: absolute;
  155. background: #666;
  156. border: 1px solid #fff;
  157. border-radius: 2px;
  158. margin-left: -1px;
  159. width: 8px;
  160. height: 2px;
  161. left: 3px;
  162. z-index: 1;
  163. margin-top: 3px;
  164. }
  165. .ui-cytoscape-panzoom-panner {
  166. position: absolute;
  167. left: 5px;
  168. top: 5px;
  169. height: 40px;
  170. width: 40px;
  171. background: #fff;
  172. border: 1px solid #999;
  173. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  174. border-radius: 40px;
  175. margin-left: -1px;
  176. }
  177. .ui-cytoscape-panzoom-panner-handle {
  178. position: absolute;
  179. left: 0;
  180. top: 0;
  181. outline: none;
  182. height: 40px;
  183. width: 40px;
  184. position: absolute;
  185. z-index: 999;
  186. }