@import "../../bower_components/bootstrap/less/variables.less";

// Variables
@doc-yellow:        #ffea00;
@doc-warm-gray:     #f7f5ed;
// Colors from Bootstrap 5, for linking to v6
@doc-newBlue:       #0d6efd;
@doc-newRed:        #dc3545;

/* ONLY STYLES FOR DEMO PAGE! */

body {
    padding-top: 50px;
    padding-bottom: 30px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    // font-weight: 500;
}

#wrapper {
    width: 1420px;
    max-width: 100%;
    margin: 60px auto;
}
#content {
    max-width: 100%;
    padding: 0 20px;
}

section {
    padding-top: 50px;
    margin-top: -50px;
}

 /* Navbar */

.navbar {
    background-color: #000000;
    span.navbar-brand {
        letter-spacing: -0.04em;
        color: @doc-yellow;
        font-weight: bold;
        &:hover {
            color: @doc-yellow;
        }
        .glyphicon {
            font-weight: normal;
        }
    }

    .nav {
        width: calc(100% - 183px);
    }
    
    .nav li.active a, .nav li.active a:hover, .nav li a:hover {
        color: @doc-yellow;
    }

    .nav li a.new-version-link {
        font-weight: bold;
        
        &:hover {
            color: @doc-newBlue !important;
        }        
    }
}
.navbar-header {
    .navbar-toggle .icon-bar {
        background-color: @doc-yellow;
    }
    .navbar-toggle {
        border-color: #000;
        background-color: #000;
    }
    .navbar-toggle:hover, .navbar-toggle:focus {
        border-color: @doc-yellow;
        background-color: #000;
    }
}


 /* Jumbotron */

.jumbotron {
    background-color: @doc-yellow;
    color: #000;
    h1 {
        font-size: 80px;
        font-weight: bold;
        letter-spacing: -0.06em;
    }
    h3 {
        font-size: 30px;
        font-weight: bold;
        letter-spacing: -0.04em;
        margin-top: 0;
        margin-bottom: 30px;
        a {
            color: #000;
            text-decoration: none;
        }
    }
    .desc {
        margin-bottom: 30px;
        a {
            color: #000;
            text-decoration: underline;
        }
    }
    span.fork {
        width: 7px;
        overflow: hidden;
    }
}

 /* Buttons */

.btn {
    .fa {
        margin-right: 2px;
    }
}

.btn-default:hover, 
.btn-default:focus, 
.btn-default:active, 
.btn-default.active, 
.open .dropdown-toggle.btn-default {
    background-color: @doc-warm-gray;
}

.btn-primary {
    color: @doc-yellow;
    background-color: #000;
    border-color: #000;
}
.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active, 
.btn-primary.active, 
.open .dropdown-toggle.btn-primary {
    color: @doc-yellow;
    background-color: #222;
    border-color: #222;
}
.btn-primary:active, 
.btn-primary.active, 
.open .dropdown-toggle.btn-primary {
    background-image: none;
}

.btn-outline {
    color: #000;
    background-color: transparent;
    border-color: #000;
}
.btn-outline:hover, .btn-outline:focus, .btn-outline:active {
    color: @doc-yellow;
    background-color: #000;
    border-color: #000;
}


/* Features */

.feature {
    margin-bottom: 30px;

    &:last-child {
    margin-bottom: 0;
    }

    h4 .fa:before {
        vertical-align: -10%;
        font-size: 28px;
        display: inline-block;
        width: 1.0714285714285714em;
        text-align: center;
        margin-right: 5px;
    }
}

/* How to use */
#how-to-use {
    h3 {
        margin-top: 40px;
        line-height: 1.5;
    }

    p {
        margin-bottom: 20px;
    }

    ol,ul {
        margin-bottom: 20px;

        li {
            margin-bottom: 0.5em;
        }
    }
}


 /* Tables */

table.table-striped {
    > tbody > tr:nth-child(odd) {
        > td,
        > th {
            background-color: @doc-warm-gray;
        }
    }
}

table.table-bordered {
    tr:nth-child(odd) td {
        background-color: @doc-warm-gray;
    }
}

table.focus-on  {
    tbody tr.focused,
    tfoot tr.focused {
        th, td { 
            background-color: @doc-yellow; 
            color: #000; 
        }
    }
}


/* Dropdown */

// Hover/Focus state for checkbox-rows
.no-touch .dropdown-menu > .checkbox-row {
    &:hover,
    &:active {
        text-decoration: none;
        color: @dropdown-link-hover-color;
        background-color: @doc-warm-gray;
    }
}


 /* Media queries */

@media screen and (max-width:767px) {
    .page-header h1 {
        font-size: 32px;
    }
    .page-header small {
        font-size: 12px;
    }
    .jumbotron {
      padding-left: 10px;
      padding-right: 10px;
      padding-top: 15px;

      h1 {
        font-size: 50px;
      }

      h3 {
        font-size: 25px;
      }

      .desc {
        font-size:  16px;
      }

      #download-btn, #fork-btn {
        margin-bottom: 12px;
      }
    }
}

@media screen and (max-width: 320px) {
    .jumbotron {
      h3 {
            font-size: 23px;
      }

      .desc {
            font-size: 15px;
      }
    }

    #download-btn, #fork-btn {
        width: 100%;
    }
}

/* Code highlighting */

pre {
    margin-bottom: 20px;
}

pre, code {
  color: @doc-yellow;
  background-color: #000;
}

/* Call out */
.callout {
    margin: 20px 0;
    padding: 20px;
    border-left: 3px solid #eee;
}

.callout-warning {
    background-color: #f7f5ed;
    border-color: #ffea00;
}

.text-newRed {
    color: @doc-newRed;
}