// SASS variable overrides must be declared before loading up Active Admin's styles.
//
// To view the variables that Active Admin provides, take a look at
// `app/assets/stylesheets/active_admin/mixins/_variables.css.scss` in the
// Active Admin source.
//
// For example, to change the sidebar width:
// $sidebar-width: 242px;

// Active Admin's got SASS!
@import "active_admin/mixins";
@import "active_admin/base";

// Overriding any non-variable SASS must be done after the fact.
// For example, to change the default status-tag color:
//
//   body.active_admin {
//      .status_tag { background: #6090DB; }
//   }
//
// Notice that Active Admin CSS rules are nested within a
// 'body.active_admin' selector to prevent conflicts with
// other pages in the app. It is best to wrap your changes in a 
// namespace so they are properly recognized. You have options
// if you e.g. want different styles for different namespaces:
//
// .active_admin       applies to any Active Admin namespace
// .admin_namespace    applies to the admin namespace (eg: /admin)
// .other_namespace    applies to a custom namespace named other (eg: /other)
// Active Admin CSS Styles

body.active_admin {
  .status {
    font-size: 12px;
    letter-spacing: normal
  }

  td.status {
    color: #323537;
    text-transform: capitalize;
    letter-spacing: normal
  }

  // Pagedown style

  .wmd-panel {
    padding: 0 10px 0 10px;
  }

  .wmd-button-bar {
    background-color: #F4F4F4;
    margin-top: 20px;
    padding-left: 20%;
  }

  .wmd-input {
    width: 39%;
    float:left;
  }

  .wmd-button-row {
    position: relative; 
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    margin-top: 10px;
    padding: 0px;  
    height: 20px;
  }

  .wmd-spacer {
    width: 1px; 
    height: 20px; 
    margin-left: 14px;
    position: absolute;
    background-color: Silver;
    display: inline-block; 
    list-style: none;
  }

  .wmd-button {
    width: 20px;
    height: 20px;
    padding-left: 2px;
    padding-right: 3px;
    position: absolute;
    display: inline-block;
    list-style: none;
    cursor: pointer;
  }

  .wmd-button > span {
    background-image: url(wmd-buttons.png);
    background-repeat: no-repeat;
    background-position: 0px 0px;
    width: 20px;
    height: 20px;
    display: inline-block;
  }

  .wmd-spacer1 {
    left: 50px;
  }

  .wmd-spacer2 {
    left: 175px;
  }

  .wmd-spacer3 {
    left: 300px;
  }

  .wmd-prompt-background {
    background-color: Black;
  }

  .wmd-prompt-dialog {
    border: 1px solid #999999;
    background-color: #F5F5F5;
  }

  .wmd-prompt-dialog > div {
    font-size: 0.8em;
    font-family: arial, helvetica, sans-serif;
  }

  .wmd-prompt-dialog > form > input[type="text"] {
    border: 1px solid #999999;
    color: black;
  }

  .wmd-prompt-dialog > form > input[type="button"] {
    border: 1px solid #888888;
    font-family: trebuchet MS, helvetica, sans-serif;
    font-size: 0.8em;
    font-weight: bold;
  }

  // Format Preview Section to Match Live View

  .wmd-preview {
    background-color: #c0e0ff;
    width: 35%;
    float:left;
    margin-left: 10px;
    padding: 0 5px 5px 5px;
    font: 100%/1.5 "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif;
  }

  .wmd-preview > h2 h3 h4 h5 h6 { font: 100%/1.5 "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif; line-height: 100%; }

  .wmd-preview > h1 {
    font-family: "Archivo Narrow", "News Cycle", "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif; line-height: 100%;
    font-size: 30px;
  }

  .wmd-preview > h2  {
    font-size: 18px;
  }

  .wmd-preview > h3  {
    margin-top: 40px;
    text-transform: uppercase;
    font-weight: bold;
  }

  .wmd-preview > p  {
    color: rgb(51, 51, 51);
    margin-bottom: 12px;
  }

  .wmd-preview > ol ul {
    margin: 0 12px;
    padding: 0 10px;
  }

  .wmd-preview > ol li, .wmd-preview > ul li {
    margin: 0 0 12px 30px;
    padding-left: 5px;
  }

  .wmd-preview > ol li {
    list-style-type: decimal;
  }

  .wmd-preview > ul li {
    list-style-type: disc;
  }

  .text label {
    display: block;
    width: 20%;
    float: left;
    font-size: 1.0em;
    font-weight: bold;
    color: #5E6469;
  }

  blockquote{
    font-style: normal;
  }

  .clear {
    clear: both;
  }

  table.dashboard > tbody > tr > td {
    display:block;
  }

  #header ul#tabs > li{
    display: inline !important;
  }

  .author_image {
    padding: 0 10px 0 20%;
  }
}
