CSS样式  |  62行  |  1.4 KB

/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

.mouse-mode-selector {

  -webkit-user-drag: element;
  -webkit-user-select: none;

  background: #DDD;
  border: 1px solid #BBB;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  height: 108px;
  left: calc(100% - 120px);
  position: fixed;
  top: 100px;
  user-drag: element;
  user-select: none;
  width: 29px;
  z-index: 20;
}

.mouse-mode-selector .drag-handle {
  background: url(../images/ui-states.png) 2px 3px no-repeat;
  background-repeat: no-repeat;
  border-bottom: 1px solid #BCBCBC;
  cursor: move;
  display: block;
  height: 13px;
  width: 27px;
}

.mouse-mode-selector .pan-scan-mode-button {
  background-image: url(../images/ui-states.png);
  background-position: 0 -10px;
}

.mouse-mode-selector .pan-scan-mode-button.active {
  background-position: -30px -10px;
}

.mouse-mode-selector .selection-mode-button {
  background-image: url(../images/ui-states.png);
  background-position: 0 -40px;
}

.mouse-mode-selector .selection-mode-button.active {
  background-position: -30px -40px;
}

.mouse-mode-selector .zoom-mode-button {
  background-image: url(../images/ui-states.png);
  background-position: 0 -70px;
  border-bottom: none;
}

.mouse-mode-selector .zoom-mode-button.active {
  background-position: -30px -70px;
}