feh1ks
4/18/2016 - 3:28 PM

Banner

Banner

/* require

html,
body {
    .size(100%);
}

body {
    overflow-x: hidden;
}

*/

// Banner
header {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 100px 0;
    background: url('images/header-bg.jpg') center center scroll no-repeat;
    background-size: cover;
    text-align: center;
    color: white;

    .header-content {
        position: relative;
        padding: 100px 15px;
        width: 100%;

        &-inner {

            h1 {
                margin-bottom: 25px;
            }

            h2 {
                line-height: 50px;
                margin-bottom: 25px;
            }

        }
    }

    // Banner Responsive Styles
    @media @min-desktop {
        min-height: 100%;
        padding: 0;

        .header-content {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            padding: 0 50px;

            &-inner {
                max-width: 1000px;
                margin-left: auto;
                margin-right: auto;

                h1 {
                    margin-bottom: 25px;
                }

                h2 {
                    margin-bottom: 50px;
                }
            }
        }
    }
}
<!-- Banner -->
<header>
  <div class="header-content">
    <div class="header-content-inner">
      <h1>Heading</h1>
      <h2>SubHeading</h2>
      <a href="#services" class="page-scroll btn btn-xl">ButtonText</a>
    </div>
  </div>
</header>