CoreFiles by mySites.guru
_nav.scss78 lines, 2,069 bytes, from Joomla_4.0.0-Stable-Full_Package.zip
Raw History Compare with 3.10.12
md5
ca3280278465c2ceae353b160a68c966
sha1
7a8890efec52c927c0dc74dfeafd25c8a73bb48b
sha256
9315faf20cdd15f657e291cc6cff7f745506ebc6fc8329ef256b039c4fb3b773
// Tabs

.nav.nav-tabs {
  padding: 0;
  margin: 0;
  background-color: $cassiopeia-tabs-header-bg;
  border: 1px solid $cassiopeia-border-color;
  border-bottom: 0;
  border-radius: $border-radius $border-radius 0 0;
  box-shadow: 0 1px $white inset, 0 2px 3px -3px hsla(0, 0%, 0%, .15), 0 -4px 0 hsla(0, 0%, 0%, .05) inset, $cassiopeia-box-shadow;

  .nav-item {
    margin-bottom: 0;
    margin-left: 0;

    &:first-of-type .nav-link {

      &.active {
        border-radius: $border-radius 0 0;
        box-shadow: -1px 0 1px -1px hsla(0, 0%, 0%, .06), inset -2px 0 1px -1px hsla(0, 0%, 0%, .08), inset 0 1px 0 hsla(0, 0%, 0%, .02);
      }

    }

    &:last-of-type .nav-link {
      box-shadow: -1px 0 0 hsla(0, 0%, 0%, .05), 1px 0 0 hsla(0, 0%, 0%, .05);

      &.active {
        box-shadow: inset 2px 0 1px -1px hsla(0, 0%, 0%, .08), inset -2px 0 1px -1px hsla(0, 0%, 0%, .08), inset 0 1px 0 hsla(0, 0%, 0%, .02);
      }

    }

  }

  .nav-link {
    position: relative;
    padding: .75em 1em;
    color: var(--cassiopeia-color-primary);
    border: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: -1px 0 0 hsla(0, 0%, 0%, .05);

    &.active {
      background-color: $cassiopeia-tabs-active-bg;
      background-image: linear-gradient(to bottom, hsla(0, 0%, 0%,0), hsla(0, 0%, 0%, .05) 100%);
      border-right: 0;
      border-left: 0;
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      box-shadow: inset 2px 0 1px -1px hsla(0, 0%, 0%, .08), inset -2px 0 1px -1px hsla(0, 0%, 0%, .08), inset 0 1px 0 hsla(0, 0%, 0%, .02);

      &::after {
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 5px;
        content: "";
        background-color: $cassiopeia-tabs-active-highlight;
        opacity: .8;
      }

    }

  }

}

.nav-tabs + .tab-content {
  padding: 15px;
  background: $white;
  border: 1px solid;
  border-color: $cassiopeia-border-color;
  border-radius: 0 0 $border-radius $border-radius;
  box-shadow: $cassiopeia-box-shadow;
}

The same content is in 27 releases, Joomla 4.0.0-beta6 to 4.1.0-alpha3. See them all, or every version of this file.