//  Copyright (c) 2012-2013, Jungwacht Blauring Schweiz. This file is part of
//  hitobito and licensed under the Affero General Public License version 3
//  or later. See the COPYING file at the top-level directory or at
//  https://github.com/hitobito/hitobito.

/* Typo */
// -------------------------
h1, h2 {
  font-family: $headingFontFamily;
  margin-top: 0;
}

h1, .h1 {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.25em;
}

h2, .h2 {
  font-size: 1.4em;
  font-weight: 300;
}

h3, .h3 {
  font-size: 1.25em;
}

h4, .h4 {
  font-size: 1.2em;
}

h5, .h5 {
  font-size: 1.1em;
  margin: 10px 0 0 0;
}

.content-header {
  margin-bottom: 0px;
  @include responsive(mediaTablet){
  margin-bottom: $vSpace;
  }
  h1 { margin-bottom: 0px; }
}

p:last-child { margin-bottom: 0; }

.muted { color: $gray; }

td p, address {
  margin: 0;
}

.alert ul {
  margin: 0 0 0 25px;
}

.btn-toolbar .dropdown, .btn-toolbar .link {
  font-size: 14px;
  vertical-align: middle;
}

.btn-group + .link {
  margin-left: $vSpace;
}

h1 .btn, h2 .btn, h3 .btn, h4 .btn {
  font-weight: normal;
  font-family: $baseFontFamily;
}

// Definition list
dl {
  margin-top: 0;
}
.dl-horizontal {
  padding: $vSpace*0.5 0;
  border-top: 1px solid $borderColor;
  margin: 0;

  dd {
    margin-bottom: $vSpace*0.5;
    &:last-child { margin-bottom: 0; }
  }

  @include responsive(mediaTablet) {
    dt { width: 180px; }
    dd { margin-left: 200px; margin-bottom: 0; }
  }

  &:last-child {
    border-bottom: 1px solid $borderColor;
    margin-bottom: $vSpace;
  }

}
.dl-borderless, .dl-borderless:last-child {
  border: 0;
}

.well .dl-horizontal {
  &:first-child {
    border-top: none;
    padding-top: 0;
  }

  &:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

.dl-vertical {
  dd {
    margin-bottom: $vSpace / 4;
  }
}

// Table
table.table {
  border-bottom: 1px solid $borderColor;
}

div.table {
  margin-top: 30px;
}

.table, .table-basic {
  td, th {
    padding: 4px;
    padding-left: 0;
    border-color: $borderColor; // new
    &:last-child { padding-right: 0; }
  }
}

.table-striped {
  td:first-child {
    padding-left: 8px;
  }
}

.table-hover tbody tr:hover > td,
.table-hover tbody tr:hover > th {
  background-color: $tableColorHover;
}

.table-grouped {
  thead:first-child th {
    padding-top: 0px;
  }

  th {
    padding-top: 30px;

    h2 {
      margin-bottom: 0;
    }
  }
}

td.center, th.center {
  text-align: center;
}

td.right, th.right {
  text-align: right;
  padding-right: 20px;
  &:last-child { padding-right: 0; }
}

select[class*="span"] {
  min-height: 30px;
  height: 30px;
  *margin-top: 4px;
  line-height: 30px;
}

legend {
  font-size: 1.2em;
  line-height: 180%;

  small {
    font-size: 85%;
    margin-left: 10px;
  }
}

.nowrap {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.anchor {
  color: inherit;
  text-decoration: none;
}

.animated-highlight {
  -webkit-animation: highlight 2.5s;
  animation: highlight 2.5s;
}
