vertical-tabs.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /**
  2. * @file
  3. * Override of misc/vertical-tabs.css.
  4. */
  5. .vertical-tabs {
  6. position: relative;
  7. overflow: hidden;
  8. margin: 20px 0;
  9. background: #e7e7e7;
  10. }
  11. .vertical-tabs__menu {
  12. float: left; /* LTR */
  13. width: 280px;
  14. margin: 0 -100% -1px 0; /* LTR */
  15. padding: 0;
  16. line-height: 1;
  17. }
  18. [dir="rtl"] .vertical-tabs__menu {
  19. float: right;
  20. margin: 0 0 -1px -100%;
  21. }
  22. .vertical-tabs__menu-item {
  23. position: relative;
  24. }
  25. .vertical-tabs__menu-item.is-selected {
  26. z-index: 1;
  27. overflow-x: hidden;
  28. width: 100%;
  29. }
  30. .vertical-tabs__menu-item:focus,
  31. .vertical-tabs__menu-item:active {
  32. z-index: 2;
  33. }
  34. .vertical-tabs__menu-item a {
  35. display: block;
  36. padding: 20px;
  37. text-decoration: none;
  38. }
  39. .vertical-tabs__menu-item:last-child a {
  40. border-bottom: 0;
  41. }
  42. .vertical-tabs__menu-item.is-selected a,
  43. .vertical-tabs__menu-item.is-selected a:hover,
  44. .vertical-tabs__menu-item a:focus {
  45. background: #f5f5f5;
  46. }
  47. .vertical-tabs__menu-item a:hover {
  48. background: #eeeeee;
  49. text-decoration: none;
  50. }
  51. .vertical-tabs__menu-item a:focus {
  52. outline: transparent;
  53. }
  54. .vertical-tabs__menu-item a:focus .vertical-tabs__menu-item-title {
  55. text-decoration: underline;
  56. }
  57. .vertical-tabs__menu-item a:active .vertical-tabs__menu-item-title,
  58. .vertical-tabs__menu-item.is-selected a:focus .vertical-tabs__menu-item-title {
  59. text-decoration: none;
  60. }
  61. .vertical-tabs__menu-item.is-selected a {
  62. color: #0678be;
  63. text-decoration: none;
  64. }
  65. .vertical-tabs__menu-item.is-selected a:hover,
  66. .vertical-tabs__menu-item.is-selected a:focus {
  67. color: #0678be;
  68. }
  69. [data-vertical-tabs-panes] {
  70. background-color: #f5f5f5;
  71. }
  72. .vertical-tabs__panes {
  73. margin: 0 0 0 280px; /* LTR */
  74. padding: 5px 15px;
  75. }
  76. [dir="rtl"] .vertical-tabs__panes {
  77. margin: 0 280px 0 0;
  78. }
  79. .vertical-tabs__panes:after {
  80. content: "";
  81. display: table;
  82. clear: both;
  83. }
  84. .vertical-tabs__pane {
  85. margin: 0;
  86. padding: 0;
  87. border: 0;
  88. }
  89. .vertical-tabs__menu-item-summary {
  90. display: block;
  91. padding-top: 0.4em;
  92. color: #333;
  93. line-height: 1.5;
  94. }
  95. .vertical-tabs__pane > summary {
  96. display: none;
  97. }