Path: blob/trunk/third_party/closure/goog/css/custombutton.css
2868 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* Styling for custom buttons rendered by goog.ui.CustomButtonRenderer.9*10* @author [email protected] (Attila Bodis)11*/1213.goog-custom-button {14margin: 2px;15border: 0;16padding: 0;17font-family: Arial, sans-serif;18color: #000;19/* Client apps may override the URL at which they serve the image. */20background: #ddd url(//ssl.gstatic.com/editor/button-bg.png) repeat-x top left;21text-decoration: none;22list-style: none;23vertical-align: middle;24cursor: default;25outline: none;26}2728/* Pseudo-rounded corners. */29.goog-custom-button-outer-box,30.goog-custom-button-inner-box {31border-style: solid;32border-color: #aaa;33vertical-align: top;34}3536.goog-custom-button-outer-box {37margin: 0;38border-width: 1px 0;39padding: 0;40}4142.goog-custom-button-inner-box {43margin: 0 -1px;44border-width: 0 1px;45padding: 3px 4px;46white-space: nowrap; /* Prevents buttons from line breaking on android. */47}4849/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */50* html .goog-custom-button-inner-box {51/* IE6 needs to have the box shifted to make the borders line up. */52left: -1px;53}54/* Pre-IE7 BiDi fixes. */55* html .goog-custom-button-rtl .goog-custom-button-outer-box {56/* @noflip */ left: -1px;57}58* html .goog-custom-button-rtl .goog-custom-button-inner-box {59/* @noflip */ right: auto;60}6162/* IE7-only hack; ignored by all other browsers. */63*:first-child+html .goog-custom-button-inner-box {64/* IE7 needs to have the box shifted to make the borders line up. */65left: -1px;66}67/* IE7 BiDi fix. */68*:first-child+html .goog-custom-button-rtl .goog-custom-button-inner-box {69/* @noflip */ left: 1px;70}7172/* Safari-only hacks. */73::root .goog-custom-button,74::root .goog-custom-button-outer-box {75/* Required to make pseudo-rounded corners work on Safari. */76line-height: 0;77}7879::root .goog-custom-button-inner-box {80/* Required to make pseudo-rounded corners work on Safari. */81line-height: normal;82}8384/* State: disabled. */85.goog-custom-button-disabled {86background-image: none !important;87opacity: 0.3;88-moz-opacity: 0.3;89filter: alpha(opacity=30);90}9192.goog-custom-button-disabled .goog-custom-button-outer-box,93.goog-custom-button-disabled .goog-custom-button-inner-box {94color: #333 !important;95border-color: #999 !important;96}9798/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */99* html .goog-custom-button-disabled {100margin: 2px 1px !important;101padding: 0 1px !important;102}103104/* IE7-only hack; ignored by all other browsers. */105*:first-child+html .goog-custom-button-disabled {106margin: 2px 1px !important;107padding: 0 1px !important;108}109110/* State: hover. */111.goog-custom-button-hover .goog-custom-button-outer-box,112.goog-custom-button-hover .goog-custom-button-inner-box {113border-color: #9cf #69e #69e #7af !important; /* Hover border wins. */114}115116/* State: active, checked. */117.goog-custom-button-active,118.goog-custom-button-checked {119background-color: #bbb;120background-position: bottom left;121}122123/* State: focused. */124.goog-custom-button-focused .goog-custom-button-outer-box,125.goog-custom-button-focused .goog-custom-button-inner-box {126border-color: orange;127}128129/* Pill (collapsed border) styles. */130.goog-custom-button-collapse-right,131.goog-custom-button-collapse-right .goog-custom-button-outer-box,132.goog-custom-button-collapse-right .goog-custom-button-inner-box {133margin-right: 0;134}135136.goog-custom-button-collapse-left,137.goog-custom-button-collapse-left .goog-custom-button-outer-box,138.goog-custom-button-collapse-left .goog-custom-button-inner-box {139margin-left: 0;140}141142.goog-custom-button-collapse-left .goog-custom-button-inner-box {143border-left: 1px solid #fff;144}145146.goog-custom-button-collapse-left.goog-custom-button-checked147.goog-custom-button-inner-box {148border-left: 1px solid #ddd;149}150151/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */152* html .goog-custom-button-collapse-left .goog-custom-button-inner-box {153left: 0;154}155156/* IE7-only hack; ignored by all other browsers. */157*:first-child+html .goog-custom-button-collapse-left158.goog-custom-button-inner-box {159left: 0;160}161162163