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