HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/bekkers/bekkersengineering.nl/resources/assets/sass/kms/blocks/_sidebar.sass
/* ==========================================================================
   Sidebar KMS
   ========================================================================== */

#sidebar
  +position(fixed, 0 null 0 0)
  height: 100vh
  padding-bottom: 50px
  width: 230px
  background-color: $darkerBlue

  .logo-placeholder
    height: 85px
    width: 100%
    background-image: url("#{$baseImagePath}/logo_background.svg")
    background-size: cover

    a
      +flex(space-between, center)
      width: 100%
      height: 100%
      padding: 0 20px 0 20px
      text-decoration: none

      img
        width: 40px
        height: 40px

      p
        color: white
        font-size: 0.75rem
        line-height: 1.2

  /* Account block
   ========================================================================== */

  .account-block
    +flex(space-between, center)
    text-decoration: none
    border: 1px solid rgba(255,255,255, 0.2)
    border-left: none
    border-right: none
    padding: 10px
    height: 82px

    figure
      position: relative
      +flex(center, center)
      width: 60px
      height: 60px
      margin: 0
      background-color: rgba($blue, 0.3)
      border-radius: 100%

      &:empty
        &:after
          content: ''
          background:
            image: url("#{$baseImagePath}/icons/user.svg")
            position: center
            size: contain
            repeat: no-repeat
          width: 40px
          height: 40px
          opacity: 0.4

      span
        position: absolute
        left: 0
        top: 0
        display: block
        width: 100%
        height: 100%
        border-radius: 100%
        background:
          position: center
          size: cover
          repeat: no-repeat

    .text
      width: calc(100% - 80px)

      h3
        color: white
        font-size: 0.85rem
        margin: 0



  /* Navigation
   ========================================================================== */

  .navigation
    overflow: auto
    position: fixed
    //top: calc( 140px + 85px) // Height account block + logo
    height: calc(100vh - 85px - 82px - 50px)
    width: 230px

    ul
      display: block
      margin: 0
      padding: 0
      list-style: none

      li
        position: relative
        display: block
        width: 100%
        font-size: 0.7rem
        border-bottom: solid 1px rgba(255,255,255, 0.2)
        background-color: transparent
        transition: background-color 0.4s

        .drop-down
          position: absolute
          top: 22px
          right: 20px
          display: block
          border-style: solid
          border-width: 4px 5px 0 5px
          border-color: white transparent transparent transparent
          transform: rotate(0deg)
          opacity: 0.5

        a, span
          +flex(flex-start, center)
          height: 100%
          width: 100%
          padding: 14px 25px
          color: white
          text-decoration: none
          cursor: pointer

        &:hover
          >span, >a
            background-color: rgba($darkBlue, 0.4)

        &.active
          >.drop-down
            transform: rotate(180deg)
          >span, >a
            background-color: $blue

          >ul
            display: block

          &.has-sub-items
            >span, >a
              background-color: rgba($darkBlue, 0.9)

        // TODO Test code below
        >ul
          display: none
          position: relative
          float: none
          box-shadow: inset 0px 10px 10px -10px rgba(0, 0, 0, .7)
          background-color: darken($darkerBlue, 4%)
          border: none
          transition: all 1s
          overflow: hidden
          li
            a, span
              padding-left: 40px


  /* Log out button
   ========================================================================== */

  .log-out
    position: absolute
    bottom: 0
    width: 100%
    height: 50px
    +flex(flex-start, center)
    padding: 0 25px
    background-color: rgba($darkBlue, 0.4)
    border: none
    border-top: solid 1px rgba(255,255,255, 0.2)
    color: white
    text-decoration: none
    font-size: 0.7rem
    transition: background-color 0.4s

    &:hover
      background-color: rgba($darkBlue, 0.6)