CoreFiles by mySites.guru
_header.scss333 lines, 6,477 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
790675b9f306dedfb9beb28fa8f45ed7
sha1
df14881aa203e98b52d93b6dd926de6113d74892
sha256
0220da75c864767e42a6a8d5b3b13ec9b88a3e5a076c9b1a508ae609e2131845
// Header

.header {
  position: relative;
  background: $white;
  box-shadow: $atum-box-shadow;
  z-index: $zindex-header;
  border-top: 3px solid var(--atum-bg-dark);
  color: var(--atum-special-color);

  .header-title {
    width: 50%;

    .d-flex:last-child {
      max-width: calc(100% - #{$sidebar-width});

      @include media-breakpoint-down(md) {
        max-width: calc(100% - #{$sidebar-width-closed});
      }
    }

    .container-title {
      width: 100%;
    }

    @include media-breakpoint-down(xs) {
      width: 100%;
    }
  }

  .logo {
    display: inline-block;
    line-height: $header-height;
    width: $sidebar-width;
    transition: width .3s ease;

    &.small {
      width: $sidebar-width-closed;
      transition: width .3s ease;

      svg, img {

        &:not(.logo-small) {
          display: none;
        }

        &.logo-small {
          display: inline-block;
        }
      }
    }

    svg, img {
      margin-left: 0.8rem;
      max-height: 1.3rem;
      max-width: calc(18rem - 0.8rem);

      &.logo-small {
        display: none;
        max-width: 1.3rem;
      }
    }
    svg {
      height: 1.3rem;
    }
  }

  .page-title {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 1.2rem;
    line-height: $header-height;
    color: var(--atum-special-color);

    [class^='icon-'] {
      margin-right: 0.625rem;
      font-size: 1rem;
    }
  }

  .header-items {
    width: 50%;
  }

  .header-item {
    position: relative;
    max-width: 6.6rem;

    &:first-child {
      margin-left: auto;
    }
    .header-item-content {
      > *:first-child {
        flex-direction: column;
        height: 100%;
        padding: 0 0.6rem;
        color: var(--atum-special-color);
      }
      a, button {
        &:hover, &[aria-expanded="true"] {
          background-color: var(--atum-bg-dark);
          color: var(--atum-text-light);
          text-decoration: none;
          box-shadow: $atum-box-shadow;
        }
        &.disabled,
        &.disabled:hover,
        &.disabled[aria-expanded="true"] {
          background-color: transparent;
          color: var(--atum-special-color);
          box-shadow: none;
          opacity: 0.3;
          pointer-events: none;
        }
      }
      .dropdown-toggle {
        // Overwrite default button styling
        background-color: transparent;
        border: 0;

        &::after {
          display: none;
        }
      }
      .joomlaversion {
        min-width: 6.6rem;
      }
    }

    .tiny {
      text-align: center;
      line-height: 0.8rem;
      margin-top: 0.3rem;
      white-space: nowrap;
      max-width: 5rem;
      min-width: 4rem;
	  display: block;
	  text-overflow: ellipsis;
	  overflow: hidden;
    }
  }

  .fa, .fab {
    font-size: 1.2rem;
    vertical-align: middle;
    transition: all .2s ease-in-out;
  }

  .dropdown-menu {
    min-width: 17.5rem;
    padding: 0;
    z-index: 1041;
  }

  .badge {
    position: absolute;
    left: 50%;
    top: 0.4rem;
    margin-left: 0.8rem;
  }

  .fa-angle-down {
    position: absolute;
    left: 50%;
    top: 0.9rem;
    margin-left: -1.6rem;
  }

  .align-items-end {
    min-height: 2rem;
  }

  a[target="_blank"]::before {
    display: none;
  }

  .dropdown-menu {
    z-index: $zindex-popover;
    min-width: 18rem;
    background-color: var(--atum-bg-dark-70);

    &.icons-left .dropdown-item {
      a {
        padding-left: 0;
      }
    }

    .dropdown-header {
      color: $white;
      background-color: var(--atum-bg-dark);
      box-shadow: $atum-box-shadow;
      font-size: inherit;
      padding: 1rem 0.75rem;
      [dir=rtl] & {
        text-align: right;
      }
    }
  }

  .dropdown-item {
    color: $white;
    background-color: var(--atum-bg-dark-70);
    padding: 0;

    a {
      display: inline-block;
      width: 100%;
      color: var(--atum-text-light);
      padding-left: 0.75rem;
      line-height: 3;

      &:hover {
        text-decoration: none;
        background: var(--atum-bg-dark);
      }

      [dir=rtl] & {
        text-align: right;
        padding-right: .75rem;
        padding-left: 0;
	  }
    }

    .fa {
      padding: 1rem;
      width: 3rem;
    }
  }

  #header-more-items {
    .header-more-menu {
      position: absolute;
      top: 100%;
      left: -100000rem;
      right: 0;
      width: calc(13.2rem + 2px);
      margin-top: 0.1rem;
      background-color: var(--white-offset);
      border: 1px solid $gray-500;
      border-top: 0;
      box-shadow: $atum-box-shadow;
      justify-content: flex-end;
    }
    &.active .header-more-menu {
      left: auto;
    }
    .header-item {
      height: 3.7rem;
      width: 6.6rem;
    }
    .header-item-content {
      width: 100%;
      height: 100%;
    }
    .dropdown-toggle {
      width: 100%;
      height: 100%;
    }
    .header-more-btn {
      color: var(--white-offset);
      background-color: var(--atum-bg-dark);
      width: 3.8rem;
      height: 100%;
      border: 0;
      .fa {
        margin: auto;
      }
      &:hover {
        background-color: var(--atum-bg-dark-80);
      }
    }
  }

  @include media-breakpoint-down(xs) {
    position: static;
    top: 0;
    width: 100%;
    z-index: $zindex-header;

    .header-items{
      background:var(--atum-bg-dark);
      display:block;
      position:fixed;
      bottom:0;
      width: 100%;
      max-width: 18rem;
      z-index:$zindex-mobile-bottom;
      flex-direction: row-reverse;
      justify-content: flex-end;
      &::after {
        content:"";
        width: 1000%;
        height: 100%;
        background:var(--atum-bg-dark);
        position:absolute;
        z-index: -1;
      }
    }
    #header-more-items {
      .header-more-menu {
        top: auto;
        bottom: 100%;
        border: 1px solid $gray-500;
        border-bottom: 0;
      }
      &.active .header-more-menu {
        left: 0;
      }
      & .header-item .header-item-content > :first-child {
        color: var(--atum-special-color);

        &[aria-expanded=true] {
          color: var(--atum-text-light);
        }
      }
    }
    .header-items > .header-item {
      .header-item-content > :first-child {
        color: var(--atum-text-light);
        padding-bottom: 0.4rem;
      }
    }
    .header-item:first-child {
      margin-left: 0;
    }
    .fa-angle-down {
      transform: rotate(180deg);
    }
  }
}

No other release has this exact content. See every version of this file.