@charset "utf-8";

@import "../initial";
@import "variables";

html {
  font-size: 100%;
}

body {
  font-family: $sub-font;
  font-size: inherit;
  margin-top: 40px;
}

a:link,
a:visited {
  color: darken($theme-color-main, 10%);
}

a:hover,
a:focus {
  color: darken($theme-color-main, 20%);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.admin-edit {
  clear: both;
}

// override bootsrap settings
th,
td {
  padding: 8px .5rem;
}

.borderless > tbody > tr > td,
.borderless > tbody > tr > th,
.borderless > tfoot > tr > td,
.borderless > tfoot > tr > th,
.borderless > thead > tr > td,
.borderless > thead > tr > th {
  border: none !important;
}

a.btn-primary {
  color: $theme-white;
  border-color: $theme-color-main;
  background-color: $theme-color-main;
  font-size: 0.8125rem;

  &:hover {
    background-color: darken($theme-color-main, 10%);
    border-color: darken($theme-color-main, 10%);
  }
}

// Page heading
.page-module-title {
  @extend .unity-title;

  margin-bottom: 18px;
}

.view-count {
  font-size: 0.75rem;
}

.view_count {
  > i {
    font-size: 0.75rem;

    &:before {
      margin-right: 8px;
    }
  }
}

// Take care of exceeding content
body[data-module="page_content"],
body[data-module="announcement"] {
  .layout-content {
    overflow-x: auto;
  }
}