/**
 * phpMyFAQ 2.8 default layout - right to left
 *
 * This Source Code Form is subject to the terms of the Mozilla Public License,
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
 * obtain one at http://mozilla.org/MPL/2.0/.
 *
 * @category  phpMyFAQ
 * @package   Layout
 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
 * @copyright 2010-2013 phpMyFAQ Team
 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
 * @link      http://www.phpmyfaq.de
 * @since     2010-01-17
 */

//
// Twitter Bootstrap
// -----------------
@import "../../../../../vendor/jnaqsh/bootstrap/less/bootstrap.less";
@import "../../../../../vendor/jnaqsh/bootstrap/less/responsive.less";

//
// Global values for phpMyFAQ
// --------------------------

// Links
@linkColor:             #F89406;
@linkColorHover:        darken(@linkColor, 10%);

// Grays
@black:                 #000;
@grayDarker:            #222;
@grayDark:              #333;
@gray:                  #555;
@grayLight:             #999;
@grayLighter:           #eee;
@white:                 #fff;

// Accent colors
@blue:                  #049cdb;
@blueDark:              #0064cd;
@green:                 #46a546;
@red:                   #9d261d;
@yellow:                #ffc40d;
@orange:                #f89406;
@pink:                  #c3325f;
@purple:                #7a43b6;

// phpMyFAQ special colors
@pmfGrayLight:          #f2f2f2;
@pmfOrange:             #ef7507;

// Typography
@baseFontSize:          14px;
@baseFontFamily:        "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
@baseLineHeight:        18px;
@textColor:             @grayDark;

// Component colors
@zindexDropdown:          1000;
@zindexPopover:           1010;
@zindexTooltip:           1020;
@zindexFixedNavbar:       1030;
@zindexModalBackdrop:     1040;
@zindexModal:             1050;

// Input placeholder text color
@placeholderText:         @grayLight;

// Hr border color
@hrBorder:                @grayLighter;

// Navbar
@navbarHeight:                    40px;
@navbarBackground:                #686f7a;
@navbarBackgroundHighlight:       #686f7a;
@navbarLinkBackgroundHover:       transparent;

@navbarText:                      @grayLighter;
@navbarLinkColor:                 @white;
@navbarLinkColorActive:           @white;
@navbarLinkColorHover:            @grayLighter;

// Form states and alerts
@warningText:             #c09853;
@warningBackground:       #fcf8e3;
@warningBorder:           darken(spin(@warningBackground, -10), 3%);

@errorText:               #b94a48;
@errorBackground:         #f2dede;
@errorBorder:             darken(spin(@errorBackground, -10), 3%);

@successText:             #468847;
@successBackground:       #dff0d8;
@successBorder:           darken(spin(@successBackground, -10), 5%);

@infoText:                #3a87ad;
@infoBackground:          #d9edf7;
@infoBorder:              darken(spin(@infoBackground, -10), 7%);

// Forms and Buttons
.btn-primary {
  .buttonBackground(#FBB450, #F89406);
}

//
// The Grid
// --------

// Default 940px grid
@gridColumns:             12;
@gridColumnWidth:         60px;
@gridGutterWidth:         20px;
@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));

// Fluid grid
@fluidGridColumnWidth:    6.382978723%;
@fluidGridGutterWidth:    2.127659574%;

//
// Bundled Icons from Bootstrap
//

@iconSpritePath:          "../../../img/glyphicons-halflings.png";
@iconWhiteSpritePath:     "../../../img/glyphicons-halflings-white.png";

//
// phpMyFAQ styles
// ---------------
body {
  background: #f6f6f6;
}

.navbar-inner {
  #gradient > .vertical(#AFB3BA, #6C737E);
  .divider-vertical {
    border-left-color: #6C737E;
    border-right-color: #AFB3BA;
  }
}

#content {

  //
  // Base definitions
  //
  background: #fffff9;
  padding-top: 60px;
  .well, .breadcrumb {
    #gradient > .vertical(#FAFAFA, #E9E9E9);
  }

  //
  // Header
  //
  header {
    div {
      position: relative;
      img.ucp {
        .border-radius(4px);
        border: 2px solid @grayDarker;
        margin-right: 5px;
        position: absolute;
        right: 0;
        top: 0;
      }
    }
  }
  //
  // Categories
  //
  .categories {
    padding: 8px 0;
    font-size: 15px;
    .users-online {
      padding: 10px;
      text-align: center;
    }
  }

  //
  // Search box
  //
  #searchBox {
    .well();
    form {
      margin-bottom: 5px;
      a {
        font-size: 11px;
      }
    }
  }

  //
  // Navigation
  //
  .nav {
    margin-bottom: 0;
  }

  //
  // FAQ pages
  //
  .answer {
    margin-bottom: 20px;
  }
  .related-faqs {
    margin-top: 20px;
  }
  .breadcrumb-related-categories {
    li {
      list-style-type: disc;
    }
    > li {
      display: inline-block;
      *display: inline;
      *zoom: 1;
    }
  }
  .highlight {
    text-decoration: dotted; border: 1px dashed @linkColor; background-color: @grayLighter; padding: 1px;
  }
  .sticky-faqs {
    margin-bottom: 20px;
  }
  .tab-content {
    padding: 5px;
    // Voting
    .star-rating {
      padding: 2px;
      font-size: 30px;
      line-height: 50px;
      text-align: center;
      unicode-bidi: bidi-override;
      direction: rtl;
      > span {
        display: inline-block;
        position: relative;
        cursor: pointer;
      }
      > span:hover:before,
      > span:hover ~ span:before {
        content: "\2605";
        position: absolute;
        cursor: pointer;
      }
    }
  }
  .faq-information {
    background-color: @white;
    border-left: 1px solid @grayLighter;
    border-bottom: 1px solid @grayLighter;
    border-right: 1px solid @grayLighter;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-bottom: 10px;
  }
  .comment {
    margin: 5px;
    padding: 5px;
    border: 1px @grayLight solid;
    .border-radius(5px);
    img {
      padding-left: 5px;
    }
  }

  .phpmyfaq-search-results li {
    padding-bottom: 5px;
  }

  //
  // Sitemap
  //
  .navbar-sitemap {

  }

  #copyright {
    text-align: center;
  }
  .pointer {
    cursor: pointer;
  }

  //
  // Setup
  //
  .hello-phpmyfaq {
    #gradient > .vertical(#FBB450, #F89406);
    color: @white;

    h1 {
      color: @white;
      font-size: 44px;
      margin-bottom: 16px;
    }
  }

  //
  // Maintenance mode
  //
  .maintenance {
    height: 300px;
    h1 {
      text-align: center;
      line-height: 300px;
    }
  }

}

//
// Footer
//
footer {
  background: #28343b;
  color: @pmfGrayLight;
  padding-top: 30px;

  ul.footer-menu {
    list-style: none outside none;
    li {
      float: left;
      list-style: none outside none;
      margin-left: 22px;
    }
  }

  .copyright {
    color: @pmfGrayLight;
  }
}