plugins/arArchivesCanadaPlugin/css/less/homepage.less
/*
 * This file is part of the Access to Memory (AtoM) software.
 *
 * Access to Memory (AtoM) is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Access to Memory (AtoM) is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Access to Memory (AtoM).  If not, see <http://www.gnu.org/licenses/>.
 */

#homepage-hero {

  background: url(../../images/homepage-bg.jpg) no-repeat @black;
  .background-size(cover);
  height: 420px;
  padding-top: 40px;
  padding-bottom: 40px;
  text-shadow: 2px 0 2px rgba(25, 25, 25, .7);
  margin: 0 auto;

  h1,
  h2,
  p,
  li,
  a {
    color: @white;
    line-height: 120%;
  }

  h2 {
    font-size: 25px;
    font-style: oblique;
    margin-bottom: 5px;
  }

  p {
    font-size: 15px;
    margin-left: 0;
    margin-right: 0;
  }

  .title {
    display: block;
  }

}

#homepage-nav {

  font-family: @serifFontFamily;

  p {
    font-size: 25px;
  }

  ul {
    .nav();
  }

  li {

    margin: 10px 0;
    .clearfix();

    a {
      font-size: 20px;
    }

    img {
      margin-right: 10px;
      display: inline;
      vertical-align: middle;
    }

  }

}

#homepage {

  margin-top: 30px;

  * {
    .box-sizing(border-box);
  }

  h3 {
    color: @white;
    line-height: 110%;
    margin-bottom: 10px;
  }

  h3 span {
    font-style: oblique;
  }

  p,
  li {
    margin-bottom: 5px;
    margin-right: 10px;
  }

}

// Virtual exhibits

#virtual-exhibit {

  position: relative;

  div {
    background-image: url(http://scaa.usask.ca/gallery/northern/dommasch/images/600px/hans60_017.jpg);
    background-repeat: no-repeat;
    background-position: 0 80%;
    background-size: cover;
    width: 100%;
    display: block;
    height: 280px;
  }

  h3 {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    padding: 8px;
    background-color: #000;
    background-color: rgba(0, 0, 0, .4);
  }

  .small {
    display: block;
    font-size: 14px;
    line-height: 16px;
    color: lighten(@grayLight, 10%);
  }

  a h3 {
    min-height: 84px;
  }

  a h3,
  a div {
    .transition(all 0.2s ease-in-out);
  }

  a:hover h3 {
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .4);
  }

  a:hover div {
    background-position: left 90%;
  }

  a:hover div:after {
    content: "›"; // "»";
    position: absolute;
    font-size: 128px;
    bottom: 50px;
    right: 50px;
    padding: 18px 20px 40px 22px;
    .border-radius(60px);
    @white: rgba(255, 255, 255, .4);
    border: 12px solid @white;
    color: @white;
  }

}

// Popular this week

#popular-this-week {

  color: @white;
  background-color: rgba(0, 0, 0, .10);

  h3 {
    padding: 8px;
    margin: 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .4);
    background-color: rgba(0, 0, 0, .10);
  }

  ul {
    list-style-type: none;
    margin: 0;
    padding: 4px 0;
  }

  li {
    position: relative;
    padding: 0;
    margin: 0;
  }

  a {
    color: @white;
    display: block;
    padding: 3px 72px 3px 8px;
    .text-overflow();
    &:hover {
      background-color: rgba(0, 0, 0, .10);
    }
  }

  strong {
    position: absolute;
    right: 4px;
    color: @gray;
    padding-left: 4px;
    font-weight: normal;
    font-style: oblique;
  }

}

// Responsive deisgn

@media (max-width: 767px) {

  #homepage {
    margin-top: -20px;
    padding-top: 20px;
    border-top: 1px solid @white;
  }

  #homepage > div:first-child {
    margin-bottom: 30px;
  }

  #homepage-hero {

    background: none;
    padding-top: 20px;

  }

  #homepage-nav {

    ul {
      background-color: rgba(50, 50, 50, .3);
      .border-radius(4px);
    }

    li {
      margin: 0;
    }

    li:hover a {
      background-color: rgba(255, 255, 255, .4);
    }

    a {
      padding: 6px 8px;
      display: block;
    }

  }

  #intro {
    .hide();
  }

}

@media (min-width: 980px) and (max-width: 1199px) {

  #intro p {
    font-size: 13px;
  }

}

@media (max-width: 979px) {

  #intro {
    p {
      margin-top: 8px;
      font-size: 11px;
    }
    h2 {
      margin-top: 0;
      .title {
        font-size: 18px;
      }
    }
    margin-top: -40px;
    margin-right: -2px;
    padding: 20px;
    background-color: rgba(0, 0, 0, .25);
  }

}
