Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
SeleniumHQ
GitHub Repository: SeleniumHQ/Selenium
Path: blob/trunk/third_party/closure/goog/css/custombutton.css
4009 views
1
/*
2
* Copyright 2009 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 custom buttons rendered by goog.ui.CustomButtonRenderer.
10
*/
11
12
@provide 'goog.css.custombutton';
13
14
@require './common';
15
16
.goog-custom-button {
17
margin: 2px;
18
border: 0;
19
padding: 0;
20
font-family: Arial, sans-serif;
21
color: #000;
22
/* Client apps may override the URL at which they serve the image. */
23
background: #ddd url(//ssl.gstatic.com/editor/button-bg.png) repeat-x top left;
24
text-decoration: none;
25
list-style: none;
26
vertical-align: middle;
27
cursor: default;
28
outline: none;
29
}
30
31
/* Pseudo-rounded corners. */
32
.goog-custom-button-outer-box,
33
.goog-custom-button-inner-box {
34
border-style: solid;
35
border-color: #aaa;
36
vertical-align: top;
37
}
38
39
.goog-custom-button-outer-box {
40
margin: 0;
41
border-width: 1px 0;
42
padding: 0;
43
}
44
45
.goog-custom-button-inner-box {
46
margin: 0 -1px;
47
border-width: 0 1px;
48
padding: 3px 4px;
49
white-space: nowrap; /* Prevents buttons from line breaking on android. */
50
}
51
52
/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
53
* html .goog-custom-button-inner-box {
54
/* IE6 needs to have the box shifted to make the borders line up. */
55
left: -1px;
56
}
57
/* Pre-IE7 BiDi fixes. */
58
/* rtl:begin:ignore */
59
* html .goog-custom-button-rtl .goog-custom-button-outer-box {
60
/* @noflip */ left: -1px;
61
}
62
* html .goog-custom-button-rtl .goog-custom-button-inner-box {
63
/* @noflip */ right: auto;
64
}
65
/* rtl:end:ignore */
66
67
/* IE7-only hack; ignored by all other browsers. */
68
*:first-child+html .goog-custom-button-inner-box {
69
/* IE7 needs to have the box shifted to make the borders line up. */
70
left: -1px;
71
}
72
/* IE7 BiDi fix. */
73
*:first-child+html .goog-custom-button-rtl .goog-custom-button-inner-box {
74
/* rtl:begin:ignore */
75
/* @noflip */ left: 1px;
76
/* rtl:end:ignore */
77
}
78
79
/* Safari-only hacks. */
80
::root .goog-custom-button,
81
::root .goog-custom-button-outer-box {
82
/* Required to make pseudo-rounded corners work on Safari. */
83
line-height: 0;
84
}
85
86
::root .goog-custom-button-inner-box {
87
/* Required to make pseudo-rounded corners work on Safari. */
88
line-height: normal;
89
}
90
91
/* State: disabled. */
92
.goog-custom-button-disabled {
93
background-image: none !important;
94
opacity: 0.3;
95
-moz-opacity: 0.3;
96
filter: alpha(opacity=30);
97
}
98
99
.goog-custom-button-disabled .goog-custom-button-outer-box,
100
.goog-custom-button-disabled .goog-custom-button-inner-box {
101
color: #333 !important;
102
border-color: #999 !important;
103
}
104
105
/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
106
* html .goog-custom-button-disabled {
107
margin: 2px 1px !important;
108
padding: 0 1px !important;
109
}
110
111
/* IE7-only hack; ignored by all other browsers. */
112
*:first-child+html .goog-custom-button-disabled {
113
margin: 2px 1px !important;
114
padding: 0 1px !important;
115
}
116
117
/* State: hover. */
118
.goog-custom-button-hover .goog-custom-button-outer-box,
119
.goog-custom-button-hover .goog-custom-button-inner-box {
120
border-color: #9cf #69e #69e #7af !important; /* Hover border wins. */
121
}
122
123
/* State: active, checked. */
124
.goog-custom-button-active,
125
.goog-custom-button-checked {
126
background-color: #bbb;
127
background-position: bottom left;
128
}
129
130
/* State: focused. */
131
.goog-custom-button-focused .goog-custom-button-outer-box,
132
.goog-custom-button-focused .goog-custom-button-inner-box {
133
border-color: orange;
134
}
135
136
/* Pill (collapsed border) styles. */
137
.goog-custom-button-collapse-right,
138
.goog-custom-button-collapse-right .goog-custom-button-outer-box,
139
.goog-custom-button-collapse-right .goog-custom-button-inner-box {
140
margin-right: 0;
141
}
142
143
.goog-custom-button-collapse-left,
144
.goog-custom-button-collapse-left .goog-custom-button-outer-box,
145
.goog-custom-button-collapse-left .goog-custom-button-inner-box {
146
margin-left: 0;
147
}
148
149
.goog-custom-button-collapse-left .goog-custom-button-inner-box {
150
border-left: 1px solid #fff;
151
}
152
153
.goog-custom-button-collapse-left.goog-custom-button-checked
154
.goog-custom-button-inner-box {
155
border-left: 1px solid #ddd;
156
}
157
158
/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
159
* html .goog-custom-button-collapse-left .goog-custom-button-inner-box {
160
left: 0;
161
}
162
163
/* IE7-only hack; ignored by all other browsers. */
164
*:first-child+html .goog-custom-button-collapse-left
165
.goog-custom-button-inner-box {
166
left: 0;
167
}
168
169