Adding mapbox-gl branch
This commit is contained in:
@@ -0,0 +1,169 @@
|
||||
/*
|
||||
* Copyright 2009 The Closure Library Authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by the Apache License, Version 2.0.
|
||||
* See the COPYING file for details.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Standard styling for buttons created by goog.ui.MenuButtonRenderer.
|
||||
*
|
||||
* @author attila@google.com (Attila Bodis)
|
||||
*/
|
||||
|
||||
|
||||
/* State: resting. */
|
||||
.goog-menu-button {
|
||||
/* Client apps may override the URL at which they serve the image. */
|
||||
background: #ddd url(//ssl.gstatic.com/editor/button-bg.png) repeat-x top left;
|
||||
border: 0;
|
||||
color: #000;
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
margin: 2px;
|
||||
outline: none;
|
||||
padding: 0;
|
||||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* Pseudo-rounded corners. */
|
||||
.goog-menu-button-outer-box,
|
||||
.goog-menu-button-inner-box {
|
||||
border-style: solid;
|
||||
border-color: #aaa;
|
||||
vertical-align: top;
|
||||
}
|
||||
.goog-menu-button-outer-box {
|
||||
margin: 0;
|
||||
border-width: 1px 0;
|
||||
padding: 0;
|
||||
}
|
||||
.goog-menu-button-inner-box {
|
||||
margin: 0 -1px;
|
||||
border-width: 0 1px;
|
||||
padding: 3px 4px;
|
||||
}
|
||||
|
||||
/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
|
||||
* html .goog-menu-button-inner-box {
|
||||
/* IE6 needs to have the box shifted to make the borders line up. */
|
||||
left: -1px;
|
||||
}
|
||||
|
||||
/* Pre-IE7 BiDi fixes. */
|
||||
* html .goog-menu-button-rtl .goog-menu-button-outer-box {
|
||||
/* @noflip */ left: -1px;
|
||||
/* @noflip */ right: auto;
|
||||
}
|
||||
* html .goog-menu-button-rtl .goog-menu-button-inner-box {
|
||||
/* @noflip */ right: auto;
|
||||
}
|
||||
|
||||
/* IE7-only hack; ignored by all other browsers. */
|
||||
*:first-child+html .goog-menu-button-inner-box {
|
||||
/* IE7 needs to have the box shifted to make the borders line up. */
|
||||
left: -1px;
|
||||
}
|
||||
/* IE7 BiDi fix. */
|
||||
*:first-child+html .goog-menu-button-rtl .goog-menu-button-inner-box {
|
||||
/* @noflip */ left: 1px;
|
||||
/* @noflip */ right: auto;
|
||||
}
|
||||
|
||||
/* Safari-only hacks. */
|
||||
::root .goog-menu-button,
|
||||
::root .goog-menu-button-outer-box,
|
||||
::root .goog-menu-button-inner-box {
|
||||
/* Required to make pseudo-rounded corners work on Safari. */
|
||||
line-height: 0;
|
||||
}
|
||||
::root .goog-menu-button-caption,
|
||||
::root .goog-menu-button-dropdown {
|
||||
/* Required to make pseudo-rounded corners work on Safari. */
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/* State: disabled. */
|
||||
.goog-menu-button-disabled {
|
||||
background-image: none !important;
|
||||
opacity: 0.3;
|
||||
-moz-opacity: 0.3;
|
||||
filter: alpha(opacity=30);
|
||||
}
|
||||
.goog-menu-button-disabled .goog-menu-button-outer-box,
|
||||
.goog-menu-button-disabled .goog-menu-button-inner-box,
|
||||
.goog-menu-button-disabled .goog-menu-button-caption,
|
||||
.goog-menu-button-disabled .goog-menu-button-dropdown {
|
||||
color: #333 !important;
|
||||
border-color: #999 !important;
|
||||
}
|
||||
|
||||
/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
|
||||
* html .goog-menu-button-disabled {
|
||||
margin: 2px 1px !important;
|
||||
padding: 0 1px !important;
|
||||
}
|
||||
|
||||
/* IE7-only hack; ignored by all other browsers. */
|
||||
*:first-child+html .goog-menu-button-disabled {
|
||||
margin: 2px 1px !important;
|
||||
padding: 0 1px !important;
|
||||
}
|
||||
|
||||
/* State: hover. */
|
||||
.goog-menu-button-hover .goog-menu-button-outer-box,
|
||||
.goog-menu-button-hover .goog-menu-button-inner-box {
|
||||
border-color: #9cf #69e #69e #7af !important; /* Hover border wins. */
|
||||
}
|
||||
|
||||
/* State: active, open. */
|
||||
.goog-menu-button-active,
|
||||
.goog-menu-button-open {
|
||||
background-color: #bbb;
|
||||
background-position: bottom left;
|
||||
}
|
||||
|
||||
/* State: focused. */
|
||||
.goog-menu-button-focused .goog-menu-button-outer-box,
|
||||
.goog-menu-button-focused .goog-menu-button-inner-box {
|
||||
border-color: orange;
|
||||
}
|
||||
|
||||
/* Caption style. */
|
||||
.goog-menu-button-caption {
|
||||
padding: 0 4px 0 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Dropdown arrow style. */
|
||||
.goog-menu-button-dropdown {
|
||||
height: 15px;
|
||||
width: 7px;
|
||||
/* Client apps may override the URL at which they serve the sprite. */
|
||||
background: url(//ssl.gstatic.com/editor/editortoolbar.png) no-repeat -388px 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Pill (collapsed border) styles. */
|
||||
/* TODO(gboyer): Remove specific menu button styles and have any button support being a menu button. */
|
||||
.goog-menu-button-collapse-right,
|
||||
.goog-menu-button-collapse-right .goog-menu-button-outer-box,
|
||||
.goog-menu-button-collapse-right .goog-menu-button-inner-box {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.goog-menu-button-collapse-left,
|
||||
.goog-menu-button-collapse-left .goog-menu-button-outer-box,
|
||||
.goog-menu-button-collapse-left .goog-menu-button-inner-box {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.goog-menu-button-collapse-left .goog-menu-button-inner-box {
|
||||
border-left: 1px solid #fff;
|
||||
}
|
||||
|
||||
.goog-menu-button-collapse-left.goog-menu-button-checked
|
||||
.goog-menu-button-inner-box {
|
||||
border-left: 1px solid #ddd;
|
||||
}
|
||||
Reference in New Issue
Block a user