// (C) Copyright 2020 Hewlett-Packard Enterprise Company, L.P.

.hp-server-context {
  position: relative;
  
  a {
    cursor: pointer;
  }
  
  > * {
    display: table-cell;
    vertical-align: top;
  }
  
  ol {
    margin: 0px;
  }
  
  .hp-server {
    display: table-cell;
    @include box-sizing(border-box);
    padding: 20px;
    border-right: 1px solid $graphics-border;
    border-top-right-radius: 0;
    
    > * {
      vertical-align: top;
    }
  }
  
  .hp-card {
    border-top-right-radius: 7px;
    border-bottom-right-radius: 0px;
  }
  
  .hp-server-path {
    margin-bottom: -2px;
    &:last-of-type {
      margin-bottom: 0px;
    }
    
    .hp-card {
      border-left: none;
    }
  }
  
  .hp-server-storages {
    position: absolute;
    top: 70px;
    left: 20px;
  }
  .hp-server-storage {
    @include device-border();
    margin-bottom: 5px;
    border-width: 1px;
    .hp-device {
      border-radius: 3px;
    }
    .hp-device-size {
      color: $secondary-color;
    }
  }
  
  &.hp-small {
    .hp-server {
      padding: 10px 20px;
    }
    .hp-path-stack {
      display: none;
    }
    .hp-network-path .hp-nic .hp-card {
      padding: 0px 5px;
      > label {
        display: none;
      }
      > ol {
        margin-top: 0px;
      }
    }
    .hp-port a, .hp-up-port a {
      display: none;
    }
    .hp-server-storages {
      top: 40px;
      .hp-device-name {
        display: none;
      }
    }
  }
}
