Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/third_party/closure/goog/css/menuitem.css
4525 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 menus created by goog.ui.MenuItemRenderer.
10
*/
11
12
@provide 'goog.css.menuitem';
13
14
/**
15
* State: resting.
16
*
17
* NOTE(mleibman,chrishenry):
18
* The RTL support in Closure is provided via two mechanisms -- "rtl" CSS
19
* classes and BiDi flipping done by the CSS compiler. Closure supports RTL
20
* with or without the use of the CSS compiler. In order for them not
21
* to conflict with each other, the "rtl" CSS classes need to have the @noflip
22
* annotation. The non-rtl counterparts should ideally have them as well, but,
23
* since .goog-menuitem existed without .goog-menuitem-rtl for so long before
24
* being added, there is a risk of people having templates where they are not
25
* rendering the .goog-menuitem-rtl class when in RTL and instead rely solely
26
* on the BiDi flipping by the CSS compiler. That's why we're not adding the
27
* @noflip to .goog-menuitem.
28
*/
29
.goog-menuitem {
30
color: #000;
31
font: normal 13px Arial, sans-serif;
32
list-style: none;
33
margin: 0;
34
/* 28px on the left for icon or checkbox; 7em on the right for shortcut. */
35
padding: 4px 7em 4px 28px;
36
white-space: nowrap;
37
}
38
39
/* BiDi override for the resting state. */
40
/* rtl:begin:ignore */
41
/* @noflip */
42
.goog-menuitem.goog-menuitem-rtl {
43
/* Flip left/right padding for BiDi. */
44
padding-left: 7em;
45
padding-right: 28px;
46
}
47
/* rtl:end:ignore */
48
49
/* If a menu doesn't have checkable items or items with icons, remove padding. */
50
.goog-menu-nocheckbox .goog-menuitem,
51
.goog-menu-noicon .goog-menuitem {
52
padding-left: 12px;
53
}
54
55
/*
56
* If a menu doesn't have items with shortcuts, leave just enough room for
57
* submenu arrows, if they are rendered.
58
*/
59
.goog-menu-noaccel .goog-menuitem {
60
padding-right: 20px;
61
}
62
63
.goog-menuitem-content {
64
color: #000;
65
font: normal 13px Arial, sans-serif;
66
}
67
68
/* State: disabled. */
69
.goog-menuitem-disabled .goog-menuitem-accel,
70
.goog-menuitem-disabled .goog-menuitem-content {
71
color: #ccc !important;
72
}
73
.goog-menuitem-disabled .goog-menuitem-icon {
74
opacity: 0.3;
75
-moz-opacity: 0.3;
76
filter: alpha(opacity=30);
77
}
78
79
/* State: hover. */
80
.goog-menuitem-highlight,
81
.goog-menuitem-hover {
82
background-color: #d6e9f8;
83
/* Use an explicit top and bottom border so that the selection is visible
84
* in high contrast mode. */
85
border-color: #d6e9f8;
86
border-style: dotted;
87
border-width: 1px 0;
88
padding-bottom: 3px;
89
padding-top: 3px;
90
}
91
92
/* State: selected/checked. */
93
.goog-menuitem-checkbox,
94
.goog-menuitem-icon {
95
background-repeat: no-repeat;
96
height: 16px;
97
left: 6px;
98
position: absolute;
99
right: auto;
100
vertical-align: middle;
101
width: 16px;
102
}
103
104
/* BiDi override for the selected/checked state. */
105
/* rtl:begin:ignore */
106
/* @noflip */
107
.goog-menuitem-rtl .goog-menuitem-checkbox,
108
.goog-menuitem-rtl .goog-menuitem-icon {
109
/* Flip left/right positioning. */
110
left: auto;
111
right: 6px;
112
}
113
/* rtl:end:ignore */
114
115
.goog-option-selected .goog-menuitem-checkbox,
116
.goog-option-selected .goog-menuitem-icon {
117
/* Client apps may override the URL at which they serve the sprite. */
118
background: url(//ssl.gstatic.com/editor/editortoolbar.png) no-repeat -512px 0;
119
}
120
121
/* Keyboard shortcut ("accelerator") style. */
122
.goog-menuitem-accel {
123
color: #999;
124
/* Keyboard shortcuts are untranslated; always left-to-right. */
125
/* rtl:begin:ignore */
126
/* @noflip */ direction: ltr;
127
/* rtl:end:ignore */
128
left: auto;
129
padding: 0 6px;
130
position: absolute;
131
right: 0;
132
text-align: right;
133
}
134
135
/* BiDi override for shortcut style. */
136
/* @noflip */
137
/* rtl:begin:ignore */
138
.goog-menuitem-rtl .goog-menuitem-accel {
139
/* Flip left/right positioning and text alignment. */
140
left: 0;
141
right: auto;
142
text-align: left;
143
}
144
/* rtl:end:ignore */
145
146
/* Mnemonic styles. */
147
.goog-menuitem-mnemonic-hint {
148
text-decoration: underline;
149
}
150
151
.goog-menuitem-mnemonic-separator {
152
color: #999;
153
font-size: 12px;
154
padding-left: 4px;
155
}
156
157