Path: blob/trunk/third_party/closure/goog/css/menubutton.css
4012 views
/*1* Copyright 2009 The Closure Library Authors. All Rights Reserved.2*3* Use of this source code is governed by the Apache License, Version 2.0.4* See the COPYING file for details.5*/67/*8* Standard styling for buttons created by goog.ui.MenuButtonRenderer.9*/1011@provide 'goog.css.menubutton';1213@require './common';1415/* State: resting. */16.goog-menu-button {17/* Client apps may override the URL at which they serve the image. */18background: #ddd url(//ssl.gstatic.com/editor/button-bg.png) repeat-x top left;19border: 0;20color: #000;21cursor: pointer;22list-style: none;23margin: 2px;24outline: none;25padding: 0;26text-decoration: none;27vertical-align: middle;28}2930/* Pseudo-rounded corners. */31.goog-menu-button-outer-box,32.goog-menu-button-inner-box {33border-style: solid;34border-color: #aaa;35vertical-align: top;36}37.goog-menu-button-outer-box {38margin: 0;39border-width: 1px 0;40padding: 0;41}42.goog-menu-button-inner-box {43margin: 0 -1px;44border-width: 0 1px;45padding: 3px 4px;46}4748/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */49* html .goog-menu-button-inner-box {50/* IE6 needs to have the box shifted to make the borders line up. */51left: -1px;52}5354/* Pre-IE7 BiDi fixes. */55/* rtl:begin:ignore */56* html .goog-menu-button-rtl .goog-menu-button-outer-box {57/* @noflip */ left: -1px;58/* @noflip */ right: auto;59}60* html .goog-menu-button-rtl .goog-menu-button-inner-box {61/* @noflip */ right: auto;62}63/* rtl:end:ignore */6465/* IE7-only hack; ignored by all other browsers. */66*:first-child+html .goog-menu-button-inner-box {67/* IE7 needs to have the box shifted to make the borders line up. */68left: -1px;69}70/* IE7 BiDi fix. */71/* rtl:begin:ignore */72*:first-child+html .goog-menu-button-rtl .goog-menu-button-inner-box {73/* @noflip */ left: 1px;74/* @noflip */ right: auto;75}76/* rtl:end:ignore */7778/* Safari-only hacks. */79::root .goog-menu-button,80::root .goog-menu-button-outer-box,81::root .goog-menu-button-inner-box {82/* Required to make pseudo-rounded corners work on Safari. */83line-height: 0;84}85::root .goog-menu-button-caption,86::root .goog-menu-button-dropdown {87/* Required to make pseudo-rounded corners work on Safari. */88line-height: normal;89}9091/* State: disabled. */92.goog-menu-button-disabled {93background-image: none !important;94opacity: 0.3;95-moz-opacity: 0.3;96filter: alpha(opacity=30);97}98.goog-menu-button-disabled .goog-menu-button-outer-box,99.goog-menu-button-disabled .goog-menu-button-inner-box,100.goog-menu-button-disabled .goog-menu-button-caption,101.goog-menu-button-disabled .goog-menu-button-dropdown {102color: #333 !important;103border-color: #999 !important;104}105106/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */107* html .goog-menu-button-disabled {108margin: 2px 1px !important;109padding: 0 1px !important;110}111112/* IE7-only hack; ignored by all other browsers. */113*:first-child+html .goog-menu-button-disabled {114margin: 2px 1px !important;115padding: 0 1px !important;116}117118/* State: hover. */119.goog-menu-button-hover .goog-menu-button-outer-box,120.goog-menu-button-hover .goog-menu-button-inner-box {121border-color: #9cf #69e #69e #7af !important; /* Hover border wins. */122}123124/* State: active, open. */125.goog-menu-button-active,126.goog-menu-button-open {127background-color: #bbb;128background-position: bottom left;129}130131/* State: focused. */132.goog-menu-button-focused .goog-menu-button-outer-box,133.goog-menu-button-focused .goog-menu-button-inner-box {134border-color: orange;135}136137/* Caption style. */138.goog-menu-button-caption {139padding: 0 4px 0 0;140vertical-align: top;141}142143/* Dropdown arrow style. */144.goog-menu-button-dropdown {145height: 15px;146width: 7px;147/* Client apps may override the URL at which they serve the sprite. */148background: url(//ssl.gstatic.com/editor/editortoolbar.png) no-repeat -388px 0;149vertical-align: top;150}151152/* Pill (collapsed border) styles. */153/* TODO(gboyer): Remove specific menu button styles and have any button support being a menu button. */154.goog-menu-button-collapse-right,155.goog-menu-button-collapse-right .goog-menu-button-outer-box,156.goog-menu-button-collapse-right .goog-menu-button-inner-box {157margin-right: 0;158}159160.goog-menu-button-collapse-left,161.goog-menu-button-collapse-left .goog-menu-button-outer-box,162.goog-menu-button-collapse-left .goog-menu-button-inner-box {163margin-left: 0;164}165166.goog-menu-button-collapse-left .goog-menu-button-inner-box {167border-left: 1px solid #fff;168}169170.goog-menu-button-collapse-left.goog-menu-button-checked171.goog-menu-button-inner-box {172border-left: 1px solid #ddd;173}174175176