arrfab / centos / centos.org

Forked from centos/centos.org 3 years ago
Clone

Blame content/assets/css/bootstrap/_type.scss

e8ec7a
//
e8ec7a
// Typography
e8ec7a
// --------------------------------------------------
e8ec7a
e8ec7a
e8ec7a
// Body text
e8ec7a
// -------------------------
e8ec7a
e8ec7a
p {
e8ec7a
  margin: 0 0 ($line-height-computed / 2);
e8ec7a
}
e8ec7a
.lead {
e8ec7a
  margin-bottom: $line-height-computed;
e8ec7a
  font-size: ($font-size-base * 1.15);
e8ec7a
  font-weight: 200;
e8ec7a
  line-height: 1.4;
e8ec7a
e8ec7a
  @media (min-width: 768px) {
e8ec7a
    font-size: ($font-size-base * 1.5);
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
e8ec7a
// Emphasis & misc
e8ec7a
// -------------------------
e8ec7a
e8ec7a
// Ex: 14px base font * 85% = about 12px
e8ec7a
small   { font-size: 85%; }
e8ec7a
e8ec7a
// Undo browser default styling
e8ec7a
cite    { font-style: normal; }
e8ec7a
e8ec7a
// Contextual emphasis
e8ec7a
.text-muted          { color: $text-muted; }
e8ec7a
.text-primary        { color: $brand-primary; }
e8ec7a
.text-warning        { color: $state-warning-text; }
e8ec7a
.text-danger         { color: $state-danger-text; }
e8ec7a
.text-success        { color: $state-success-text; }
e8ec7a
.text-info           { color: $state-info-text; }
e8ec7a
e8ec7a
// Alignment
e8ec7a
.text-left           { text-align: left; }
e8ec7a
.text-right          { text-align: right; }
e8ec7a
.text-center         { text-align: center; }
e8ec7a
e8ec7a
e8ec7a
// Headings
e8ec7a
// -------------------------
e8ec7a
e8ec7a
h1, h2, h3, h4, h5, h6,
e8ec7a
.h1, .h2, .h3, .h4, .h5, .h6 {
e8ec7a
  font-family: $headings-font-family;
e8ec7a
  font-weight: $headings-font-weight;
e8ec7a
  line-height: $headings-line-height;
e8ec7a
  small {
e8ec7a
    font-weight: normal;
e8ec7a
    line-height: 1;
e8ec7a
    color: $headings-small-color;
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
h1,
e8ec7a
h2,
e8ec7a
h3 {
e8ec7a
  margin-top: $line-height-computed;
e8ec7a
  margin-bottom: ($line-height-computed / 2);
e8ec7a
}
e8ec7a
h4,
e8ec7a
h5,
e8ec7a
h6 {
e8ec7a
  margin-top: ($line-height-computed / 2);
e8ec7a
  margin-bottom: ($line-height-computed / 2);
e8ec7a
}
e8ec7a
e8ec7a
h1, .h1 { font-size: floor($font-size-base * 2.60); } // ~36px
e8ec7a
h2, .h2 { font-size: floor($font-size-base * 2.15); } // ~30px
e8ec7a
h3, .h3 { font-size: ceil($font-size-base * 1.70); } // ~24px
e8ec7a
h4, .h4 { font-size: ceil($font-size-base * 1.25); } // ~18px
e8ec7a
h5, .h5 { font-size:  $font-size-base; }
e8ec7a
h6, .h6 { font-size: ceil($font-size-base * 0.85); } // ~12px
e8ec7a
e8ec7a
h1 small, .h1 small { font-size: ceil($font-size-base * 1.70); } // ~24px
e8ec7a
h2 small, .h2 small { font-size: ceil($font-size-base * 1.25); } // ~18px
e8ec7a
h3 small, .h3 small,
e8ec7a
h4 small, .h4 small { font-size: $font-size-base; }
e8ec7a
e8ec7a
e8ec7a
// Page header
e8ec7a
// -------------------------
e8ec7a
e8ec7a
.page-header {
e8ec7a
  padding-bottom: (($line-height-computed / 2) - 1);
e8ec7a
  margin: ($line-height-computed * 2) 0 $line-height-computed;
e8ec7a
  border-bottom: 1px solid $page-header-border-color;
e8ec7a
}
e8ec7a
e8ec7a
e8ec7a
e8ec7a
// Lists
e8ec7a
// --------------------------------------------------
e8ec7a
e8ec7a
// Unordered and Ordered lists
e8ec7a
ul,
e8ec7a
ol {
e8ec7a
  margin-top: 0;
e8ec7a
  margin-bottom: ($line-height-computed / 2);
e8ec7a
  ul,
e8ec7a
  ol{
e8ec7a
    margin-bottom: 0;
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
// List options
e8ec7a
e8ec7a
// Unstyled keeps list items block level, just removes default browser padding and list-style
e8ec7a
.list-unstyled {
e8ec7a
  padding-left: 0;
e8ec7a
  list-style: none;
e8ec7a
}
e8ec7a
// Inline turns list items into inline-block
e8ec7a
.list-inline {
e8ec7a
  @extend .list-unstyled;
e8ec7a
  > li {
e8ec7a
    display: inline-block;
e8ec7a
    padding-left: 5px;
e8ec7a
    padding-right: 5px;
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
// Description Lists
e8ec7a
dl {
e8ec7a
  margin-bottom: $line-height-computed;
e8ec7a
}
e8ec7a
dt,
e8ec7a
dd {
e8ec7a
  line-height: $line-height-base;
e8ec7a
}
e8ec7a
dt {
e8ec7a
  font-weight: bold;
e8ec7a
}
e8ec7a
dd {
e8ec7a
  margin-left: 0; // Undo browser default
e8ec7a
}
e8ec7a
e8ec7a
// Horizontal description lists
e8ec7a
//
e8ec7a
// Defaults to being stacked without any of the below styles applied, until the
e8ec7a
// grid breakpoint is reached (default of ~768px).
e8ec7a
e8ec7a
@media (min-width: $grid-float-breakpoint) {
e8ec7a
  .dl-horizontal {
e8ec7a
    dt {
e8ec7a
      float: left;
e8ec7a
      width: ($component-offset-horizontal - 20);
e8ec7a
      clear: left;
e8ec7a
      text-align: right;
e8ec7a
      @include text-overflow();
e8ec7a
    }
e8ec7a
    dd {
e8ec7a
      margin-left: $component-offset-horizontal;
e8ec7a
      @include clearfix(); // Clear the floated `dt` if an empty `dd` is present
e8ec7a
    }
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
// MISC
e8ec7a
// ----
e8ec7a
e8ec7a
// Abbreviations and acronyms
e8ec7a
abbr[title],
e8ec7a
// Added data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
e8ec7a
abbr[data-original-title] {
e8ec7a
  cursor: help;
e8ec7a
  border-bottom: 1px dotted $abbr-border-color;
e8ec7a
}
e8ec7a
abbr.initialism {
e8ec7a
  font-size: 90%;
e8ec7a
  text-transform: uppercase;
e8ec7a
}
e8ec7a
e8ec7a
// Blockquotes
e8ec7a
blockquote {
e8ec7a
  padding: ($line-height-computed / 2) $line-height-computed;
e8ec7a
  margin: 0 0 $line-height-computed;
e8ec7a
  border-left: 5px solid $blockquote-border-color;
e8ec7a
  p {
e8ec7a
    font-size: ($font-size-base * 1.25);
e8ec7a
    font-weight: 300;
e8ec7a
    line-height: 1.25;
e8ec7a
  }
e8ec7a
  p:last-child {
e8ec7a
    margin-bottom: 0;
e8ec7a
  }
e8ec7a
  small {
e8ec7a
    display: block;
e8ec7a
    line-height: $line-height-base;
e8ec7a
    color: $blockquote-small-color;
e8ec7a
    &:before {
e8ec7a
      content: '\2014 \00A0';// EM DASH, NBSP
e8ec7a
    }
e8ec7a
  }
e8ec7a
e8ec7a
  // Float right with text-align: right
e8ec7a
  &.pull-right {
e8ec7a
    padding-right: 15px;
e8ec7a
    padding-left: 0;
e8ec7a
    border-right: 5px solid $blockquote-border-color;
e8ec7a
    border-left: 0;
e8ec7a
    p,
e8ec7a
    small {
e8ec7a
      text-align: right;
e8ec7a
    }
e8ec7a
    small {
e8ec7a
      &:before {
e8ec7a
        content: '';
e8ec7a
      }
e8ec7a
      &:after {
e8ec7a
        content: '\00A0 \2014';// NBSP, EM DASH
e8ec7a
      }
e8ec7a
    }
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
// Quotes
e8ec7a
q:before,
e8ec7a
q:after,
e8ec7a
blockquote:before,
e8ec7a
blockquote:after {
e8ec7a
  content: "";
e8ec7a
}
e8ec7a
e8ec7a
// Addresses
e8ec7a
address {
e8ec7a
  display: block;
e8ec7a
  margin-bottom: $line-height-computed;
e8ec7a
  font-style: normal;
e8ec7a
  line-height: $line-height-base;
e8ec7a
}