/*
 * Copyright (c) 2018 Eclipse Foundation, Inc.
 * 
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 * 
 * Contributors:
 *   Christopher Guindon <chris.guindon@eclipse-foundation.org>
 * 
 * SPDX-License-Identifier: EPL-2.0
*/

// Drupal block styles

.solstice-block{
  margin-bottom:20px;
  &.block-solstice-collapse{
    h2.block-title{
      padding-right:30px;
    }
  }
  h2.block-title.solstice-block-title {
    background:@solstice-sidebar-h2-background;
  }
   h2.block-title{
    text-transform: uppercase;
    font-size:16px;
    padding:10px;
    font-weight: 600;
    margin:0;
   }
}

.solstice-block-default{
  h2.block-title{
    background:@blue-light;
    color:#fff;
  }
}

.block{
  &.block-switch-user {
    .dropdown {
      a {
        width:220px;
        overflow:hidden;
      }
    }
  }
  .view-footer{
    border-bottom:1px solid @view-footer-border-bottom;
    .btn-more{
      background:@view-footer-background;
      float:right;
      padding:4px 8px;
      color:@view-footer-color;
      font-weight:400;
      &:hover{
        background:#d5d6d9;
        color:#000;
      }
    }
  }
}

.block-solstice-collapse{
  position:relative;
}

.solstice-menu-nojs-collapsed + ul,
.block-solstice-nojs-collapsed .block-content{
  display:none;
}

.block-solstice-collapse-angle{
  position:absolute;
  top:12px;
  right:10px;
  color:#fff;
  font-size:16px;
}

// Pretty grey block
.pretty-block {
  .block-title{
    margin-bottom:2px;
  }
  .block-content {
    padding: 10px;
    background-color: @eclipse-highlight-grey;
  }
}

// Split blocks
.region-content.solstice-region-element-multiple {
  .block{
    .make-md-column(12);
  }
}
  
.solstice-block-grey-bg {
  background:@eclipse-highlight-grey;
  border: 1px solid darken(@eclipse-highlight-grey, 25%);
  padding:30px 60px;
  h3 {
    margin-top:0;
  }
}

.block-help{
  p:last-child{
    margin-bottom:0;
  }
}