/*
 * Penguin Evening Theme
 *
 * @author: Dorian Pula (dorian.pula@amber-penguin-software.ca)
 * @company: Amber Penguin Software
 * @note: A soothing grey and amber CSS theme.
 * @version: 0.5.0
 * @license: AGPL v3
 */
@import (less) "penguin-common-theme.less";

/*** Colours. ***/
@evening-body-background-colour: #292929;
@evening-element-background-colour: #777777;

@evening-header-title-colour: @amber-penguin-yellow;
@evening-header-background-colour: #454545;
@evening-subheader-title-colour: #CCCCCC;

@evening-link-highlight-colour: @amber-penguin-yellow;
@evening-link-highlight-colour-text: @evening-body-background-colour;
@evening-link-text-colour: @amber-penguin-yellow;

@evening-footer-text-colour: #CCCCCC;

/**
  Build out themes based on these ideas:
  - http://stackoverflow.com/questions/15366576/less-condition-based-on-css-class-to-set-a-less-variable
  - http://stackoverflow.com/questions/15275829/less-css-change-variable-value-for-theme-colors-depending-on-body-class/
  15279979#15279979
**/
@evening-theme-name: .evening;

/*** General containers ***/
body@{evening-theme-name} .sea-header {
  background-color: @evening-header-background-colour;
}

body@{evening-theme-name} .ice-floe,
body@{evening-theme-name} .ice-menu {
  background-color: @evening-element-background-colour;
}

body@{evening-theme-name} .navigation-bar {
  background-color: @evening-element-background-colour;
}

/*** General elements ***/
body@{evening-theme-name} {
  background-color: @evening-body-background-colour;
}

/*** Footer ***/
body@{evening-theme-name} footer {
  color: @evening-footer-text-colour;
}

/*** Article elements. ***/
body@{evening-theme-name} h1 {
  color: @evening-header-title-colour;
}

body@{evening-theme-name} h2 {
  color: @evening-subheader-title-colour;
}

/*** Navigation ***/
body@{evening-theme-name} a,
body@{evening-theme-name} .hoverable {
  color: @evening-link-text-colour;
  .small_bordered;
}

body@{evening-theme-name} a:hover,
body@{evening-theme-name} .hoverable:hover {
  background-color: @evening-link-highlight-colour;
  color: @evening-link-highlight-colour-text;
  .small_bordered;
}

// Hacks to resolve colour scheme issues in Bootstrap.
body@{evening-theme-name} .nav-pills > .active > a,
body@{evening-theme-name} .nav-pills > .active > a:hover,
body@{evening-theme-name} .nav-pills > .active > a:focus {
  background-color: @evening-link-highlight-colour;
  color: @evening-link-highlight-colour-text;
}

body@{evening-theme-name} .nav > li > a:hover,
body@{evening-theme-name} .nav > li > a:focus {
  text-decoration: none;
  background-color: @evening-link-highlight-colour;
  color: @evening-link-highlight-colour-text;
}
