You are here

a11y-paragraphs-tabs.css in A11Y Paragraphs Tabs 8

/*
 * @file
 * A11Y Tabs Module Default Styling
 */

.a11y-paragraphs-tabs__wrapper {
  position: relative;
  display: block;
}

.a11y-paragraphs-tabs__wrapper .tabs-tab-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.a11y-paragraphs-tabs__wrapper .tabs-tab-list li {
  margin: 0;
}

/* Individual Tab Styling */
.a11y-paragraphs-tabs__wrapper .tabs-trigger {
  border-bottom: none;
  color: #666;
  display: none;
  font-weight: normal;
  margin: 0 5px 0 1px;
  padding: 15px 20px;
  text-decoration: none;
}

/* Tab hover styling */
.a11y-paragraphs-tabs__wrapper .tabs-trigger:hover {
  border-bottom: none;
  color: #000;
}

/* Tab Active State */
.a11y-paragraphs-tabs__wrapper .tabs-trigger.is-selected,
.a11y-paragraphs-tabs__wrapper .tabs-trigger.is-selected:hover,
.a11y-paragraphs-tabs__wrapper .tabs-trigger.is-selected:focus {
  border-bottom: 2px solid #bbb;
  color: #000;
  background-color: #ededed;
}

.a11y-paragraphs-tabs__wrapper .tabs-trigger:active {
  outline: none;
}

/* Tab Content Area */
.a11y-paragraphs-tabs__wrapper .tabs-panel {
  display: block;
  margin: 0;
  padding: 0;
}

.a11y-paragraphs-tabs__wrapper .tabs-panel:not(:first-of-type) {
  border-top: 2px solid #eee;
}

.a11y-paragraphs-tabs__wrapper .tabs-panel:not(:last-child) {
  border-bottom: 1px solid #eee;
}

.a11y-paragraphs-tabs__wrapper .tabs-panel:not(:last-child) {
  border-bottom: none;
}

.a11y-paragraphs-tabs__wrapper .tabs-panel.is-hidden .content {
  display: none;
}

.a11y-paragraphs-tabs__wrapper .tabs-panel:active,
.a11y-paragraphs-tabs__wrapper .tabs-panel:focus {
  outline: none;
}

.a11y-paragraphs-tabs__wrapper .is-initialized.tabs-allowed .tabs-panel {
  display: inherit;
}

/* Accordion item */
.a11y-paragraphs-tabs__wrapper .accordeon-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 15px 20px;
}

/* Accordion item Active State */
.a11y-paragraphs-tabs__wrapper .accordeon-trigger[aria-expanded="true"] {
  background-color: #ededed;
}

.a11y-paragraphs-tabs__wrapper .accordeon-trigger-icon {
  pointer-events: none;
}

/* Makes the accordions tabs on ipad and above */
@media (min-width: 768px) {
  .a11y-paragraphs-tabs__wrapper .tabs-allowed .accordeon-trigger {
    display: none;
  }
  .a11y-paragraphs-tabs__wrapper .tabs-allowed .tabs-trigger {
    display: block;
  }
  .a11y-paragraphs-tabs__wrapper .tabs-allowed .tabs-panel {
    display: none;
  }
  .a11y-paragraphs-tabs__wrapper .tabs-allowed .tabs-panel.is-hidden {
    display: none;
  }
  .a11y-paragraphs-tabs__wrapper .tabs-allowed .tabs-panel {
    border-top: 2px solid #eee;
  }
  .a11y-paragraphs-tabs__wrapper .tabs-allowed .tabs-tab-list {
    margin-bottom: -2px;
  }
}

.a11y-paragraphs-tabs__wrapper .accordeon-trigger-icon {
  display: inline-block;
  float: right;
  width: 22px;
  height: 22px;
}

.a11y-paragraphs-tabs__wrapper .accordeon-trigger-icon svg {
  margin: 0;
}

.a11y-paragraphs-tabs__wrapper [aria-expanded="true"] .vert {
  display: none;
}

.a11y-paragraphs-tabs__wrapper .label--open,
.a11y-paragraphs-tabs__wrapper .label--close {
  display: block;
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.a11y-paragraphs-tabs__wrapper .label--close {
  display: none;
}

.a11y-paragraphs-tabs__wrapper .is-open .label--open {
  display: none;
}

.a11y-paragraphs-tabs__wrapper .is-open .label--close {
  display: block;
}

File

css/a11y-paragraphs-tabs.css
View source
  1. /*
  2. * @file
  3. * A11Y Tabs Module Default Styling
  4. */
  5. .a11y-paragraphs-tabs__wrapper {
  6. position: relative;
  7. display: block;
  8. }
  9. .a11y-paragraphs-tabs__wrapper .tabs-tab-list {
  10. display: flex;
  11. list-style: none;
  12. margin: 0;
  13. padding: 0;
  14. }
  15. .a11y-paragraphs-tabs__wrapper .tabs-tab-list li {
  16. margin: 0;
  17. }
  18. /* Individual Tab Styling */
  19. .a11y-paragraphs-tabs__wrapper .tabs-trigger {
  20. border-bottom: none;
  21. color: #666;
  22. display: none;
  23. font-weight: normal;
  24. margin: 0 5px 0 1px;
  25. padding: 15px 20px;
  26. text-decoration: none;
  27. }
  28. /* Tab hover styling */
  29. .a11y-paragraphs-tabs__wrapper .tabs-trigger:hover {
  30. border-bottom: none;
  31. color: #000;
  32. }
  33. /* Tab Active State */
  34. .a11y-paragraphs-tabs__wrapper .tabs-trigger.is-selected,
  35. .a11y-paragraphs-tabs__wrapper .tabs-trigger.is-selected:hover,
  36. .a11y-paragraphs-tabs__wrapper .tabs-trigger.is-selected:focus {
  37. border-bottom: 2px solid #bbb;
  38. color: #000;
  39. background-color: #ededed;
  40. }
  41. .a11y-paragraphs-tabs__wrapper .tabs-trigger:active {
  42. outline: none;
  43. }
  44. /* Tab Content Area */
  45. .a11y-paragraphs-tabs__wrapper .tabs-panel {
  46. display: block;
  47. margin: 0;
  48. padding: 0;
  49. }
  50. .a11y-paragraphs-tabs__wrapper .tabs-panel:not(:first-of-type) {
  51. border-top: 2px solid #eee;
  52. }
  53. .a11y-paragraphs-tabs__wrapper .tabs-panel:not(:last-child) {
  54. border-bottom: 1px solid #eee;
  55. }
  56. .a11y-paragraphs-tabs__wrapper .tabs-panel:not(:last-child) {
  57. border-bottom: none;
  58. }
  59. .a11y-paragraphs-tabs__wrapper .tabs-panel.is-hidden .content {
  60. display: none;
  61. }
  62. .a11y-paragraphs-tabs__wrapper .tabs-panel:active,
  63. .a11y-paragraphs-tabs__wrapper .tabs-panel:focus {
  64. outline: none;
  65. }
  66. .a11y-paragraphs-tabs__wrapper .is-initialized.tabs-allowed .tabs-panel {
  67. display: inherit;
  68. }
  69. /* Accordion item */
  70. .a11y-paragraphs-tabs__wrapper .accordeon-trigger {
  71. display: flex;
  72. align-items: center;
  73. justify-content: space-between;
  74. cursor: pointer;
  75. padding: 15px 20px;
  76. }
  77. /* Accordion item Active State */
  78. .a11y-paragraphs-tabs__wrapper .accordeon-trigger[aria-expanded="true"] {
  79. background-color: #ededed;
  80. }
  81. .a11y-paragraphs-tabs__wrapper .accordeon-trigger-icon {
  82. pointer-events: none;
  83. }
  84. /* Makes the accordions tabs on ipad and above */
  85. @media (min-width: 768px) {
  86. .a11y-paragraphs-tabs__wrapper .tabs-allowed .accordeon-trigger {
  87. display: none;
  88. }
  89. .a11y-paragraphs-tabs__wrapper .tabs-allowed .tabs-trigger {
  90. display: block;
  91. }
  92. .a11y-paragraphs-tabs__wrapper .tabs-allowed .tabs-panel {
  93. display: none;
  94. }
  95. .a11y-paragraphs-tabs__wrapper .tabs-allowed .tabs-panel.is-hidden {
  96. display: none;
  97. }
  98. .a11y-paragraphs-tabs__wrapper .tabs-allowed .tabs-panel {
  99. border-top: 2px solid #eee;
  100. }
  101. .a11y-paragraphs-tabs__wrapper .tabs-allowed .tabs-tab-list {
  102. margin-bottom: -2px;
  103. }
  104. }
  105. .a11y-paragraphs-tabs__wrapper .accordeon-trigger-icon {
  106. display: inline-block;
  107. float: right;
  108. width: 22px;
  109. height: 22px;
  110. }
  111. .a11y-paragraphs-tabs__wrapper .accordeon-trigger-icon svg {
  112. margin: 0;
  113. }
  114. .a11y-paragraphs-tabs__wrapper [aria-expanded="true"] .vert {
  115. display: none;
  116. }
  117. .a11y-paragraphs-tabs__wrapper .label--open,
  118. .a11y-paragraphs-tabs__wrapper .label--close {
  119. display: block;
  120. border: 0;
  121. clip: rect(0 0 0 0);
  122. height: 1px;
  123. margin: -1px;
  124. overflow: hidden;
  125. padding: 0;
  126. position: absolute;
  127. width: 1px;
  128. }
  129. .a11y-paragraphs-tabs__wrapper .label--close {
  130. display: none;
  131. }
  132. .a11y-paragraphs-tabs__wrapper .is-open .label--open {
  133. display: none;
  134. }
  135. .a11y-paragraphs-tabs__wrapper .is-open .label--close {
  136. display: block;
  137. }