Path: blob/trunk/third_party/closure/goog/css/imagelessbutton.css
3987 views
/*1* Copyright 2008 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 buttons created by goog.ui.ImagelessButtonRenderer.9*10* WARNING: This file uses some ineffecient selectors and it may be11* best to avoid using this file in extremely large, or performance12* critical applications.13*14*/1516@provide 'goog.css.imagelessbutton';1718@require './common';1920/* Imageless button styles. */2122/* The base element of the button. */23.goog-imageless-button {24/* Set the background color at the outermost level. */25background: #e3e3e3;26/* Place a top and bottom border. Do it on this outermost div so that27* it is easier to make pill buttons work properly. */28border-color: #bbb;29border-style: solid;30border-width: 1px 0;31color: #222; /* Text content color. */32cursor: default;33font-family: Arial, sans-serif;34line-height: 0; /* For Opera and old WebKit. */35list-style: none;36/* Built-in margin for the component. Because of the negative margins37* used to simulate corner rounding, the effective left and right margin is38* actually only 1px. */39margin: 2px;40outline: none;41padding: 0;42text-decoration: none;43vertical-align: middle;44}4546/*47* Pseudo-rounded corners. Works by pulling the left and right sides slightly48* outside of the parent bounding box before drawing the left and right49* borders.50*/51.goog-imageless-button-outer-box {52/* Left and right border that protrude outside the parent. */53border-color: #bbb;54border-style: solid;55border-width: 0 1px;56/* Same as margin: 0 -1px, except works better cross browser. These are57* intended to be RTL flipped to work better in IE7. */58left: -1px;59margin-right: -2px;60}6162/*63* A div to give the light and medium shades of the button that takes up no64* vertical space.65*/66.goog-imageless-button-top-shadow {67/* Light top color in the content. */68background: #f9f9f9;69/* Thin medium shade. */70border-bottom: 3px solid #eee;71/* Control height with line-height, since height: will trigger hasLayout.72* Specified in pixels, as a compromise to avoid rounding errors. */73line-height: 9px;74/* Undo all space this takes up. */75margin-bottom: -12px;76}7778/* Actual content area for the button. */79.goog-imageless-button-content {80line-height: 1.5em;81padding: 0px 4px;82text-align: center;83}848586/* Pill (collapsed border) styles. */87.goog-imageless-button-collapse-right {88/* Draw a border on the root element to square the button off. The border89* on the outer-box element remains, but gets obscured by the next button. */90border-right-width: 1px;91margin-right: -2px; /* Undoes the margins between the two buttons. */92}9394.goog-imageless-button-collapse-left .goog-imageless-button-outer-box {95/* Don't bleed to the left -- keep the border self contained in the box. */96border-left-color: #eee;97left: 0;98margin-right: -1px; /* Versus the default of -2px. */99}100101102/* Disabled styles. */103.goog-imageless-button-disabled,104.goog-imageless-button-disabled .goog-imageless-button-outer-box {105background: #eee;106border-color: #ccc;107color: #666; /* For text */108}109110.goog-imageless-button-disabled .goog-imageless-button-top-shadow {111/* Just hide the shadow instead of setting individual colors. */112visibility: hidden;113}114115116/*117* Active and checked styles.118* Identical except for text color according to GUIG.119*/120.goog-imageless-button-active, .goog-imageless-button-checked {121background: #f9f9f9;122}123124.goog-imageless-button-active .goog-imageless-button-top-shadow,125.goog-imageless-button-checked .goog-imageless-button-top-shadow {126background: #e3e3e3;127}128129.goog-imageless-button-active {130color: #000;131}132133134/* Hover styles. Higher priority to override other border styles. */135.goog-imageless-button-hover,136.goog-imageless-button-hover .goog-imageless-button-outer-box,137.goog-imageless-button-focused,138.goog-imageless-button-focused .goog-imageless-button-outer-box {139border-color: #000;140}141142143/* IE6 hacks. This is the only place inner-box is used. */144* html .goog-imageless-button-inner-box {145/* Give the element inline-block behavior so that the shadow appears.146* The main requirement is to give the element layout without having the side147* effect of taking up a full line. */148display: inline;149/* Allow the shadow to show through, overriding position:relative from the150* goog-inline-block styles. */151position: static;152zoom: 1;153}154155/* rtl:begin:ignore */156* html .goog-imageless-button-outer-box {157/* In RTL mode, IE is off by one pixel. To fix, override the left: -1px158* (which was flipped to right) without having any effect on LTR mode159* (where IE ignores right when left is specified). */160/* @noflip */ right: 0;161}162/* rtl:end:ignore */163164165