tabs.css

Same filename in this branch
  1. 8.9.x core/profiles/demo_umami/themes/umami/css/components/navigation/tabs/tabs.css
  2. 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/tabs.css
  3. 8.9.x core/themes/seven/css/components/tabs.css
  4. 8.9.x core/themes/seven/css/classy/components/tabs.css
  5. 8.9.x core/themes/claro/css/components/tabs.css
  6. 8.9.x core/themes/bartik/css/classy/components/tabs.css
  7. 8.9.x core/themes/classy/css/components/tabs.css
  8. 8.9.x core/assets/vendor/jquery.ui/themes/base/tabs.css
Same filename and directory in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/components/navigation/tabs/tabs.css
  2. 9 core/profiles/demo_umami/themes/umami/css/components/regions/tabs/tabs.css
  3. 9 core/profiles/demo_umami/themes/umami/css/classy/components/tabs.css
  4. 9 core/themes/olivero/css/components/tabs.css
  5. 9 core/themes/seven/css/components/tabs.css
  6. 9 core/themes/seven/css/classy/components/tabs.css
  7. 9 core/themes/claro/css/components/tabs.css
  8. 9 core/themes/bartik/css/components/tabs.css
  9. 9 core/themes/bartik/css/classy/components/tabs.css
  10. 9 core/themes/starterkit_theme/css/components/tabs.css
  11. 9 core/themes/classy/css/components/tabs.css
  12. 10 core/profiles/demo_umami/themes/umami/css/components/navigation/tabs/tabs.css
  13. 10 core/profiles/demo_umami/themes/umami/css/components/regions/tabs/tabs.css
  14. 10 core/themes/olivero/css/components/tabs.css
  15. 10 core/themes/claro/css/components/tabs.css
  16. 10 core/themes/starterkit_theme/css/components/tabs.css
  17. 11.x core/profiles/demo_umami/themes/umami/css/components/navigation/tabs/tabs.css
  18. 11.x core/profiles/demo_umami/themes/umami/css/components/regions/tabs/tabs.css
  19. 11.x core/themes/olivero/css/components/tabs.css
  20. 11.x core/themes/claro/css/components/tabs.css
  21. 11.x core/themes/starterkit_theme/css/components/tabs.css
/* --------------- System Tabs  --------------- */

div.tabs {
  margin-bottom: 20px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.tabs ul.primary {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.tabs ul.primary li a {
  display: block;
  height: 1.8em;
  padding: 0 10px 3px;
  color: #000;
  border-width: 1px;
  border-style: solid solid none solid;
  border-color: #bbb;
  background-color: #ededed;
  text-shadow: 0 1px 0 #fff;
  font-size: 0.929em;
  line-height: 1.9;
}
.tabs ul.primary li.is-active a {
  border: 1px solid #bbb;
  background-color: #fff;
}

@media screen and (max-width: 37.5em) { /* 600px */
  .tabs ul.primary {
    border-bottom: 1px solid #bbb;
  }
  .tabs ul.primary li {
    display: block;
    margin: 0;
  }
  .tabs ul.primary li a {
    padding: 5px 10px;
  }
  .tabs ul.primary li.is-active a {
    border-bottom: none;
  }
}

@media screen and (min-width: 37.5em) { /* 600px */
  .tabs ul.primary {
    overflow: hidden;
    height: auto;
    margin: 0;
    padding: 0 3px;
    white-space: nowrap;
    border: none;
    border-collapse: collapse;
    background: transparent url(../../images/tabs-border.png) repeat-x left bottom;
    line-height: normal;
  }
  .tabs ul.primary li {
    display: block;
    float: left; /* LTR */
    margin: 0 5px 0 0; /* LTR */
    vertical-align: bottom;
  }
  [dir="rtl"] .tabs ul.primary li {
    float: right;
    margin: 0 0 0 5px;
  }
  .tabs ul.primary li a {
    float: left; /* not LTR */
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
  }
  .tabs ul.primary li.is-active a {
    border-bottom: 1px solid #fff;
  }
}
.tabs ul.secondary {
  overflow: hidden;
  margin: 5px;
  padding: 0.5em 0;
  border-bottom: none;
}
.tabs ul.secondary li {
  display: block;
  float: left; /* LTR */
  margin: 0;
  padding: 0 1em;
  border-right: 1px solid #ccc; /* LTR */
}
[dir="rtl"] .tabs ul.secondary li {
  float: right;
  border-right: none;
  border-left: 1px solid #ccc;
}
.tabs ul.secondary li:last-child {
  border-right: none; /* LTR */
}
[dir="rtl"] .tabs ul.secondary li:last-child {
  border-left: none;
}
.tabs ul.secondary li:first-child {
  padding-left: 0; /* LTR */
}
[dir="rtl"] .tabs ul.secondary li:first-child {
  padding-right: 0;
}
.tabs ul.secondary li a {
  display: inline;
  padding: 0.25em 0.5em;
  text-decoration: none;
}
.tabs ul.secondary li a.is-active {
  border-bottom: none;
  border-radius: 5px;
  background: #f2f2f2;
}

File

core/themes/bartik/css/components/tabs.css

View source
  1. /* --------------- System Tabs --------------- */
  2. div.tabs {
  3. margin-bottom: 20px;
  4. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  5. }
  6. .tabs ul.primary {
  7. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  8. }
  9. .tabs ul.primary li a {
  10. display: block;
  11. height: 1.8em;
  12. padding: 0 10px 3px;
  13. color: #000;
  14. border-width: 1px;
  15. border-style: solid solid none solid;
  16. border-color: #bbb;
  17. background-color: #ededed;
  18. text-shadow: 0 1px 0 #fff;
  19. font-size: 0.929em;
  20. line-height: 1.9;
  21. }
  22. .tabs ul.primary li.is-active a {
  23. border: 1px solid #bbb;
  24. background-color: #fff;
  25. }
  26. @media screen and (max-width: 37.5em) { /* 600px */
  27. .tabs ul.primary {
  28. border-bottom: 1px solid #bbb;
  29. }
  30. .tabs ul.primary li {
  31. display: block;
  32. margin: 0;
  33. }
  34. .tabs ul.primary li a {
  35. padding: 5px 10px;
  36. }
  37. .tabs ul.primary li.is-active a {
  38. border-bottom: none;
  39. }
  40. }
  41. @media screen and (min-width: 37.5em) { /* 600px */
  42. .tabs ul.primary {
  43. overflow: hidden;
  44. height: auto;
  45. margin: 0;
  46. padding: 0 3px;
  47. white-space: nowrap;
  48. border: none;
  49. border-collapse: collapse;
  50. background: transparent url(../../images/tabs-border.png) repeat-x left bottom;
  51. line-height: normal;
  52. }
  53. .tabs ul.primary li {
  54. display: block;
  55. float: left; /* LTR */
  56. margin: 0 5px 0 0; /* LTR */
  57. vertical-align: bottom;
  58. }
  59. [dir="rtl"] .tabs ul.primary li {
  60. float: right;
  61. margin: 0 0 0 5px;
  62. }
  63. .tabs ul.primary li a {
  64. float: left; /* not LTR */
  65. border-top-left-radius: 6px;
  66. border-top-right-radius: 6px;
  67. }
  68. .tabs ul.primary li.is-active a {
  69. border-bottom: 1px solid #fff;
  70. }
  71. }
  72. .tabs ul.secondary {
  73. overflow: hidden;
  74. margin: 5px;
  75. padding: 0.5em 0;
  76. border-bottom: none;
  77. }
  78. .tabs ul.secondary li {
  79. display: block;
  80. float: left; /* LTR */
  81. margin: 0;
  82. padding: 0 1em;
  83. border-right: 1px solid #ccc; /* LTR */
  84. }
  85. [dir="rtl"] .tabs ul.secondary li {
  86. float: right;
  87. border-right: none;
  88. border-left: 1px solid #ccc;
  89. }
  90. .tabs ul.secondary li:last-child {
  91. border-right: none; /* LTR */
  92. }
  93. [dir="rtl"] .tabs ul.secondary li:last-child {
  94. border-left: none;
  95. }
  96. .tabs ul.secondary li:first-child {
  97. padding-left: 0; /* LTR */
  98. }
  99. [dir="rtl"] .tabs ul.secondary li:first-child {
  100. padding-right: 0;
  101. }
  102. .tabs ul.secondary li a {
  103. display: inline;
  104. padding: 0.25em 0.5em;
  105. text-decoration: none;
  106. }
  107. .tabs ul.secondary li a.is-active {
  108. border-bottom: none;
  109. border-radius: 5px;
  110. background: #f2f2f2;
  111. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.