_navigator.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .nav-bar {
  2. position: absolute;
  3. width: 35px;
  4. height: 240px;
  5. padding: 5px 0;
  6. left: 10px;
  7. bottom: 10px;
  8. background: #fc8383;
  9. color: #fff;
  10. border-radius: 4px;
  11. z-index: 10;
  12. box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  13. transition: -webkit-transform .7s 0.1s ease;
  14. transition: transform .7s 0.1s ease;
  15. .nav-btn {
  16. width: 35px;
  17. height: 24px;
  18. line-height: 24px;
  19. text-align: center;
  20. .icon {
  21. background: url(images/icons.png);
  22. width: 20px;
  23. height: 20px;
  24. margin: 2px auto;
  25. display: block;
  26. }
  27. &.active {
  28. background-color: #5A6378;
  29. }
  30. }
  31. .zoom-in .icon {
  32. background-position: 0 -730px;
  33. }
  34. .zoom-out .icon {
  35. background-position: 0 -750px;
  36. }
  37. .hand .icon {
  38. background-position: 0 -770px;
  39. width: 25px;
  40. height: 25px;
  41. margin: 0 auto;
  42. }
  43. .camera .icon {
  44. background-position: 0 -870px;
  45. width: 25px;
  46. height: 25px;
  47. margin: 0 auto;
  48. }
  49. .nav-trigger .icon {
  50. background-position: 0 -845px;
  51. width: 25px;
  52. height: 25px;
  53. margin: 0 auto;
  54. }
  55. .zoom-pan {
  56. width: 2px;
  57. height: 70px;
  58. box-shadow: 0 1px #E50000;
  59. position: relative;
  60. background: white;
  61. margin: 3px auto;
  62. overflow: visible;
  63. .origin {
  64. position: absolute;
  65. width: 20px;
  66. height: 8px;
  67. left: -9px;
  68. margin-top: -4px;
  69. background: transparent;
  70. &:after {
  71. content: ' ';
  72. display: block;
  73. width: 6px;
  74. height: 2px;
  75. background: white;
  76. left: 7px;
  77. top: 3px;
  78. position: absolute;
  79. }
  80. }
  81. .indicator {
  82. position: absolute;
  83. width: 8px;
  84. height: 8px;
  85. left: -3px;
  86. background: white;
  87. border-radius: 100%;
  88. margin-top: -4px;
  89. }
  90. }
  91. }
  92. .nav-previewer {
  93. background: #fff;
  94. width: 140px;
  95. height: 120px;
  96. position: absolute;
  97. left: 45px;
  98. bottom: 30px;
  99. box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  100. border-radius: 0 2px 2px 0;
  101. padding: 1px;
  102. z-index: 9;
  103. cursor: crosshair;
  104. transition: -webkit-transform .7s 0.1s ease;
  105. transition: transform .7s 0.1s ease;
  106. &.grab {
  107. cursor: move;
  108. cursor: -webkit-grabbing;
  109. cursor: -moz-grabbing;
  110. cursor: grabbing;
  111. }
  112. }