Path: blob/trunk/third_party/closure/goog/css/menuitem.css
4525 views
/*1* Copyright 2009 The Closure Library Authors. All Rights Reserved.2*3* Use of this source code is governed by the Apache License, Version 2.0.4* See the COPYING file for details.5*/67/*8* Standard styling for menus created by goog.ui.MenuItemRenderer.9*/1011@provide 'goog.css.menuitem';1213/**14* State: resting.15*16* NOTE(mleibman,chrishenry):17* The RTL support in Closure is provided via two mechanisms -- "rtl" CSS18* classes and BiDi flipping done by the CSS compiler. Closure supports RTL19* with or without the use of the CSS compiler. In order for them not20* to conflict with each other, the "rtl" CSS classes need to have the @noflip21* annotation. The non-rtl counterparts should ideally have them as well, but,22* since .goog-menuitem existed without .goog-menuitem-rtl for so long before23* being added, there is a risk of people having templates where they are not24* rendering the .goog-menuitem-rtl class when in RTL and instead rely solely25* on the BiDi flipping by the CSS compiler. That's why we're not adding the26* @noflip to .goog-menuitem.27*/28.goog-menuitem {29color: #000;30font: normal 13px Arial, sans-serif;31list-style: none;32margin: 0;33/* 28px on the left for icon or checkbox; 7em on the right for shortcut. */34padding: 4px 7em 4px 28px;35white-space: nowrap;36}3738/* BiDi override for the resting state. */39/* rtl:begin:ignore */40/* @noflip */41.goog-menuitem.goog-menuitem-rtl {42/* Flip left/right padding for BiDi. */43padding-left: 7em;44padding-right: 28px;45}46/* rtl:end:ignore */4748/* 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 {51padding-left: 12px;52}5354/*55* If a menu doesn't have items with shortcuts, leave just enough room for56* submenu arrows, if they are rendered.57*/58.goog-menu-noaccel .goog-menuitem {59padding-right: 20px;60}6162.goog-menuitem-content {63color: #000;64font: normal 13px Arial, sans-serif;65}6667/* State: disabled. */68.goog-menuitem-disabled .goog-menuitem-accel,69.goog-menuitem-disabled .goog-menuitem-content {70color: #ccc !important;71}72.goog-menuitem-disabled .goog-menuitem-icon {73opacity: 0.3;74-moz-opacity: 0.3;75filter: alpha(opacity=30);76}7778/* State: hover. */79.goog-menuitem-highlight,80.goog-menuitem-hover {81background-color: #d6e9f8;82/* Use an explicit top and bottom border so that the selection is visible83* in high contrast mode. */84border-color: #d6e9f8;85border-style: dotted;86border-width: 1px 0;87padding-bottom: 3px;88padding-top: 3px;89}9091/* State: selected/checked. */92.goog-menuitem-checkbox,93.goog-menuitem-icon {94background-repeat: no-repeat;95height: 16px;96left: 6px;97position: absolute;98right: auto;99vertical-align: middle;100width: 16px;101}102103/* BiDi override for the selected/checked state. */104/* rtl:begin:ignore */105/* @noflip */106.goog-menuitem-rtl .goog-menuitem-checkbox,107.goog-menuitem-rtl .goog-menuitem-icon {108/* Flip left/right positioning. */109left: auto;110right: 6px;111}112/* rtl:end:ignore */113114.goog-option-selected .goog-menuitem-checkbox,115.goog-option-selected .goog-menuitem-icon {116/* Client apps may override the URL at which they serve the sprite. */117background: url(//ssl.gstatic.com/editor/editortoolbar.png) no-repeat -512px 0;118}119120/* Keyboard shortcut ("accelerator") style. */121.goog-menuitem-accel {122color: #999;123/* Keyboard shortcuts are untranslated; always left-to-right. */124/* rtl:begin:ignore */125/* @noflip */ direction: ltr;126/* rtl:end:ignore */127left: auto;128padding: 0 6px;129position: absolute;130right: 0;131text-align: right;132}133134/* BiDi override for shortcut style. */135/* @noflip */136/* rtl:begin:ignore */137.goog-menuitem-rtl .goog-menuitem-accel {138/* Flip left/right positioning and text alignment. */139left: 0;140right: auto;141text-align: left;142}143/* rtl:end:ignore */144145/* Mnemonic styles. */146.goog-menuitem-mnemonic-hint {147text-decoration: underline;148}149150.goog-menuitem-mnemonic-separator {151color: #999;152font-size: 12px;153padding-left: 4px;154}155156157