websandesign
8/2/2017 - 10:48 PM

CSS - Title Underline

CSS - Title Underline

.title-line {
  position: relative;
  margin-top: 0;
  margin-bottom: 70px;
  text-align: center;
  text-transform: uppercase;
  &::after {
    content: '';
    position: absolute;
    display: inline-block;
    width: 80px;
    height: 3px;
    background-color: $brand-info;
    bottom: -15px;
    left: 50%;
    margin-left: -40px;
  }
  &.left {
    text-align: left;
    &::after {
      content: '';
      left: 0;
      margin-left: 0;
    }
  }
  &.white {
    color: #FFF;
    &::after {
      background-color: #FFF;
    }
  }
}