vertical-tabs.css

Same filename in this branch
  1. 7.x themes/seven/vertical-tabs.css
Same filename in other branches
  1. 9 core/misc/vertical-tabs.css
  2. 9 core/themes/olivero/css/components/vertical-tabs.css
  3. 9 core/themes/stable9/css/core/vertical-tabs.css
  4. 9 core/themes/seven/css/components/vertical-tabs.css
  5. 9 core/themes/claro/css/components/vertical-tabs.css
  6. 9 core/themes/stable/css/core/vertical-tabs.css
  7. 8.9.x core/misc/vertical-tabs.css
  8. 8.9.x core/themes/seven/css/components/vertical-tabs.css
  9. 8.9.x core/themes/claro/css/components/vertical-tabs.css
  10. 8.9.x core/themes/stable/css/core/vertical-tabs.css
  11. 10 core/misc/vertical-tabs.css
  12. 10 core/themes/olivero/css/components/vertical-tabs.css
  13. 10 core/themes/stable9/css/core/vertical-tabs.css
  14. 10 core/themes/claro/css/components/vertical-tabs.css
  15. 11.x core/misc/vertical-tabs.css
  16. 11.x core/themes/olivero/css/components/vertical-tabs.css
  17. 11.x core/themes/stable9/css/core/vertical-tabs.css
  18. 11.x core/themes/claro/css/components/vertical-tabs.css
div.vertical-tabs {
  margin: 1em 0 1em 15em; /* LTR */
  border: 1px solid #ccc;
  position: relative; /* IE6/7 */
}
.vertical-tabs ul.vertical-tabs-list {
  width: 15em;
  list-style: none;
  list-style-image: none; /* IE6 */
  border-top: 1px solid #ccc;
  padding: 0;
  position: relative; /* IE6 */
  margin: -1px 0 -1px -15em; /* LTR */
  float: left; /* LTR */
}
.vertical-tabs fieldset.vertical-tabs-pane {
  margin: 0 !important;
  padding: 0 1em;
  border: 0;
}
fieldset.vertical-tabs-pane legend {
  display: none;
}
fieldset.vertical-tabs-pane fieldset legend {
  display: block;
}

/* Layout of each tab */
.vertical-tabs ul.vertical-tabs-list li {
  background: #eee;
  border: 1px solid #ccc;
  border-top: 0;
  padding: 0;
  margin: 0;
  min-width: 0; /* IE7 */
}
.vertical-tabs ul.vertical-tabs-list li a {
  display: block;
  text-decoration: none;
  padding: 0.5em 0.6em;
}
.vertical-tabs ul.vertical-tabs-list li a:focus strong,
.vertical-tabs ul.vertical-tabs-list li a:active strong,
.vertical-tabs ul.vertical-tabs-list li a:hover strong {
  text-decoration: underline;
}
.vertical-tabs ul.vertical-tabs-list li a:hover {
  outline: 1px dotted;
}
.vertical-tabs ul.vertical-tabs-list li.selected {
  background-color: #fff;
  border-right-width: 0; /* LTR */
}
.vertical-tabs ul.vertical-tabs-list .selected strong {
  color: #000;
}
.vertical-tabs ul.vertical-tabs-list .summary {
  display: block;
}
.vertical-tabs ul.vertical-tabs ul.vertical-tabs-list .summary {
  line-height: normal;
  margin-bottom: 0;
}

/**
 * Prevent text inputs from overflowing when container is too narrow. "width" is
 * applied to override hardcoded cols or size attributes and used in conjunction
 * with "box-sizing" to prevent box model issues from occurring in most browsers.
*/
.vertical-tabs .form-type-textfield input {
  width: 100%;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
* html .vertical-tabs .form-type-textfield,
* html .vertical-tabs .form-textarea-wrapper {
  width: 95%; /* IE6 */
}

File

misc/vertical-tabs.css

View source
  1. div.vertical-tabs {
  2. margin: 1em 0 1em 15em; /* LTR */
  3. border: 1px solid #ccc;
  4. position: relative; /* IE6/7 */
  5. }
  6. .vertical-tabs ul.vertical-tabs-list {
  7. width: 15em;
  8. list-style: none;
  9. list-style-image: none; /* IE6 */
  10. border-top: 1px solid #ccc;
  11. padding: 0;
  12. position: relative; /* IE6 */
  13. margin: -1px 0 -1px -15em; /* LTR */
  14. float: left; /* LTR */
  15. }
  16. .vertical-tabs fieldset.vertical-tabs-pane {
  17. margin: 0 !important;
  18. padding: 0 1em;
  19. border: 0;
  20. }
  21. fieldset.vertical-tabs-pane legend {
  22. display: none;
  23. }
  24. fieldset.vertical-tabs-pane fieldset legend {
  25. display: block;
  26. }
  27. /* Layout of each tab */
  28. .vertical-tabs ul.vertical-tabs-list li {
  29. background: #eee;
  30. border: 1px solid #ccc;
  31. border-top: 0;
  32. padding: 0;
  33. margin: 0;
  34. min-width: 0; /* IE7 */
  35. }
  36. .vertical-tabs ul.vertical-tabs-list li a {
  37. display: block;
  38. text-decoration: none;
  39. padding: 0.5em 0.6em;
  40. }
  41. .vertical-tabs ul.vertical-tabs-list li a:focus strong,
  42. .vertical-tabs ul.vertical-tabs-list li a:active strong,
  43. .vertical-tabs ul.vertical-tabs-list li a:hover strong {
  44. text-decoration: underline;
  45. }
  46. .vertical-tabs ul.vertical-tabs-list li a:hover {
  47. outline: 1px dotted;
  48. }
  49. .vertical-tabs ul.vertical-tabs-list li.selected {
  50. background-color: #fff;
  51. border-right-width: 0; /* LTR */
  52. }
  53. .vertical-tabs ul.vertical-tabs-list .selected strong {
  54. color: #000;
  55. }
  56. .vertical-tabs ul.vertical-tabs-list .summary {
  57. display: block;
  58. }
  59. .vertical-tabs ul.vertical-tabs ul.vertical-tabs-list .summary {
  60. line-height: normal;
  61. margin-bottom: 0;
  62. }
  63. /**
  64. * Prevent text inputs from overflowing when container is too narrow. "width" is
  65. * applied to override hardcoded cols or size attributes and used in conjunction
  66. * with "box-sizing" to prevent box model issues from occurring in most browsers.
  67. */
  68. .vertical-tabs .form-type-textfield input {
  69. width: 100%;
  70. -moz-box-sizing: border-box;
  71. -webkit-box-sizing: border-box;
  72. box-sizing: border-box;
  73. }
  74. * html .vertical-tabs .form-type-textfield,
  75. * html .vertical-tabs .form-textarea-wrapper {
  76. width: 95%; /* IE6 */
  77. }

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