Path: blob/trunk/third_party/closure/goog/css/custombutton.css
4505 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*/1011@provide 'goog.css.custombutton';1213@require './common';1415.goog-custom-button {16margin: 2px;17border: 0;18padding: 0;19font-family: Arial, sans-serif;20color: #000;21/* Client apps may override the URL at which they serve the image. */22background: #ddd url(//ssl.gstatic.com/editor/button-bg.png) repeat-x top left;23text-decoration: none;24list-style: none;25vertical-align: middle;26cursor: default;27outline: none;28}2930/* Pseudo-rounded corners. */31.goog-custom-button-outer-box,32.goog-custom-button-inner-box {33border-style: solid;34border-color: #aaa;35vertical-align: top;36}3738.goog-custom-button-outer-box {39margin: 0;40border-width: 1px 0;41padding: 0;42}4344.goog-custom-button-inner-box {45margin: 0 -1px;46border-width: 0 1px;47padding: 3px 4px;48white-space: nowrap; /* Prevents buttons from line breaking on android. */49}5051/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */52* html .goog-custom-button-inner-box {53/* IE6 needs to have the box shifted to make the borders line up. */54left: -1px;55}56/* Pre-IE7 BiDi fixes. */57/* rtl:begin:ignore */58* html .goog-custom-button-rtl .goog-custom-button-outer-box {59/* @noflip */ left: -1px;60}61* html .goog-custom-button-rtl .goog-custom-button-inner-box {62/* @noflip */ right: auto;63}64/* rtl:end:ignore */6566/* IE7-only hack; ignored by all other browsers. */67*:first-child+html .goog-custom-button-inner-box {68/* IE7 needs to have the box shifted to make the borders line up. */69left: -1px;70}71/* IE7 BiDi fix. */72*:first-child+html .goog-custom-button-rtl .goog-custom-button-inner-box {73/* rtl:begin:ignore */74/* @noflip */ left: 1px;75/* rtl:end:ignore */76}7778/* Safari-only hacks. */79::root .goog-custom-button,80::root .goog-custom-button-outer-box {81/* Required to make pseudo-rounded corners work on Safari. */82line-height: 0;83}8485::root .goog-custom-button-inner-box {86/* Required to make pseudo-rounded corners work on Safari. */87line-height: normal;88}8990/* State: disabled. */91.goog-custom-button-disabled {92background-image: none !important;93opacity: 0.3;94-moz-opacity: 0.3;95filter: alpha(opacity=30);96}9798.goog-custom-button-disabled .goog-custom-button-outer-box,99.goog-custom-button-disabled .goog-custom-button-inner-box {100color: #333 !important;101border-color: #999 !important;102}103104/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */105* html .goog-custom-button-disabled {106margin: 2px 1px !important;107padding: 0 1px !important;108}109110/* IE7-only hack; ignored by all other browsers. */111*:first-child+html .goog-custom-button-disabled {112margin: 2px 1px !important;113padding: 0 1px !important;114}115116/* State: hover. */117.goog-custom-button-hover .goog-custom-button-outer-box,118.goog-custom-button-hover .goog-custom-button-inner-box {119border-color: #9cf #69e #69e #7af !important; /* Hover border wins. */120}121122/* State: active, checked. */123.goog-custom-button-active,124.goog-custom-button-checked {125background-color: #bbb;126background-position: bottom left;127}128129/* State: focused. */130.goog-custom-button-focused .goog-custom-button-outer-box,131.goog-custom-button-focused .goog-custom-button-inner-box {132border-color: orange;133}134135/* Pill (collapsed border) styles. */136.goog-custom-button-collapse-right,137.goog-custom-button-collapse-right .goog-custom-button-outer-box,138.goog-custom-button-collapse-right .goog-custom-button-inner-box {139margin-right: 0;140}141142.goog-custom-button-collapse-left,143.goog-custom-button-collapse-left .goog-custom-button-outer-box,144.goog-custom-button-collapse-left .goog-custom-button-inner-box {145margin-left: 0;146}147148.goog-custom-button-collapse-left .goog-custom-button-inner-box {149border-left: 1px solid #fff;150}151152.goog-custom-button-collapse-left.goog-custom-button-checked153.goog-custom-button-inner-box {154border-left: 1px solid #ddd;155}156157/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */158* html .goog-custom-button-collapse-left .goog-custom-button-inner-box {159left: 0;160}161162/* IE7-only hack; ignored by all other browsers. */163*:first-child+html .goog-custom-button-collapse-left164.goog-custom-button-inner-box {165left: 0;166}167168169