/*
  Copyright 2017 Red Hat Inc.

  Licensed under the Apache License, Version 2.0 (the "License"); you may
  not use this file except in compliance with the License. You may obtain
  a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  License for the specific language governing permissions and limitations
  under the License.
 */

.panel.roles-panel {
  position: relative;
}

.role-color-mixin(@colour) {
  border-top-color: @colour;
  &.active {
    border-color: @colour;
  }
}

.card-pf.role-card {
  .card-pf-body {
    margin: 0;
    .card-pf-utilization-details {
      border-bottom: 0;
      padding: 0;
    }
  }
  &.card-pf-accented {
    &.control{ .role-color-mixin(#f0ab00); }
    &.compute{ .role-color-mixin(#007a87); }
    &.block-storage{ .role-color-mixin(#3b0083); }
    &.object-storage{ .role-color-mixin(#0088ce); }
    &.ceph-storage{ .role-color-mixin(#b35c00); }
  }

  .node-picker-cell {
    display: table-cell;
    vertical-align: middle;
    width: 1px;
    padding: 0 12px 0 0;
  }

  .card-pf-utilization-card-details-description {
    display: table-cell;
    float: none;
    vertical-align: middle;
  }
}
