/*
 * Copyright 2009 The Closure Library Authors. All Rights Reserved.
 *
 * Use of this source code is governed by an Apache 2.0 License.
 * See the COPYING file for details.
 */

/*
 * Standard styling for buttons created by goog.ui.MenuButtonRenderer.
 *
 * @author attila@google.com (Attila Bodis)
 */

/* State: resting. */
.ks-menu-button {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    border: 1px;
    color: #000;
    cursor: pointer;
    list-style: none;
    margin: 2px;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    padding: 0;
    text-decoration: none;
    vertical-align: middle;
    border-style: solid;
    border-color: #aaa;
    padding: 3px 4px;
    position: relative;
}

/* State: disabled. */
.ks-menu-button-disabled {
    background-image: none !important;
    opacity: 0.3;
    -moz-opacity: 0.3;
    filter: alpha(opacity = 30);
    color: #333 !important;
    border-color: #999 !important;
}

.ks-menu-button-disabled .ks-menu-button-caption,
.ks-menu-button-disabled .ks-menu-button-dropdown {
    color: #333 !important;
    border-color: #999 !important;
}

/* State: hover. */
.ks-menu-button-hover {
    border-color: #9cf #69e #69e #7af !important; /* Hover border wins. */
}

/* State: active, open. */
.ks-menu-button-active,
.ks-menu-button-open {
    background-color: #bbb;
    background-position: bottom left;
}

/* State: focused. */
.ks-menu-button-focused {
    border-color: orange;
}

/* Caption style. */
.ks-menu-button-caption {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    padding: 0 4px 0 0;
    vertical-align: top;
    margin-right: 20px;
}

/* Dropdown arrow style. */
.ks-menu-button-dropdown {
    height: 15px;
    width: 7px;
    /* Client apps may override the URL at which they serve the sprite. */
    background: url(editortoolbar.png) no-repeat -388px 0;
    vertical-align: top;
    position: absolute;
    right: 3px;
    top: 2px;
}

/* Pill (collapsed border) styles. */
/* TODO(gboyer): Remove specific menu button styles and have any button support being a menu button. */
.ks-menu-button-collapse-right,
.ks-menu-button-collapse-right {
    margin-right: 0 !important;
}

.ks-menu-button-collapse-left,
.ks-menu-button-collapse-left {
    margin-left: 0 !important;
}

.ks-menu-button-collapse-left {
    border-left: 1px solid #fff;
}

.ks-menu-button-collapse-left.ks-menu-button-checked {
    border-left: 1px solid #ddd;
}
