_nav.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. .fullscreen .preview-navigator {
  2. transform: translate(-45px, 30px);
  3. }
  4. .preview-navigator {
  5. background: white;
  6. width: 140px;
  7. height: 120px;
  8. position: absolute;
  9. left: 45px;
  10. bottom: 30px;
  11. box-shadow: 0 0 8px rgba(0, 0, 0, .2);
  12. border-radius: 0 2px 2px 0;
  13. padding: 1px;
  14. z-index: 9;
  15. cursor: crosshair;
  16. transition: transform .7s 0.1s ease;
  17. &.grab {
  18. cursor: move;
  19. cursor: -webkit-grabbing;
  20. cursor: -moz-grabbing;
  21. cursor: grabbing;
  22. }
  23. }
  24. .fullscreen .nav-bar {
  25. transform: translate(-60px, 0);
  26. }
  27. .nav-bar {
  28. position: absolute;
  29. width: 35px;
  30. height: 240px;
  31. padding: 5px 0;
  32. left: 10px;
  33. bottom: 10px;
  34. background: @theme-color;
  35. border-radius: 4px;
  36. z-index: 10;
  37. box-shadow: 3px 3px 10px rgba(0, 0, 0, .2);
  38. transition: transform .7s 0.1s ease;
  39. .command-button {
  40. width: 35px;
  41. height: 24px;
  42. text-align: center;
  43. line-height: 30px;
  44. .fui-label {
  45. display: none;
  46. }
  47. .fui-icon {
  48. background: url(../images/icons.png);
  49. width: 20px;
  50. height: 20px;
  51. margin: 2px auto;
  52. display: block;
  53. }
  54. &:hover {
  55. background: lighten(@theme-color, 10%);
  56. }
  57. &:active {
  58. background: darken(@theme-color, 3%);
  59. }
  60. &.active {
  61. background: #5A6378;
  62. }
  63. &.hand, &.nav-trigger, &.camera {
  64. height: 25px;
  65. margin: 3px 0;
  66. .fui-icon {
  67. margin: 0 auto;
  68. width: 25px;
  69. height: 25px;
  70. }
  71. }
  72. &.zoom-in .fui-icon {
  73. background-position: 0 -730px;
  74. }
  75. &.zoom-out .fui-icon {
  76. background-position: 0 -750px;
  77. }
  78. &.hand {
  79. margin-top: 10px;
  80. .fui-icon {
  81. background-position: 0 -770px;
  82. }
  83. &.active .fui-icon {
  84. background-position: 0 -795px;
  85. }
  86. }
  87. &.nav-trigger {
  88. .fui-icon {
  89. background-position: 0 -820px;
  90. }
  91. &.active .fui-icon {
  92. background-position: 0 -845px;
  93. }
  94. }
  95. &.camera {
  96. .fui-icon {
  97. background-position: 0 -870px;
  98. }
  99. margin-bottom: 0;
  100. }
  101. }
  102. .zoom-pan {
  103. width: 2px;
  104. height: 70px;
  105. box-shadow: 0 1px #E50000;
  106. position: relative;
  107. background: white;
  108. margin: 3px auto;
  109. overflow: visible;
  110. .origin {
  111. position: absolute;
  112. width: 20px;
  113. height: 8px;
  114. left: -9px;
  115. margin-top: -4px;
  116. background: transparent;
  117. &:after {
  118. content: ' ';
  119. display: block;
  120. width: 6px;
  121. height: 2px;
  122. background: white;
  123. left: 7px;
  124. top: 3px;
  125. position: absolute;
  126. }
  127. &:hover:after {
  128. box-shadow: 0 0 5px rgba(255, 255, 255, 1);
  129. }
  130. }
  131. .indicator {
  132. position: absolute;
  133. width: 8px;
  134. height: 8px;
  135. left: -3px;
  136. background: white;
  137. border-radius: 100%;
  138. margin-top: -4px;
  139. }
  140. }
  141. }