tab.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. * Copyright 2008 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. /* Author: attila@google.com (Attila Bodis) */
  8. /* Author: eae@google.com (Emil A. Eklund) */
  9. /*
  10. * Styles used by goog.ui.TabRenderer.
  11. */
  12. .goog-tab {
  13. position: relative;
  14. padding: 4px 8px;
  15. color: #00c;
  16. text-decoration: underline;
  17. cursor: default;
  18. }
  19. .goog-tab-bar-top .goog-tab {
  20. margin: 1px 4px 0 0;
  21. border-bottom: 0;
  22. float: left;
  23. }
  24. .goog-tab-bar-top:after,
  25. .goog-tab-bar-bottom:after {
  26. content: " ";
  27. display: block;
  28. height: 0;
  29. clear: both;
  30. visibility: hidden;
  31. }
  32. .goog-tab-bar-bottom .goog-tab {
  33. margin: 0 4px 1px 0;
  34. border-top: 0;
  35. float: left;
  36. }
  37. .goog-tab-bar-start .goog-tab {
  38. margin: 0 0 4px 1px;
  39. border-right: 0;
  40. }
  41. .goog-tab-bar-end .goog-tab {
  42. margin: 0 1px 4px 0;
  43. border-left: 0;
  44. }
  45. /* State: Hover */
  46. .goog-tab-hover {
  47. background: #eee;
  48. }
  49. /* State: Disabled */
  50. .goog-tab-disabled {
  51. color: #666;
  52. }
  53. /* State: Selected */
  54. .goog-tab-selected {
  55. color: #000;
  56. background: #fff;
  57. text-decoration: none;
  58. font-weight: bold;
  59. border: 1px solid #6b90da;
  60. }
  61. .goog-tab-bar-top {
  62. padding-top: 5px !important;
  63. padding-left: 5px !important;
  64. border-bottom: 1px solid #6b90da !important;
  65. }
  66. /*
  67. * Shift selected tabs 1px towards the contents (and compensate via margin and
  68. * padding) to visually merge the borders of the tab with the borders of the
  69. * content area.
  70. */
  71. .goog-tab-bar-top .goog-tab-selected {
  72. top: 1px;
  73. margin-top: 0;
  74. padding-bottom: 5px;
  75. }
  76. .goog-tab-bar-bottom .goog-tab-selected {
  77. top: -1px;
  78. margin-bottom: 0;
  79. padding-top: 5px;
  80. }
  81. .goog-tab-bar-start .goog-tab-selected {
  82. left: 1px;
  83. margin-left: 0;
  84. padding-right: 9px;
  85. }
  86. .goog-tab-bar-end .goog-tab-selected {
  87. left: -1px;
  88. margin-right: 0;
  89. padding-left: 9px;
  90. }