<ul class="c-site-nav">
    <li class="c-site-nav__item">
        <a class="c-site-nav__label" href="/archives/">Archives</a>
    </li>
    <li class="c-site-nav__item">
        <a class="c-site-nav__label" href="/authors/">Authors</a>
    </li>
    <li class="c-site-nav__item">
        <a class="c-site-nav__label" href="/about/">About <span class="u-hidden">24 ways</span></a>
    </li>
</ul>
<ul class="c-site-nav">
  <li class="c-site-nav__item{{ ' is-active' if section == 'archives' }}">
    <a class="c-site-nav__label" href="/archives/">Archives</a>
  </li>
  <li class="c-site-nav__item{{ ' is-active' if section == 'authors' }}">
    <a class="c-site-nav__label" href="/authors/">Authors</a>
  </li>
  <li class="c-site-nav__item{{ ' is-active' if section == 'about' }}">
    <a class="c-site-nav__label" href="/about/">About <span class="u-hidden">24 ways</span></a>
  </li>
</ul>
{
  "site": {
    "title": "24 ways",
    "handle": "24ways",
    "description": "24 ways is the advent calendar for web geeks. Each day throughout December we publish a daily dose of web design and development goodness to bring you all a little Christmas cheer.",
    "url": "https://24ways.org",
    "feed": "https://feeds.feedburner.com/24ways",
    "theme_color": "#f04"
  },
  "theme": {
    "year": [
      348,
      344,
      340,
      336,
      332,
      328,
      324,
      320,
      316,
      312,
      308,
      304,
      300,
      296,
      292,
      288
    ],
    "day": [
      360,
      353,
      346,
      339,
      332,
      325,
      318,
      311,
      304,
      297,
      290,
      283,
      276,
      269,
      262,
      255,
      248,
      241,
      234,
      227,
      220,
      213,
      206,
      199
    ]
  }
}
  • Content:
    .c-site-nav {
      display: flex;
      flex-direction: row;
    
      @media (--from-medium-screen) {
        flex-direction: column;
        margin-top: auto;
      }
    }
    
    .c-site-nav__item {
      flex: 1;
    }
    
    .c-site-nav__label {
      @apply --focusable;
      @apply --navigation-link;
      @apply --typeset-label;
      display: block;
      box-shadow: 1px 0 0 $navigation-color--offset;
      padding: map(spaces, medium);
      text-align: center;
    
      &:focus {
        position: relative; /* Fix border overlap on focus */
      }
    
      @media (--from-medium-screen) {
        box-shadow: 0 -1px 0 $navigation-color--offset;
        text-align: left;
      }
    }
    
  • URL: /components/raw/site-nav/site-nav.css
  • Filesystem Path: src/components/global/site-nav/site-nav.css
  • Size: 588 Bytes

There are no notes for this item.