@import "colors";

.refinery-blog-posts.index, .refinery-blog-posts.archive, .refinery-blog-categories {
  .blog_post{
    h1 {
      margin-top: .5em;
    }

    .read_more {
      background: transparent;
      border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    &:last-child {
      .read_more {
        border-bottom: none;
      }
    }
  }
}

.refinery-blog-posts, .refinery-blog-categories {
  .main-content {
    strong {
      display: block;
    }

    header {
      h1 {
        font-size: 1.6em !important;
        margin-left: 0 !important;
        text-transform: none !important;
      }

      .details {
        color: $black !important;
      }
    }

    #show_blog_post .flash_notice {
      display: none;
    }

    .caption {
      max-width: 100%;
    }

    .alignright, [data-align="alignright"] {
      display: inline;
      float: right;
      margin-left: 1.625em;
    }

    .aligncenter, [data-align="aligncenter"] {
      margin: 0 auto;
    }

    img {
      max-width: 100%;
    }

    #comments {
      .avatar {
        float: left;
        margin: 0 .4em;
      }

      .field {
        margin: .2em 0;
      }

      label {
        display: inline-block;
        width: 6em;
      }
    }
  }

  ul#blog_posts, #blog_archive_widget ul, ul#categories {
    font-size: .8em;
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      padding: .2em 0;
    }
  }
}

.refinery-blog-posts, .refinery-blog-categories {
  #side_body, #sidebar {
    display: inline-block !important;
    width: 100% !important;
  }
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .refinery-blog-posts, .refinery-blog-categories {
    #side_body, #sidebar {
      display: block !important;
      position: absolute;
      top: 6.5em;
      left: .5em;
      width: 16.75% !important;
    }
  }
}
