/*!
 * 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
*/

// marketplace.eclipse.org Drupal styles

@import "../drupal.less";
@import "template.less";
@import "_variables.less";

#block-marketplace-blocks-marketplace-blocks-mpc-count{
  .block-title{
    display:none;
  }
  .block-content{
    text-align: center;
    h2{
      margin-top:0px;
      margin-bottom:30px;
    }
  }
}
.listing-description{
  h2.listing-title{
    font-size:15px;
    .ellipsis;
    span {
      display:table;
    }
  }
}

.listing-column:first-child{
  border-right:1px solid #ccc;
}

.listing-column.odd{
  .drag_installbutton {
    &.drag_installbutton_v2{
      .tooltip {
         left:-330px;
      }
    }
  }
}

#block-marketplace-blocks-marketplace-blocks-spotlight{
  padding-bottom:35px;
  h2.block-title{
    background:@brand-secondary;
    color:#fff;
    text-transform: uppercase;
    font-size:16px;
    padding:10px;
    font-weight: 600;
    margin:0;
  }
}

.carousel-inner{
  height:210px;
}

.carousel-control {
  color:#fff;
  top:0;
  width:37px;
  height:37px;
  background:#1b1b1b;
  text-shadow:none;
  opacity:1;
  text-align:center;
  &.right,
  &.left{
    background-image:none !important;
    top:-38px;
  }
  &:hover{
    color: @brand-warning;
  }
  &.right{
    i{
      margin-left:4px;
    }
  }
  &.left{
    left:auto;
    right:39px;
  }
  i{
    margin-top:9px;
  }
}

.carousel-indicators {
  bottom:-30px;

  li {
    border-radius:0;
    width:10px;
    height:10px;
    background:#ccc;
    border:1px solid #ccc;
  }
  .active {
    width:12px;
    height:12px;
    background:#3276b1;
    border-color:#3276b1;
  }
}

// Search
.front .search-form{
  .highlighted-title {
    display:block;
  }
  .panel-warning{
    margin-bottom:0;
  }
}

.search-form {
  .highlighted-title{
    margin-top:0;
  }
  .form-autocomplete,
  .form-inline .input-group {
    width:100%;
    display:table;
  }
  .form-autocomplete .input-group-addon{
    width: 20px;
  }
  .intro-text{
    color:@brand-secondary;
    margin-bottom:15px;
  }
  .dropdown{
    display: table;
  }
}

.marketplace-apachesolr-search {
  h2.block-title{
    display:none;
  }
}

.block-facetapi{
  .block-content{
    padding:10px;
  }
  .facetapi-facetapi-links{
    padding-left:10px;
  }
}
.search-result.odd{
  background:#f9f9f9;
}

//views
.views-row-odd{
  background:#f9f9f9;
}

.views-row {
  border-top:1px solid @gray-lighter;
}

// Fields
.node{
  .field-name-body,
  .field-name-field-consultingdesc,
  .field-name-field-trainingdesc{
    color:@gray;
    line-height:1.5em;
     margin-bottom:15px;
  }
  .field-name-field-lts-company-url,
  .field-name-shared-flag-outofdate{
    margin-bottom:15px;
  }

  .field-name-taxonomy-vocabulary-1{
    margin-top:25px;
  }

  .group-additional-details .field{
    margin-bottom:3px;
  }
  .field{
    color:@gray;
    .field-label{
      font-size:14px;
    }
  }
}

.node-form{
  .help-popover{
    color: #fff;
    font-size: 30px;
    position: absolute;
    right: 22px;
    top: 18px;
    :hover{
      cursor:pointer;
    }
  }
  .field-name-field-resource-listing-release{
    &.field-widget-field-collection-embed{
      .field-multiple-table{
        border:1px solid #ccc;
      }
    }
  }
}

.marketplace-spotlight {
  .marketplace-badges-container{
    display:none;
  }
}

.field-name-field-screenshot{
  .colorbox{
    .thumbnail;
    &:hover{
      background:@gray-lighter;
    }
  }
}

.chart{
  padding:0 0 45px;
  .img-responsive;
}

.horizontal-tabs fieldset.horizontal-tabs-pane{
  padding:10px 15px 0 10px;
  margin-bottom:0;
}

#admin-menu .dropdown .admin-menu-toolbar-category > a,
#admin-menu {
  .dropdown{
    .admin-mpc-stats{
      font-size:1.4em;
      a{
        display:inline;
      }
    }
  }
}