

@import "twitter/bootstrap/bootstrap";
@import "custom_bootstrap/variables";
// this padding needs to be done before the responsive stuff is imported
body {
  // modifying this for our promotional banner. can be replaced after if
  // needed.
  // padding-top: @navbar-height + 15px;
  padding-top: @navbar-height;
}

//@import "twitter/bootstrap/responsive";

// Set the correct sprite paths
@iconSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings");
@iconWhiteSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings-white");

// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
@fontAwesomeEotPath: asset-url("fontawesome-webfont.eot");
@fontAwesomeEotPath_iefix: asset-url("fontawesome-webfont.eot#iefix");
@fontAwesomeWoffPath: asset-url("fontawesome-webfont.woff");
@fontAwesomeTtfPath: asset-url("fontawesome-webfont.ttf");
@fontAwesomeSvgPath: asset-url("fontawesome-webfont.svg#fontawesomeregular");

// Font Awesome
//@import "fontawesome/font-awesome";

// Glyphicons
//@import "twitter/bootstrap/sprites.less";


.list-inline > li.first {
  padding-left: 0px;
}

h2 {
  font-size: 150%;
}

/*
#subtitle {
  color: lighten(@brown, 30%);
  margin-top: 0px;
  padding-top: 0px;
  padding-left: 1em;
  font-style: italic;
  font-weight: normal;
}
*/

h3 {
  font-size: 120%;
}

.main {
  padding-right: 1em;
}

.sidebar {
  margin-left: -1px;
  border-left: 1px solid darken(@beige, 10%);
  padding-left: 1em;
}

// this is used for eg. crops and members index pages
.six-across:nth-child(6n+1) {
  margin-left: 0px
}

.three-across:nth-child(3n+1) {
  margin-left: 0px;
  clear: both;
}

// let's condense the hero unit a little
.jumbotron {
  padding-top: 30px;
  padding-bottom: 30px;
}

// info under the main heading on homepage
.jumbotron .info {
  padding-top: 15px;
}

// signup widget on homepage
.jumbotron .signup {
  background-color: lighten(@green, 40%);
  border: 1px solid lighten(@green, 20%);
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  line-height: 200%;
}

// stats shown on homepage. eg. "999 members..."
p.stats {
  font-weight: bold;
}

.homepage-members {
  height: 100px;
}

.homepage-members:nth-child(odd) {
  margin-left: 0px;
}

#placesmap, #cropmap {
  height: 500px;
}

#membermap {
  height: 250px;
}

.member-location {
  font-size: small;
  font-style: italic;
}

.member-location a {
  color: @brown;
}

.crop-thumbnail {
  position:relative;
  padding:0;
  img {
    width:100%;
  }
  .text {
    display:none;
    color:#000;
    position:absolute;
    bottom:0;
    background:rgba(0, 0, 0, 0.8);
    width:100%;
    margin:0;
  }
  p {
    padding:5px;
    margin:0;
    color:#fff;
  }
  &:hover {
    .text {
      display:block;
    }
  }
}

.member-thumbnail {
  img {
    height: 85px;
    width: 85px;
    max-width: 85px
  }
}

.thumbnail {
  margin-bottom: 1.5em;
  
  .scientific-name small, .crop-name a {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1em;
    padding-bottom: 2px;
  }

  .crop-name a {
    padding-top: 2px;
  }

  .scientific-name small {
    margin-bottom: -2px;
  }
}

li.crop-hierarchy {
  list-style-type: disc;
}

.navbar-brand {
  margin: 0px;
  padding: 0px;
}

.navbar-bottom {
  margin: 40px 0px 0px 0px !important;
}

// navbar centering
footer .navbar .nav {
  float: none;
  display: inline-block;
  *display: inline;
  /* ie7 fix */
  *zoom: 1;
  /* hasLayout ie7 trigger */
  vertical-align: top;
  > li {
    float: none;
    display: inline-block;
    *display: inline;
    /* ie7 fix */
    *zoom: 1;
    /* hasLayout ie7 trigger */
    vertical-align: top;
  }
}

.navbar-bottom.navbar {
  text-align: center;
  border-radius: 0;
}

.crop-image, .member-image {
  width: 100%;
  height: 100%;
}

// Autosuggest

.ui-autocomplete {
  z-index: @zindex-tooltip;
}

// Crowdfunding campaign, Sep-Oct 2014

.crowdfunding-banner {
  text-align: center;
  font-weight: bold;
  background-color: lighten(@green, 30%);
  margin-top: 0px;
  margin-bottom: 5px;
  padding: 15px;
}

.crowdfunding-banner a {
  color: @brown;
  text-decoration: underline;
}

// Overrides applying only to mobile view. This must be at the end of the overrides file.

@media only screen and (max-width: 767px) {
  .sidebar {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
  }

  #map {
    height: 300px;
  }

  .navbar .nav > li {
    display: block;
  }
}
