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