Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
SeleniumHQ
GitHub Repository: SeleniumHQ/Selenium
Path: blob/trunk/third_party/closure/goog/css/imagelessbutton.css
3987 views
1
/*
2
* Copyright 2008 The Closure Library Authors. All Rights Reserved.
3
*
4
* Use of this source code is governed by the Apache License, Version 2.0.
5
* See the COPYING file for details.
6
*/
7
8
/*
9
* Styling for buttons created by goog.ui.ImagelessButtonRenderer.
10
*
11
* WARNING: This file uses some ineffecient selectors and it may be
12
* best to avoid using this file in extremely large, or performance
13
* critical applications.
14
*
15
*/
16
17
@provide 'goog.css.imagelessbutton';
18
19
@require './common';
20
21
/* Imageless button styles. */
22
23
/* The base element of the button. */
24
.goog-imageless-button {
25
/* Set the background color at the outermost level. */
26
background: #e3e3e3;
27
/* Place a top and bottom border. Do it on this outermost div so that
28
* it is easier to make pill buttons work properly. */
29
border-color: #bbb;
30
border-style: solid;
31
border-width: 1px 0;
32
color: #222; /* Text content color. */
33
cursor: default;
34
font-family: Arial, sans-serif;
35
line-height: 0; /* For Opera and old WebKit. */
36
list-style: none;
37
/* Built-in margin for the component. Because of the negative margins
38
* used to simulate corner rounding, the effective left and right margin is
39
* actually only 1px. */
40
margin: 2px;
41
outline: none;
42
padding: 0;
43
text-decoration: none;
44
vertical-align: middle;
45
}
46
47
/*
48
* Pseudo-rounded corners. Works by pulling the left and right sides slightly
49
* outside of the parent bounding box before drawing the left and right
50
* borders.
51
*/
52
.goog-imageless-button-outer-box {
53
/* Left and right border that protrude outside the parent. */
54
border-color: #bbb;
55
border-style: solid;
56
border-width: 0 1px;
57
/* Same as margin: 0 -1px, except works better cross browser. These are
58
* intended to be RTL flipped to work better in IE7. */
59
left: -1px;
60
margin-right: -2px;
61
}
62
63
/*
64
* A div to give the light and medium shades of the button that takes up no
65
* vertical space.
66
*/
67
.goog-imageless-button-top-shadow {
68
/* Light top color in the content. */
69
background: #f9f9f9;
70
/* Thin medium shade. */
71
border-bottom: 3px solid #eee;
72
/* Control height with line-height, since height: will trigger hasLayout.
73
* Specified in pixels, as a compromise to avoid rounding errors. */
74
line-height: 9px;
75
/* Undo all space this takes up. */
76
margin-bottom: -12px;
77
}
78
79
/* Actual content area for the button. */
80
.goog-imageless-button-content {
81
line-height: 1.5em;
82
padding: 0px 4px;
83
text-align: center;
84
}
85
86
87
/* Pill (collapsed border) styles. */
88
.goog-imageless-button-collapse-right {
89
/* Draw a border on the root element to square the button off. The border
90
* on the outer-box element remains, but gets obscured by the next button. */
91
border-right-width: 1px;
92
margin-right: -2px; /* Undoes the margins between the two buttons. */
93
}
94
95
.goog-imageless-button-collapse-left .goog-imageless-button-outer-box {
96
/* Don't bleed to the left -- keep the border self contained in the box. */
97
border-left-color: #eee;
98
left: 0;
99
margin-right: -1px; /* Versus the default of -2px. */
100
}
101
102
103
/* Disabled styles. */
104
.goog-imageless-button-disabled,
105
.goog-imageless-button-disabled .goog-imageless-button-outer-box {
106
background: #eee;
107
border-color: #ccc;
108
color: #666; /* For text */
109
}
110
111
.goog-imageless-button-disabled .goog-imageless-button-top-shadow {
112
/* Just hide the shadow instead of setting individual colors. */
113
visibility: hidden;
114
}
115
116
117
/*
118
* Active and checked styles.
119
* Identical except for text color according to GUIG.
120
*/
121
.goog-imageless-button-active, .goog-imageless-button-checked {
122
background: #f9f9f9;
123
}
124
125
.goog-imageless-button-active .goog-imageless-button-top-shadow,
126
.goog-imageless-button-checked .goog-imageless-button-top-shadow {
127
background: #e3e3e3;
128
}
129
130
.goog-imageless-button-active {
131
color: #000;
132
}
133
134
135
/* Hover styles. Higher priority to override other border styles. */
136
.goog-imageless-button-hover,
137
.goog-imageless-button-hover .goog-imageless-button-outer-box,
138
.goog-imageless-button-focused,
139
.goog-imageless-button-focused .goog-imageless-button-outer-box {
140
border-color: #000;
141
}
142
143
144
/* IE6 hacks. This is the only place inner-box is used. */
145
* html .goog-imageless-button-inner-box {
146
/* Give the element inline-block behavior so that the shadow appears.
147
* The main requirement is to give the element layout without having the side
148
* effect of taking up a full line. */
149
display: inline;
150
/* Allow the shadow to show through, overriding position:relative from the
151
* goog-inline-block styles. */
152
position: static;
153
zoom: 1;
154
}
155
156
/* rtl:begin:ignore */
157
* html .goog-imageless-button-outer-box {
158
/* In RTL mode, IE is off by one pixel. To fix, override the left: -1px
159
* (which was flipped to right) without having any effect on LTR mode
160
* (where IE ignores right when left is specified). */
161
/* @noflip */ right: 0;
162
}
163
/* rtl:end:ignore */
164
165