---
---

//----------------------------------------
// Colors.
//----------------------------------------

$brand-blue:       #2b3990 !default;
$brand-gray-light: #999    !default;
$brand-gray:       #767676 !default;
$brand-gray-dark:  #333    !default;
$brand-green:      #6cc644 !default;
$brand-red:        #bd2c00 !default;
$brand-orange:     #c9510c !default;
$brand-purple:     #6e5494 !default;

//----------------------------------------
// Specialized code blocks.
//----------------------------------------

@mixin cdSetup($color) {
  color: $color;
  border-left: solid 5px $color;
  margin-bottom: 0px;
}

.error  { @include cdSetup($brand-red); }
.output { @include cdSetup($brand-gray-dark); }
.source { @include cdSetup($brand-purple); }

//----------------------------------------
// Specialized blockquote environments for learning objectives, callouts, etc.
//----------------------------------------

$codeblock-padding: 5px !default;

@mixin bkSetup($color, $glyph) {

  $gradientcolor1: scale-color($color, $lightness: 70%);
  $gradientcolor2: scale-color($color, $lightness: 80%);

  padding-left: $codeblock-padding;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
  border: 1px solid;
  border-color: $color;
  padding-bottom: $codeblock-padding;

  h2 {
    padding-top: $codeblock-padding;
    padding-bottom: $codeblock-padding;
    font-size: 20px;
    background: linear-gradient(to bottom, $gradientcolor1, $gradientcolor2);
    border-color: $color;
    color: darken($color, 20%);
    margin-top: 0px;
    margin-left: -$codeblock-padding; // to move back to the left margin of the enclosing blockquote
  }
  h2:before {
    font-family: 'Glyphicons Halflings';
    content: $glyph;
    float: left;
    padding-left: $codeblock-padding;
    padding-right: $codeblock-padding;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
  }

}

.callout{ @include bkSetup(#2B5564, "\e146"); }
.challenge{ @include bkSetup(#985916, "\270f"); }
.checklist{ @include bkSetup(#525252, "\e067"); }
.keypoints{ @include bkSetup(#682047, "\e101"); }
.objectives{ @include bkSetup(#667932, "\e085"); }
.prereq{ @include bkSetup(#BD6F7A, "\e124"); }
.solution{ @include bkSetup(#F5A9A9, "\e105"); }
.testimonial{ @include bkSetup(#C0A92A, "\e143"); }

//----------------------------------------
// Override Bootstrap settings.
//----------------------------------------

code {
  padding: 0 0;
  color: inherit;
  background-color: inherit;
}

//----------------------------------------
// Miscellaneous.
//----------------------------------------

.maintitle {
  text-align: center;
}

.footertext {
  text-align: center;
}

img.navbar-logo {
  height: 40px; // synchronize with height of navbar
  padding-top: 5px;
  padding-right: 10px;
}

div.branding {
  color: $brand-blue;
}

ul,
ol {
  padding-left: 1em;
}
