// vim: tabstop=2 shiftwidth=2 expandtab

@import 'params';

#entries {
  .blog_entry {
    padding: 5px 0;
    margin: 20px 0;
    display: block;

    .blog_entry_title {
      display: block;
      font-size: 1.1em;
      text-align: left;
    }
    .blog_entry_meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      column-gap: 20px;

      font-style: italic;
      font-size: 0.9em;
      color: $fg_color_light;
    }
    .blog_entry_date {
      display: block;
      align-self: flex-start;
    }
    .blog_entry_tags {
      list-style: none;
      padding-left: 0;
      margin: 0;
      li {
        display: inline;
      }
      li ~ li::before {
        content: ", ";
      }
      &::before {
        content: "Tags:"
      }
    }
  }
}

#post_head {
  margin: 20px 0;

  h1 {
    margin: 5px 0;
  }

  #post_date {
    text-align: right;
    font-style: italic;
  }

  #post_tags {
    display: flex;
    justify-content: flex-end;

    list-style: none;
    padding-left: 0;
    margin: 5px 0;
    &::before {
      content: "Tags: ";
      font-style: italic;
      padding-right: 1em;
    }
    li {
      font-style: italic;
    }
    li ~ li::before {
      content: ", ";
    }
  }
}

.blog {
  .highlight>pre {
    padding: 10px;
    border-radius: 10px;
  }

  img {
    display: block;
    margin: 10px auto;
    max-width: 80%;
    max-height: 60vh;
    border-radius: 10px;
  }

  blockquote {
    font-style: italic;
    border-left: 3px solid #8b8bbd;
    padding-left: 15px;
    margin-left: 25px;
  }

  :not(pre) > code {
    background-color: $icode_bg_color;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 85%;
    color: $icode_fg_color;
  }
}
