toolbar.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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. * Standard styling for toolbars and toolbar items.
  9. *
  10. * @author attila@google.com (Attila Bodis)
  11. */
  12. /*
  13. * Styles used by goog.ui.ToolbarRenderer.
  14. */
  15. .goog-toolbar {
  16. /* Client apps may override the URL at which they serve the image. */
  17. background: #fafafa url(//ssl.gstatic.com/editor/toolbar-bg.png) repeat-x bottom left;
  18. border-bottom: 1px solid #d5d5d5;
  19. cursor: default;
  20. font: normal 12px Arial, sans-serif;
  21. margin: 0;
  22. outline: none;
  23. padding: 2px;
  24. position: relative;
  25. zoom: 1; /* The toolbar element must have layout on IE. */
  26. }
  27. /*
  28. * Styles used by goog.ui.ToolbarButtonRenderer.
  29. */
  30. .goog-toolbar-button {
  31. margin: 0 2px;
  32. border: 0;
  33. padding: 0;
  34. font-family: Arial, sans-serif;
  35. color: #333;
  36. text-decoration: none;
  37. list-style: none;
  38. vertical-align: middle;
  39. cursor: default;
  40. outline: none;
  41. }
  42. /* Pseudo-rounded corners. */
  43. .goog-toolbar-button-outer-box,
  44. .goog-toolbar-button-inner-box {
  45. border: 0;
  46. vertical-align: top;
  47. }
  48. .goog-toolbar-button-outer-box {
  49. margin: 0;
  50. padding: 1px 0;
  51. }
  52. .goog-toolbar-button-inner-box {
  53. margin: 0 -1px;
  54. padding: 3px 4px;
  55. }
  56. /* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
  57. * html .goog-toolbar-button-inner-box {
  58. /* IE6 needs to have the box shifted to make the borders line up. */
  59. left: -1px;
  60. }
  61. /* Pre-IE7 BiDi fixes. */
  62. * html .goog-toolbar-button-rtl .goog-toolbar-button-outer-box {
  63. /* @noflip */ left: -1px;
  64. }
  65. * html .goog-toolbar-button-rtl .goog-toolbar-button-inner-box {
  66. /* @noflip */ right: auto;
  67. }
  68. /* IE7-only hack; ignored by all other browsers. */
  69. *:first-child+html .goog-toolbar-button-inner-box {
  70. /* IE7 needs to have the box shifted to make the borders line up. */
  71. left: -1px;
  72. }
  73. /* IE7 BiDi fix. */
  74. *:first-child+html .goog-toolbar-button-rtl .goog-toolbar-button-inner-box {
  75. /* @noflip */ left: 1px;
  76. /* @noflip */ right: auto;
  77. }
  78. /* Safari-only hacks. */
  79. ::root .goog-toolbar-button,
  80. ::root .goog-toolbar-button-outer-box {
  81. /* Required to make pseudo-rounded corners work on Safari. */
  82. line-height: 0;
  83. }
  84. ::root .goog-toolbar-button-inner-box {
  85. /* Required to make pseudo-rounded corners work on Safari. */
  86. line-height: normal;
  87. }
  88. /* Disabled styles. */
  89. .goog-toolbar-button-disabled {
  90. opacity: 0.3;
  91. -moz-opacity: 0.3;
  92. filter: alpha(opacity=30);
  93. }
  94. .goog-toolbar-button-disabled .goog-toolbar-button-outer-box,
  95. .goog-toolbar-button-disabled .goog-toolbar-button-inner-box {
  96. /* Disabled text/border color trumps everything else. */
  97. color: #333 !important;
  98. border-color: #999 !important;
  99. }
  100. /* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
  101. * html .goog-toolbar-button-disabled {
  102. /* IE can't apply alpha to an element with a transparent background... */
  103. background-color: #f0f0f0;
  104. margin: 0 1px;
  105. padding: 0 1px;
  106. }
  107. /* IE7-only hack; ignored by all other browsers. */
  108. *:first-child+html .goog-toolbar-button-disabled {
  109. /* IE can't apply alpha to an element with a transparent background... */
  110. background-color: #f0f0f0;
  111. margin: 0 1px;
  112. padding: 0 1px;
  113. }
  114. /* Only draw borders when in a non-default state. */
  115. .goog-toolbar-button-hover .goog-toolbar-button-outer-box,
  116. .goog-toolbar-button-active .goog-toolbar-button-outer-box,
  117. .goog-toolbar-button-checked .goog-toolbar-button-outer-box,
  118. .goog-toolbar-button-selected .goog-toolbar-button-outer-box {
  119. border-width: 1px 0;
  120. border-style: solid;
  121. padding: 0;
  122. }
  123. .goog-toolbar-button-hover .goog-toolbar-button-inner-box,
  124. .goog-toolbar-button-active .goog-toolbar-button-inner-box,
  125. .goog-toolbar-button-checked .goog-toolbar-button-inner-box,
  126. .goog-toolbar-button-selected .goog-toolbar-button-inner-box {
  127. border-width: 0 1px;
  128. border-style: solid;
  129. padding: 3px;
  130. }
  131. /* Hover styles. */
  132. .goog-toolbar-button-hover .goog-toolbar-button-outer-box,
  133. .goog-toolbar-button-hover .goog-toolbar-button-inner-box {
  134. /* Hover border style wins over active/checked/selected. */
  135. border-color: #a1badf !important;
  136. }
  137. /* Active/checked/selected styles. */
  138. .goog-toolbar-button-active,
  139. .goog-toolbar-button-checked,
  140. .goog-toolbar-button-selected {
  141. /* Active/checked/selected background color always wins. */
  142. background-color: #dde1eb !important;
  143. }
  144. .goog-toolbar-button-active .goog-toolbar-button-outer-box,
  145. .goog-toolbar-button-active .goog-toolbar-button-inner-box,
  146. .goog-toolbar-button-checked .goog-toolbar-button-outer-box,
  147. .goog-toolbar-button-checked .goog-toolbar-button-inner-box,
  148. .goog-toolbar-button-selected .goog-toolbar-button-outer-box,
  149. .goog-toolbar-button-selected .goog-toolbar-button-inner-box {
  150. border-color: #729bd1;
  151. }
  152. /* Pill (collapsed border) styles. */
  153. .goog-toolbar-button-collapse-right,
  154. .goog-toolbar-button-collapse-right .goog-toolbar-button-outer-box,
  155. .goog-toolbar-button-collapse-right .goog-toolbar-button-inner-box {
  156. margin-right: 0;
  157. }
  158. .goog-toolbar-button-collapse-left,
  159. .goog-toolbar-button-collapse-left .goog-toolbar-button-outer-box,
  160. .goog-toolbar-button-collapse-left .goog-toolbar-button-inner-box {
  161. margin-left: 0;
  162. }
  163. /* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
  164. * html .goog-toolbar-button-collapse-left .goog-toolbar-button-inner-box {
  165. left: 0;
  166. }
  167. /* IE7-only hack; ignored by all other browsers. */
  168. *:first-child+html .goog-toolbar-button-collapse-left
  169. .goog-toolbar-button-inner-box {
  170. left: 0;
  171. }
  172. /*
  173. * Styles used by goog.ui.ToolbarMenuButtonRenderer.
  174. */
  175. .goog-toolbar-menu-button {
  176. margin: 0 2px;
  177. border: 0;
  178. padding: 0;
  179. font-family: Arial, sans-serif;
  180. color: #333;
  181. text-decoration: none;
  182. list-style: none;
  183. vertical-align: middle;
  184. cursor: default;
  185. outline: none;
  186. }
  187. /* Pseudo-rounded corners. */
  188. .goog-toolbar-menu-button-outer-box,
  189. .goog-toolbar-menu-button-inner-box {
  190. border: 0;
  191. vertical-align: top;
  192. }
  193. .goog-toolbar-menu-button-outer-box {
  194. margin: 0;
  195. padding: 1px 0;
  196. }
  197. .goog-toolbar-menu-button-inner-box {
  198. margin: 0 -1px;
  199. padding: 3px 4px;
  200. }
  201. /* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
  202. * html .goog-toolbar-menu-button-inner-box {
  203. /* IE6 needs to have the box shifted to make the borders line up. */
  204. left: -1px;
  205. }
  206. /* Pre-IE7 BiDi fixes. */
  207. * html .goog-toolbar-menu-button-rtl .goog-toolbar-menu-button-outer-box {
  208. /* @noflip */ left: -1px;
  209. }
  210. * html .goog-toolbar-menu-button-rtl .goog-toolbar-menu-button-inner-box {
  211. /* @noflip */ right: auto;
  212. }
  213. /* IE7-only hack; ignored by all other browsers. */
  214. *:first-child+html .goog-toolbar-menu-button-inner-box {
  215. /* IE7 needs to have the box shifted to make the borders line up. */
  216. left: -1px;
  217. }
  218. /* IE7 BiDi fix. */
  219. *:first-child+html .goog-toolbar-menu-button-rtl
  220. .goog-toolbar-menu-button-inner-box {
  221. /* @noflip */ left: 1px;
  222. /* @noflip */ right: auto;
  223. }
  224. /* Safari-only hacks. */
  225. ::root .goog-toolbar-menu-button,
  226. ::root .goog-toolbar-menu-button-outer-box,
  227. ::root .goog-toolbar-menu-button-inner-box {
  228. /* Required to make pseudo-rounded corners work on Safari. */
  229. line-height: 0;
  230. }
  231. ::root .goog-toolbar-menu-button-caption,
  232. ::root .goog-toolbar-menu-button-dropdown {
  233. /* Required to make pseudo-rounded corners work on Safari. */
  234. line-height: normal;
  235. }
  236. /* Disabled styles. */
  237. .goog-toolbar-menu-button-disabled {
  238. opacity: 0.3;
  239. -moz-opacity: 0.3;
  240. filter: alpha(opacity=30);
  241. }
  242. .goog-toolbar-menu-button-disabled .goog-toolbar-menu-button-outer-box,
  243. .goog-toolbar-menu-button-disabled .goog-toolbar-menu-button-inner-box {
  244. /* Disabled text/border color trumps everything else. */
  245. color: #333 !important;
  246. border-color: #999 !important;
  247. }
  248. /* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
  249. * html .goog-toolbar-menu-button-disabled {
  250. /* IE can't apply alpha to an element with a transparent background... */
  251. background-color: #f0f0f0;
  252. margin: 0 1px;
  253. padding: 0 1px;
  254. }
  255. /* IE7-only hack; ignored by all other browsers. */
  256. *:first-child+html .goog-toolbar-menu-button-disabled {
  257. /* IE can't apply alpha to an element with a transparent background... */
  258. background-color: #f0f0f0;
  259. margin: 0 1px;
  260. padding: 0 1px;
  261. }
  262. /* Only draw borders when in a non-default state. */
  263. .goog-toolbar-menu-button-hover .goog-toolbar-menu-button-outer-box,
  264. .goog-toolbar-menu-button-active .goog-toolbar-menu-button-outer-box,
  265. .goog-toolbar-menu-button-open .goog-toolbar-menu-button-outer-box {
  266. border-width: 1px 0;
  267. border-style: solid;
  268. padding: 0;
  269. }
  270. .goog-toolbar-menu-button-hover .goog-toolbar-menu-button-inner-box,
  271. .goog-toolbar-menu-button-active .goog-toolbar-menu-button-inner-box,
  272. .goog-toolbar-menu-button-open .goog-toolbar-menu-button-inner-box {
  273. border-width: 0 1px;
  274. border-style: solid;
  275. padding: 3px;
  276. }
  277. /* Hover styles. */
  278. .goog-toolbar-menu-button-hover .goog-toolbar-menu-button-outer-box,
  279. .goog-toolbar-menu-button-hover .goog-toolbar-menu-button-inner-box {
  280. /* Hover border color trumps active/open style. */
  281. border-color: #a1badf !important;
  282. }
  283. /* Active/open styles. */
  284. .goog-toolbar-menu-button-active,
  285. .goog-toolbar-menu-button-open {
  286. /* Active/open background color wins. */
  287. background-color: #dde1eb !important;
  288. }
  289. .goog-toolbar-menu-button-active .goog-toolbar-menu-button-outer-box,
  290. .goog-toolbar-menu-button-active .goog-toolbar-menu-button-inner-box,
  291. .goog-toolbar-menu-button-open .goog-toolbar-menu-button-outer-box,
  292. .goog-toolbar-menu-button-open .goog-toolbar-menu-button-inner-box {
  293. border-color: #729bd1;
  294. }
  295. /* Menu button caption style. */
  296. .goog-toolbar-menu-button-caption {
  297. padding: 0 4px 0 0;
  298. vertical-align: middle;
  299. }
  300. /* Dropdown style. */
  301. .goog-toolbar-menu-button-dropdown {
  302. width: 7px;
  303. /* Client apps may override the URL at which they serve the sprite. */
  304. background: url(//ssl.gstatic.com/editor/editortoolbar.png) no-repeat -388px 0;
  305. vertical-align: middle;
  306. }
  307. /*
  308. * Styles used by goog.ui.ToolbarSeparatorRenderer.
  309. */
  310. .goog-toolbar-separator {
  311. margin: 0 2px;
  312. border-left: 1px solid #d6d6d6;
  313. border-right: 1px solid #f7f7f7;
  314. padding: 0;
  315. width: 0;
  316. text-decoration: none;
  317. list-style: none;
  318. outline: none;
  319. vertical-align: middle;
  320. line-height: normal;
  321. font-size: 120%;
  322. overflow: hidden;
  323. }
  324. /*
  325. * Additional styling for toolbar select controls, which always have borders.
  326. */
  327. .goog-toolbar-select .goog-toolbar-menu-button-outer-box {
  328. border-width: 1px 0;
  329. border-style: solid;
  330. padding: 0;
  331. }
  332. .goog-toolbar-select .goog-toolbar-menu-button-inner-box {
  333. border-width: 0 1px;
  334. border-style: solid;
  335. padding: 3px;
  336. }
  337. .goog-toolbar-select .goog-toolbar-menu-button-outer-box,
  338. .goog-toolbar-select .goog-toolbar-menu-button-inner-box {
  339. border-color: #bfcbdf;
  340. }