Path: blob/trunk/third_party/closure/goog/css/imagelessbutton.css
2868 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* @author: [email protected] (Emil A Eklund)15* @author: [email protected] (Garrett Boyer)16*/171819/* Imageless button styles. */2021/* The base element of the button. */22.goog-imageless-button {23/* Set the background color at the outermost level. */24background: #e3e3e3;25/* Place a top and bottom border. Do it on this outermost div so that26* it is easier to make pill buttons work properly. */27border-color: #bbb;28border-style: solid;29border-width: 1px 0;30color: #222; /* Text content color. */31cursor: default;32font-family: Arial, sans-serif;33line-height: 0; /* For Opera and old WebKit. */34list-style: none;35/* Built-in margin for the component. Because of the negative margins36* used to simulate corner rounding, the effective left and right margin is37* actually only 1px. */38margin: 2px;39outline: none;40padding: 0;41text-decoration: none;42vertical-align: middle;43}4445/*46* Pseudo-rounded corners. Works by pulling the left and right sides slightly47* outside of the parent bounding box before drawing the left and right48* borders.49*/50.goog-imageless-button-outer-box {51/* Left and right border that protrude outside the parent. */52border-color: #bbb;53border-style: solid;54border-width: 0 1px;55/* Same as margin: 0 -1px, except works better cross browser. These are56* intended to be RTL flipped to work better in IE7. */57left: -1px;58margin-right: -2px;59}6061/*62* A div to give the light and medium shades of the button that takes up no63* vertical space.64*/65.goog-imageless-button-top-shadow {66/* Light top color in the content. */67background: #f9f9f9;68/* Thin medium shade. */69border-bottom: 3px solid #eee;70/* Control height with line-height, since height: will trigger hasLayout.71* Specified in pixels, as a compromise to avoid rounding errors. */72line-height: 9px;73/* Undo all space this takes up. */74margin-bottom: -12px;75}7677/* Actual content area for the button. */78.goog-imageless-button-content {79line-height: 1.5em;80padding: 0px 4px;81text-align: center;82}838485/* Pill (collapsed border) styles. */86.goog-imageless-button-collapse-right {87/* Draw a border on the root element to square the button off. The border88* on the outer-box element remains, but gets obscured by the next button. */89border-right-width: 1px;90margin-right: -2px; /* Undoes the margins between the two buttons. */91}9293.goog-imageless-button-collapse-left .goog-imageless-button-outer-box {94/* Don't bleed to the left -- keep the border self contained in the box. */95border-left-color: #eee;96left: 0;97margin-right: -1px; /* Versus the default of -2px. */98}99100101/* Disabled styles. */102.goog-imageless-button-disabled,103.goog-imageless-button-disabled .goog-imageless-button-outer-box {104background: #eee;105border-color: #ccc;106color: #666; /* For text */107}108109.goog-imageless-button-disabled .goog-imageless-button-top-shadow {110/* Just hide the shadow instead of setting individual colors. */111visibility: hidden;112}113114115/*116* Active and checked styles.117* Identical except for text color according to GUIG.118*/119.goog-imageless-button-active, .goog-imageless-button-checked {120background: #f9f9f9;121}122123.goog-imageless-button-active .goog-imageless-button-top-shadow,124.goog-imageless-button-checked .goog-imageless-button-top-shadow {125background: #e3e3e3;126}127128.goog-imageless-button-active {129color: #000;130}131132133/* Hover styles. Higher priority to override other border styles. */134.goog-imageless-button-hover,135.goog-imageless-button-hover .goog-imageless-button-outer-box,136.goog-imageless-button-focused,137.goog-imageless-button-focused .goog-imageless-button-outer-box {138border-color: #000;139}140141142/* IE6 hacks. This is the only place inner-box is used. */143* html .goog-imageless-button-inner-box {144/* Give the element inline-block behavior so that the shadow appears.145* The main requirement is to give the element layout without having the side146* effect of taking up a full line. */147display: inline;148/* Allow the shadow to show through, overriding position:relative from the149* goog-inline-block styles. */150position: static;151zoom: 1;152}153154* html .goog-imageless-button-outer-box {155/* In RTL mode, IE is off by one pixel. To fix, override the left: -1px156* (which was flipped to right) without having any effect on LTR mode157* (where IE ignores right when left is specified). */158/* @noflip */ right: 0;159}160161162