Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- Begin .site-wrapper -->
<div class="site-wrapper">

  <!-- Begin Header -->
  <header>
    <h1>Macaw Aurora Tabs - Macaw Tabs Plugin</h1>
    <p>Accessible, Responsive & Friendly Tabs</p>
    <hr>
    <ul>
      <li>Use <kbd>Arrow</kbd> keys to navigate tabs.</li>
      <li>Display tab panel by pressing <kbd>Space</kbd> or <kbd>Enter</kbd>.</li>
    </ul>
  </header>
  <!-- End Header -->

  <!-- Begin Main -->
  <main>
    <!-- Begin .macaw-tabs -->
    <div class="macaw-tabs macaw-aurora-tabs">
      <div role="tablist" aria-label="Blog Navigation" aria-orientation="vertical">
        <button role="tab" aria-selected="true" aria-controls="home-tab" id="home"><span class="material-icons icon">home</span> <span class="label">Home</span></button>
        <button role="tab" aria-selected="false" aria-controls="blog-tab" id="blog" tabindex="-1"><span class="material-icons icon">wysiwyg</span> <span class="label">Blog</span></button>
        <button role="tab" aria-selected="false" aria-controls="portfolio-tab" id="portfolio" tabindex="-1"><span class="material-icons icon">manage_accounts</span> <span class="label">Portfolio</span></button>
        <button role="tab" aria-selected="false" aria-controls="branding-tab" id="branding" tabindex="-1"><span class="material-icons icon">lightbulb</span> <span class="label">Branding</span></button>
      </div>

      <div tabindex="0" role="tabpanel" aria-labelledby="home" id="home-tab">
        <p>Vestibulum vitae <a href="#">feugiat quam</a>, eget porttitor lacus. Praesent blandit gravida neque at vestibulum. Nullam congue mauris massa, sit amet mattis leo fringilla nec. Quisque accumsan scelerisque leo eu laoreet. Aliquam libero tortor.</p>
        <p>Cras volutpat diam quis odio cursus accumsan. Ut tincidunt cursus sagittis. Sed lobortis luctus interdum. Proin placerat, augue non placerat egestas, mi ante sagittis nulla, vitae auctor lectus sem varius nunc. Quisque at elit non nisl molestie consectetur. Vestibulum at accumsan diam. Sed eget cursus ipsum, in sagittis arcu. Nulla dolor dolor.</p>
      </div>
      <div tabindex="0" role="tabpanel" aria-labelledby="blog" id="blog-tab" hidden>
        <p>Nullam est ipsum, vestibulum non ullamcorper vitae, <a href="#">volutpat vitae enim</a>. Donec ligula libero, sodales faucibus mauris ut, aliquet interdum sem. Pellentesque fermentum mi dignissim dui rhoncus pellentesque. Quisque blandit eros vel purus suscipit, sit amet aliquet leo lobortis.</p>
        <p>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Ut ullamcorper tempor lacinia. Nunc commodo elit eu feugiat bibendum. Curabitur et dapibus libero. Vestibulum at accumsan diam. Sed eget cursus ipsum, in sagittis arcu. Nulla dolor dolor.</p>
      </div>
      <div tabindex="0" role="tabpanel" aria-labelledby="portfolio" id="portfolio-tab" hidden>
        <p>Sed euismod arcu tincidunt metus dapibus ultrices. Morbi varius imperdiet tortor sit amet imperdiet. <a href="#">Donec at lacinia mi</a>. Suspendisse eget malesuada turpis. Duis sit amet velit neque. Mauris in elit purus. In nulla dui, pretium vitae feugiat a, luctus sit amet metus.</p>
        <p>Ut eget consequat augue. Aenean consectetur, diam congue viverra lobortis, velit felis molestie nulla, at iaculis mi quam ut enim. Fusce in mattis ante, a ultricies lacus. Nunc vulputate consequat tellus ut convallis. Nullam vulputate pharetra dignissim. Praesent nec posuere nisl. Sed sollicitudin et nunc nec bibendum.</p>
      </div>
      <div tabindex="0" role="tabpanel" aria-labelledby="branding" id="branding-tab" hidden>
        <p>Mauris semper ac <a href="#">libero ut blandit</a>. Vestibulum nec magna a tortor sodales sagittis sit amet nec lectus. Duis egestas ullamcorper nunc, vel sodales elit vestibulum non. Morbi interdum viverra elit non pharetra. Cras diam ligula, maximus in venenatis eu, varius ac urna. Fusce suscipit gravida diam, nec molestie mi facilisis eget.</p>
        <p>Ut placerat malesuada libero fringilla elementum. Etiam finibus sollicitudin nisl, quis faucibus mauris pellentesque at. Morbi condimentum quis arcu nec rhoncus. Aliquam ultricies justo sed nulla efficitur, ac pulvinar neque commodo. Aenean ac commodo mauris, eget feugiat enim.</p>
      </div>
    </div>
    <!-- End .macaw-tabs -->
  </main>
  <!-- End Main -->

  <!-- Begin Footer -->
  <footer>
    <span><a href="https://htmlcssfreebies.com/macaw-aurora-tabs/" target="_blank">Macaw Aurora Tabs</a> by HTMLCSSFreebies</span>
    <span>Powered by <a href="https://htmlcssfreebies.com/macaw-tabs/" target="_blank">Macaw Tabs</a>
  </footer>
  <!-- End Footer -->

</div>
<!-- End .site-wrapper -->
              
            
!

CSS

              
                /**
 * Macaw Tabs | Tabs jQuery Plugin
 *
 * @author    https://htmlcssfreebies.com/macaw-tabs/
 * @copyright Copyright (c) 2021  HTMLCSSFreebies.com
 * @license   MIT License, https://opensource.org/licenses/MIT
 * @version   v1.0.0
 */
/*
--------
* Macaw Tabs Plugin
* Theme: Macaw Aurora Tabs
--------
*/
.macaw-tabs.macaw-aurora-tabs {
  /*
   --------
   * Color Palette
   --------
   */
  --tab-color-white: #fff;
  --tab-color-black: #000;
  --tab-color-cadet: #292a47;
  --tab-color-fighter: #1e1e33;
  --tab-color-space: #383961;
  --tab-color-gray: #d7d9d7;
  --tab-color-english: #948238;
  /*
   --------
   * CSS Vars
   --------
   */
  --tab-bg-color: var(--tab-color-cadet);
  --tab-text-color: var(--tab-color-gray);
  --tab-border-color: var(--tab-color-space);
  --tab-active-bg-color: var(--tab-color-white);
  --tab-active-text-color: var(--tab-color-black);
  --tab-active-border-color: var(--tab-color-english);
  --tab-focus-bg-color: var(--tab-color-fighter);
  --tab-focus-text-color: var(--tab-color-white);
  --tab-focus-text-secondary-color: var(--tab-color-english);
  --tab-focus-border-color: var(--tab-color-fighter);
  /*
   --------
   * Style
   --------
   */
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 750px;
}
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] {
  position: relative;
  z-index: 3;
  display: flex;
  width: 20%;
  flex-direction: column;
}
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > * {
  border: none;
  border-bottom: 1px solid var(--tab-border-color);
}
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > *:last-child {
  border-bottom: none;
}
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"] {
  position: relative;
  margin: 0;
  overflow: visible;
  word-wrap: break-word;
  font-family: var(--global-heading-font-family);
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.625;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--tab-bg-color);
  color: var(--tab-text-color);
  padding: 1.25rem;
}
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"] .icon {
  font-size: 1.5rem;
  line-height: 1;
}
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"] .label {
  display: none;
}
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"] > * {
  padding: 0;
}
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"]:hover,
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"]:focus {
  outline: 0;
  background-color: var(--tab-focus-bg-color);
  color: var(--tab-focus-text-color);
}
.macaw-tabs.macaw-aurora-tabs
  > [role="tablist"]
  > [role="tab"][aria-selected="true"] {
  background-color: var(--tab-active-bg-color);
  color: var(--tab-active-text-color);
  border-left: 5px solid var(--tab-active-border-color);
}
.macaw-tabs.macaw-aurora-tabs
  > [role="tablist"]
  > [role="tab"][aria-selected="true"]
  .icon {
  color: var(--tab-focus-text-secondary-color);
}
.macaw-tabs.macaw-aurora-tabs
  > [role="tablist"]
  > [role="tab"][aria-selected="true"]:hover,
.macaw-tabs.macaw-aurora-tabs
  > [role="tablist"]
  > [role="tab"][aria-selected="true"]:focus {
  outline: 0;
  background-color: var(--tab-active-bg-color);
  color: var(--tab-focus-text-secondary-color);
}
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"]:hover,
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"]:focus,
.macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"]:active {
  outline: 0;
}
.macaw-tabs.macaw-aurora-tabs > [role="tabpanel"] {
  overflow: hidden;
  position: relative;
  z-index: 2;
  font-family: var(--global-body-font-family);
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.625;
  width: 80%;
  padding: 1.25rem 0.9375rem;
  background-color: var(--tab-active-bg-color);
  color: var(--tab-active-text-color);
  border-left: 6px solid var(--tab-active-bg-color);
}
.macaw-tabs.macaw-aurora-tabs > [role="tabpanel"] a,
.macaw-tabs.macaw-aurora-tabs > [role="tabpanel"] a:visited {
  cursor: pointer;
  color: inherit;
  -webkit-text-decoration-style: dotted;
  text-decoration-style: dotted;
  text-underline-offset: 0.1875rem;
}
.macaw-tabs.macaw-aurora-tabs > [role="tabpanel"] a:hover {
  text-decoration: none;
}
.macaw-tabs.macaw-aurora-tabs > [role="tabpanel"] > * {
  margin-top: 24px;
  margin-bottom: 24px;
  opacity: 0;
}
.macaw-tabs.macaw-aurora-tabs > [role="tabpanel"] > *:first-child {
  margin-top: 0;
}
.macaw-tabs.macaw-aurora-tabs > [role="tabpanel"] > *:last-child {
  margin-bottom: 0;
}
.macaw-tabs.macaw-aurora-tabs > [role="tabpanel"].active > * {
  opacity: 1;
  animation: zoomIn;
  animation-duration: 1.5s;
}
.macaw-tabs.macaw-aurora-tabs > [role="tabpanel"]:focus {
  outline: 0;
  border-left: 6px solid var(--tab-focus-border-color);
}

/*
--------
* Media Queries
--------
*/

@media only screen and (min-width: 768px) {
  .macaw-tabs.macaw-aurora-tabs > [role="tablist"] {
    width: 20%;
  }
  .macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"] {
    font-size: 1.125rem;
    line-height: 1.8333333333;
    justify-content: flex-start;
    padding: 0.9375rem 1.25rem;
  }
  .macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"] .icon {
    font-size: 1.25rem;
    line-height: 1.8333333333;
  }
  .macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"] .label {
    display: block;
  }
  .macaw-tabs.macaw-aurora-tabs > [role="tablist"] > [role="tab"] > * {
    padding-right: 0.375rem;
  }
  .macaw-tabs.macaw-aurora-tabs
    > [role="tablist"]
    > [role="tab"]
    > *:last-child {
    padding-right: 0;
  }
  .macaw-tabs.macaw-aurora-tabs > [role="tabpanel"] {
    font-size: 1.125rem;
    line-height: 1.8333333333;
    width: 80%;
    padding: 1.25rem 1.25rem;
  }
}

@media only screen and (min-width: 1280px) {
  .macaw-tabs.macaw-aurora-tabs {
    max-width: 850px;
  }
}

              
            
!

JS

              
                $(document).ready(function () {
  $(".macaw-tabs").macawTabs({
    autoVerticalOrientation: false
  });
});

              
            
!
999px

Console