Skip to content
Snippets Groups Projects
_paragraphs.scss 14.6 KiB
Newer Older
bcweaver's avatar
bcweaver committed
@import "../helpers/mixins";
@import "../helpers/variables";
@import "../helpers/functions";
//
// Paragraphs
// --------------------------------------------------

//## Paragraph Column Styles.

.paragraph--type--columns-1 {
  width: $full - 10;
  margin: $center-margin;
  margin-top: 30px;
}

.paragraph--type--columns-2 {
  margin-top: 30px;
}

.paragraph--type--columns-3 {
  margin-top: 30px;
}

.paragraph--type--columns-4 {
  margin-top: 30px;
}

bcweaver's avatar
bcweaver committed
.paragraph--type--accordion .field, .paragraph--type--tabs .field {
  padding: 20px;
}

.para_2_col, .para_3_col, .para_4_col {
  h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 20px;
  }
}

bcweaver's avatar
bcweaver committed
.paragraph__column {
  width: $full;
  float: left;
    padding-left: 0;
    padding-right: 15px;

    @media (max-width: 768px) {
Brian Canini's avatar
Brian Canini committed
      padding: 0px;
    padding-right: 7.5px;
    padding-left: 7.5px;
Brian Canini's avatar
Brian Canini committed
      padding: 0px;
  .col-ml{
    padding: 16px 0;
Brian Canini's avatar
Brian Canini committed
    padding-left: 5px;
    padding-right: 10px;

    @media (max-width: 768px) {
Brian Canini's avatar
Brian Canini committed
      padding: 0px;
  .col-mr {
    padding: 16px 0;
Brian Canini's avatar
Brian Canini committed
    padding-left: 10px;
    padding-right: 5px;

    @media (max-width: 768px) {
Brian Canini's avatar
Brian Canini committed
      padding: 0px;
    padding-right: 0;
    padding-left: 15px;

    @media (max-width: 768px) {
Brian Canini's avatar
Brian Canini committed
      padding: 0px;
Brian Canini's avatar
Brian Canini committed

    @media (max-width: 768px) {
      padding: 0px;
    }
bcweaver's avatar
bcweaver committed

  .container {

    @media (max-width: 768px) {
        padding: 0;

        .call-out-container {
          margin: 15px 0;
        }
    }
  }

  .col-xs-12 {
    @media (max-width: 768px) {
      margin-bottom: 20px;
    }
  }
Brian Canini's avatar
Brian Canini committed

  .sec-title {
    margin-top: 20px;

    @media (max-width: 768px) {
      padding: 0 20px;
    }
  }
bcweaver's avatar
bcweaver committed
}


// --------------------------------------------------

//## Accordion.

.paragraph--type--accordion {

  .field {
    padding: 20px;

    p {
bcweaver's avatar
bcweaver committed
    }
  }

  .field--name-field-media-file {
    padding: 0;
    margin-bottom: 15px;
  }

bcweaver's avatar
bcweaver committed
  .panel-default {
    border: none;
  }

  .panel-heading {
    border: none;
    padding: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
bcweaver's avatar
bcweaver committed
  }

  .card-header {
    margin: 0 0 10px;

    .panel-title {
Brian Canini's avatar
Brian Canini committed
      color: $brand-red;
bcweaver's avatar
bcweaver committed
      border-color: transparent;
      border-style: none;
      border-width: 0;
      background-color: transparent;
      width: 100%;
      text-align: left;
Brian Canini's avatar
Brian Canini committed
      background: $brand-lgray;
      padding: 10px 15px;
      border-top-right-radius: 3px;
      border-top-left-radius: 3px;
bcweaver's avatar
bcweaver committed
    }

bcweaver's avatar
bcweaver committed
      float: right;
      margin-top: 5px;
      color: #787878;
    }
  }
}

.paragraph--type--accordion .panel div:nth-last-child(2) {
  margin-bottom: 0 !important;
}


// ---------------------------------------------------

bcweaver's avatar
bcweaver committed

.btn-par {
  font-weight: 600;
  text-transform: uppercase;
  white-space: initial;
bcweaver's avatar
bcweaver committed
}

.btn-fullw-wrapper {
  color: $brand-gray;
}

.btn-fullw {
  text-align: center;
  padding: 10px;
  border: solid $brand-gray 2px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  border-radius: 5px;

  &:hover {
    text-decoration: underline;
    background-color: #efefef;
  }
}

.btn-fullw-red {
  text-align: center;
  padding: 10px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  border-radius: 5px;

  &:hover {
    text-decoration: underline;
  }
}

a.btn-wrapper:focus {
  display: block;
}

bcweaver's avatar
bcweaver committed

// ---------------------------------------------------

//## Button Stack

.paragraph--type--button-stack {

  .btn {
    margin-bottom: 10px;
    display: table;
  }

  @media (max-width: 768px) {
    padding: 20px;
  }
// --------------------------------------------------

//## Call Out Boxes.

.call-out-container {

  .img-link-wrapper:hover + .field--type-link a {
    color: $brand-red;
    text-decoration: underline;
  }

  .field--item:hover > a {
    color: $brand-red;
    text-decoration: underline;
  }

  a {
    color: #444444;
    font-size: 20px;
    padding-top: 5px;
    font-weight: 500;

    &:hover {
      color: $brand-red;
      text-decoration: underline;
    }
  }

  .field--type-link {
    width: 100%;
    border-bottom: $brand-red solid 5px;
    margin-bottom: 15px;

    .field--item {
      padding: 15px;
      background: $brand-lgray;
    }

    @media (max-width: 768px) {
      margin-bottom: 0;
    }
  }
}

.dgray-bg,
.dscarlet-bg,
.dviolet-bg,
.dteal-bg,
.dpurple-bg,
.dgreen-bg,
.dorange-bg {

  .call-out-container {

    a {
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}


// --------------------------------------------------

//## Call Out Boxes - Advanced.
Brian Canini's avatar
Brian Canini committed
.landing-page .carousel.adv-callout-desktop {
  overflow: visible;
  max-height: none;
}

.carousel.adv-callout-desktop {
  display: block;

  @media (max-width: 768px) {
    display: none;
  }
}

.carousel.adv-callout-mobile {
  display: none;

  @media (max-width: 768px) {
    display: block;
Brian Canini's avatar
Brian Canini committed


    .col-xs-12.col-adv-call-mobile {
      padding: 0;
    }

Brian Canini's avatar
Brian Canini committed

}

.adv-call-mobile-bl,
.adv-call-mobile-bm,
.adv-call-mobile-br {
  background: $brand-lgray;
}

.paragraph__column .col-r.adv-call-mobile-br,
.paragraph__column .col-m.adv-call-mobile-bm,
.paragraph__column .col-l.adv-call-mobile-bl {
  margin: 16px 0;
  padding: 0;
}

.carousel.adv-callout-carousel {
  margin: 30px 0;
  overflow: visible;

  .row {
    display: flex;

    .col-l {
      flex: 1;
      background: $brand-lgray;
      margin: 0 12px;
      padding: 0 0 30px;
    }

    .col-m {
      flex: 1;
      background: $brand-lgray;
      margin: 0 12px;
      padding: 0 0 30px;
    }

    .col-r {
      flex: 1;
      background: $brand-lgray;
      margin: 0 12px;
      padding: 0 0 30px;
    }

    .transparent {
      background: transparent;
    }
  }

  .container {
    @media (max-width: 768px) {
      margin-bottom: 20px;
    }
  }
}

  padding-bottom: 9.5px;
Brian Canini's avatar
Brian Canini committed
  background: $brand-lgray;

  .field--name-field-av-cb-text {
    padding: 20px;

    p, h2, h3, h4, h5, h6, a {
      color: $gray;
    }
Brian Canini's avatar
Brian Canini committed

Brian Canini's avatar
Brian Canini committed
    a {
      color: $brand-red;

      &:hover {
        color: $brand-gray;
      }
    }

Brian Canini's avatar
Brian Canini committed
    @media (max-width: 768px) {
      padding: 20px 15px 0;
    }
    text-align: right;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 6px 0;
Brian Canini's avatar
Brian Canini committed
      background: $brand-red;
Brian Canini's avatar
Brian Canini committed
      font-weight: 600;
      text-transform: uppercase;

      @media (max-width: 768px) {
        width: 100%;
        display: block;
      }
    }

    @media (max-width: 768px) {
      text-align: center;
      position: relative;
      width: 100%;
Brian Canini's avatar
Brian Canini committed
      padding: 15px;
.control-l {
  position: absolute;
  left: 0;
  top: 40%;
  background: #3d3d3d;
  border: none;
  height: 90px;
  width: 50px;
  border-radius: 0;

  i {
    text-align: center;
    line-height: 75px;
    font-size: 2em;
  }
  @media (max-width: 768px) {
    position: relative;
    bottom: 0;
    width: 100px;
  }
}

.control-l.btn:hover,
.control-l.btn:active,
.control-l.btn:focus,
.control-l.btn:visited {
  background: #999;
}

.control-r {
  position: absolute;
  right: 0;
  top: 40%;
  background: #3d3d3d;
  border: none;
  height: 90px;
  width: 50px;
  border-radius: 0;

  i {
    text-align: center;
    line-height: 75px;
    font-size: 2em;
  }

  @media (max-width: 768px) {
    position: relative;
    bottom: 0;
    width: 100px;
  }
}

.control-r.btn:hover,
.control-r.btn:active,
.control-r.btn:focus,
.control-r.btn:visited {
  background: #999;
}

.landing-page .carousel .carousel-inner.adv-call-mob-inner {
  display: block;
  background: $brand-lgray;
}
Brian Canini's avatar
Brian Canini committed


// ---------------------------------------------------

//## Call Out Boxes - Horizontal

.cb-h {
Brian Canini's avatar
Brian Canini committed
  background: $brand-lgray;
Brian Canini's avatar
Brian Canini committed
  float: left;
  display: flex;
  width: 100%;

  .cb-h-l {
    padding: 0;
    flex:1;
  }

  .cb-h-r {
    flex:1;

    .field--name-field-cb-h-text {
      padding: 25px 40px 25px 10px;

Brian Canini's avatar
Brian Canini committed
      a {
        color: $brand-red;

        &:hover {
          color: $brand-gray;
        }
      }

Brian Canini's avatar
Brian Canini committed
      @media (max-width: 768px) {
        padding: 0 0 20px;
      }
    }

    .field--name-field-cb-h-button {
      text-align: right;
      position: absolute;
      right: 0;
      bottom: 0;
      padding: 6px 0;

      a {
        color: $white;
Brian Canini's avatar
Brian Canini committed
        background: $brand-red;
Brian Canini's avatar
Brian Canini committed
        padding: 10px;
Brian Canini's avatar
Brian Canini committed
        font-weight: 600;
        text-transform: uppercase;
Brian Canini's avatar
Brian Canini committed

        @media (max-width: 768px) {
          width: 100%;
          display: block;
        }
      }

      @media (max-width: 768px) {
        text-align: center;
        position: relative;
        width: 100%;
      }
    }
  }

  @media (max-width: 768px) {
    display: block;
  }
}

.hor-arrows {

  .control-l,
  .control-r {
    background: rgba(0,0,0,0.5);
  }

  @media (max-width: 768px) {
    text-align: center;
    margin-top: 10px;
  }
}

.landing-page .carousel.hor-callout-carousel {
  max-height: none;

  @media (max-width: 768px) {
    .carousel-inner {

      .item {
        flex-shrink: 1;
      }
    }
  }
}


// ---------------------------------------------------

//## Media

.file {

  .file-icon {
    span {
Brian Canini's avatar
Brian Canini committed
      color: $brand-red;
Brian Canini's avatar
Brian Canini committed
      color: $brand-red;
Brian Canini's avatar
Brian Canini committed
    color: $brand-red;
// ---------------------------------------------------

//## Pull Quote

.paragraph--type--pull-quote {
  padding: 20px;
}


bcweaver's avatar
bcweaver committed
// ---------------------------------------------------

//## Slide

.slide-txt-container {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  height: 100%;
  max-height: 550px;
bcweaver's avatar
bcweaver committed

Brian Canini's avatar
Brian Canini committed
  @media (max-width: 768px) {
    max-height: 100%;
  }

bcweaver's avatar
bcweaver committed
  .slide-txt {
Brian Canini's avatar
Brian Canini committed
    background-color: rgba(255, 255, 255, 0.9);
bcweaver's avatar
bcweaver committed
    padding: 20px;
    text-align: center;
    width: 50%;
    margin: auto;
    position: relative;
    top: 50%;
    transform: perspective(1px) translateY(-50%);

    @media (max-width: 768px) {
Brian Canini's avatar
Brian Canini committed
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
bcweaver's avatar
bcweaver committed
    }

      width: 100%;
bcweaver's avatar
bcweaver committed

bcweaver's avatar
bcweaver committed
        text-transform: uppercase;
bcweaver's avatar
bcweaver committed

        @media (max-width: 768px) {
bcweaver's avatar
bcweaver committed
        }
      }

bcweaver's avatar
bcweaver committed

          font-size: 14px;
          margin-top: 0;
bcweaver's avatar
bcweaver committed
        }
bcweaver's avatar
bcweaver committed

      .btn {
        white-space: normal;
      }

Brian Canini's avatar
Brian Canini committed
      .btn-links-20 {
bcweaver's avatar
bcweaver committed

          background: $brand-red;
          display: inline-block;
          color: $white;
          text-transform: uppercase;
          padding: 5px;

          .btn-primary {
            background-color: transparent;
            border-color: transparent;
            border: 0;
            border-radius: 0;
          }

          svg, i {
            padding-top: 1px;
          }

          &:hover {
            background: #8E0101;
          }

          @media (max-width: 768px) {
            display: block;
            width: 100%;
bcweaver's avatar
bcweaver committed
        }

        .btn-fullw-wrapper {
          background: transparent;
          color: $brand-gray;

          &:hover {
            background: transparent;
          }
        }
bcweaver's avatar
bcweaver committed
      }

Brian Canini's avatar
Brian Canini committed
      .btn-links-19 {
bcweaver's avatar
bcweaver committed

          background: $brand-red;
          display: inline-block;
          color: $white;
          text-transform: uppercase;
          padding: 5px;

          .btn-primary {
            background-color: transparent;
            border-color: transparent;
            border: 0;
            border-radius: 0;
          }

          svg, i {
            padding-top: 1px;
          }

          &:hover {
            background: #8E0101;
          }

          @media (max-width: 768px) {
            display: block;
            width: 100%;
bcweaver's avatar
bcweaver committed
        }

        .btn-fullw-wrapper {
          background: transparent;
          color: $brand-gray;

          &:hover {
            background: transparent;
          }
        }
bcweaver's avatar
bcweaver committed

Brian Canini's avatar
Brian Canini committed
      .btn-links-18 {
bcweaver's avatar
bcweaver committed

          background: $brand-red;
          display: inline-block;
          color: $white;
          text-transform: uppercase;
          padding: 5px;

          .btn-primary {
            background-color: transparent;
            border-color: transparent;
            border: 0;
            border-radius: 0;
          }

          svg, i {
            padding-top: 1px;
          }

          &:hover {
            background: #8E0101;
          }

          @media (max-width: 768px) {
            display: block;
            width: 100%;
bcweaver's avatar
bcweaver committed
        }

        .btn-fullw-wrapper {
          background: transparent;
          color: $brand-gray;

          &:hover {
            background: transparent;
          }
        }


// ---------------------------------------------------

//## Special

.paragraph--type--tagline {
  margin: 20px 0;
  float: left;
}


// --------------------------------------------------

//## Tabs.

.paragraph--type--tabs {
  .field {
    padding: 20px;
  }

  .field--name-field-media-file {
    padding: 0;
  }

  .field--name-field-media-image {
    padding: 20px 0;
  }
// --------------------------------------------------

//## Text.

.paragraph--type--text {

  .field--type-text-long {

    iframe {

      @media (max-width: 768px) {
        padding: 0 20px;
      }
    }
  }
}


// --------------------------------------------------

//## Twitter.

.para_1_col .field--name-field-media-twitter {
  margin: $center-margin;
  width: 60%;

  .col-xs-12 {
    padding: 0;
  }
}


// --------------------------------------------------

//## Video.

.paragraph--type--video iframe {
  width: 100% !important;
}