Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <main id="swup" class="site-content-contain">

	<div id="content" class="transition-fade site-content">
		<div class="case-study wrap">
					<section class="transition-move-right case-study-box">
						<a class="text-container" href="
						<?php the_permalink(); ?>">
							<h2 class="case-study-title">
								<span>THE TITLE</span>
							</h2>

							<h3 class="case-study-subheading">
								<span>THE SUBTITLE</span>
							</h3>

						</a>

						<div  class="overlay" style="background: linear-gradient(to right, rgba(253, 252, 71, 0.7), rgba(36, 254, 65, 0.7));"></div>

						<img src="https://img.purch.com/h/1400/aHR0cDovL3d3dy5zcGFjZS5jb20vaW1hZ2VzL2kvMDAwLzA3MS85NTIvb3JpZ2luYWwvUGxlaWFkZXNTdGFyQ2x1c3Rlck00NS0zOExpZ2h0cy1UYWthRFNBQ3VtZWFkYS1uZXQuanBn">

					</section>
      
      <section class="transition-move-right case-study-box">
						<a class="text-container" href="
						<?php the_permalink(); ?>">
							<h2 class="case-study-title">
								<span>THE TITLE</span>
							</h2>

							<h3 class="case-study-subheading">
								<span>THE SUBTITLE</span>
							</h3>

						</a>

						<div  class="overlay" style="background: linear-gradient(to right, rgba(253, 252, 71, 0.7), rgba(36, 254, 65, 0.7));"></div>

						<img src="https://img.purch.com/h/1400/aHR0cDovL3d3dy5zcGFjZS5jb20vaW1hZ2VzL2kvMDAwLzA3MS85NTIvb3JpZ2luYWwvUGxlaWFkZXNTdGFyQ2x1c3Rlck00NS0zOExpZ2h0cy1UYWthRFNBQ3VtZWFkYS1uZXQuanBn">

					</section>
      
      <section class="transition-move-right case-study-box">
						<a class="text-container" href="
						<?php the_permalink(); ?>">
							<h2 class="case-study-title">
								<span>THE TITLE</span>
							</h2>

							<h3 class="case-study-subheading">
								<span>THE SUBTITLE</span>
							</h3>

						</a>

						<div  class="overlay" style="background: linear-gradient(to right, rgba(253, 252, 71, 0.7), rgba(36, 254, 65, 0.7));"></div>

						<img src="https://img.purch.com/h/1400/aHR0cDovL3d3dy5zcGFjZS5jb20vaW1hZ2VzL2kvMDAwLzA3MS85NTIvb3JpZ2luYWwvUGxlaWFkZXNTdGFyQ2x1c3Rlck00NS0zOExpZ2h0cy1UYWthRFNBQ3VtZWFkYS1uZXQuanBn">

					</section>
      
      <section class="transition-move-right case-study-box">
						<a class="text-container" href="
						<?php the_permalink(); ?>">
							<h2 class="case-study-title">
								<span>THE TITLE</span>
							</h2>

							<h3 class="case-study-subheading">
								<span>THE SUBTITLE</span>
							</h3>

						</a>

						<div  class="overlay" style="background: linear-gradient(to right, rgba(253, 252, 71, 0.7), rgba(36, 254, 65, 0.7));"></div>

						<img src="https://img.purch.com/h/1400/aHR0cDovL3d3dy5zcGFjZS5jb20vaW1hZ2VzL2kvMDAwLzA3MS85NTIvb3JpZ2luYWwvUGxlaWFkZXNTdGFyQ2x1c3Rlck00NS0zOExpZ2h0cy1UYWthRFNBQ3VtZWFkYS1uZXQuanBn">

					</section>
		</div>
		<!-- case -study-wrap-->
	</div>
	<!--site content-->
</main>
              
            
!

CSS

              
                $black: rgb(20, 20, 20);

@mixin title-shadow-1 {
  text-shadow:
    1px 1px 1px #ebebeb,
    -1px -1px 1px #ebebeb,
    0 0.5px 0 #e8e8e8,
    0 1px 0 #e5e5e5,
    0 1.5px 0 #dedede,
    0 2px 0 #d8d8d8,
    0 2.5px 0 #cccccc,
    0 3px 0 #c6c6c6,
    0 3.5px 0 #c0c0c0,
    0 4px 0 #b4b4b4,
    0 4.5px 0 #aeaeae,
    0 5px 0 #a8a8a8,
    0 5.5px 0 #9c9c9c,
    0 6px 0 #969696,
    0 6.5px 0 #909090,
    0 0 5px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.2), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.2), 0 10px 10px rgba(0, 0, 0, 0.2), 0 20px 20px rgba(0, 0, 0, 0.3);




}

@mixin title-shadow-2 {
  text-shadow:
    0 -1px 0px rgb(155, 165, 164),
    0 0px 1px rgb(166, 179, 177),
    0 1px 1px rgb(233, 241, 241),
    0 2px 1px rgb(199, 207, 206),
    0 3px 1px rgb(165, 173, 172),
    0 4px 0px rgb(110, 116, 115),
    0 5px 0px rgb(66, 70, 69),

    0 0 5px rgba(0,0,0,.05),
    0 1px 3px rgba(0,0,0,.2),
    0 3px 5px rgba(0,0,0,.2),
    0 5px 10px rgba(0,0,0,.2),
    0 10px 10px rgba(0,0,0,.2),
    0 20px 20px rgba(0,0,0,.3);

}

@mixin block-big($x-axis, $y-axis, $blur) {
  box-shadow:
                  0 0px 1px 1px rgb(20, 20, 20),
                  0 5px 2px 1px rgb(0, 0, 0),
                  inset $x-axis $y-axis $blur 0 rgb(30, 35, 30),
                  0 14px 20px 0 rgba(0, 0, 0, 0.5),
                  10px 24px 50px 0 rgba(0, 0, 0, 0.15),
                  20px 34px 30px rgba(0, 0, 0, 0.1),
                  2px 6px 47px 0px rgba(0, 0, 0, 0.1) !important;

                  box-decoration-break: clone;
                  -webkit-box-decoration-break: clone;


}

@mixin block-small($x-axis, $y-axis, $blur) {
  box-shadow:
                  0 0px 1px 1px rgb(20, 20, 20),
                  0 2px 1px 1px rgb(0, 0, 0),
                  inset $x-axis $y-axis $blur 0 rgb(30 , 35 , 30),
                  0 7px 10px 0 rgba(0, 0, 0, 0.3),
                  5px 10px 10px 0 rgba(0, 0, 0, 0.1),
                  10px 12px 8px rgba(0, 0, 0, 0.09),
                  1px 6px 13px 0px rgba(0, 0, 0, 0.09) !important;

                  box-decoration-break: clone;
                  -webkit-box-decoration-break: clone;


}

@mixin span-shadow-hero {
                  @include block-big(6px, 4px, 25px);

                  background-color: rgb(10,10,10);
                  color: #fff;
                  display: inline;
                  padding: 0.3em;
                  /* Needs prefixing */
                  box-decoration-break: clone;
                  -webkit-box-decoration-break: clone;

                  border-radius: 1px;
                  line-height: 1.9;
}


@mixin span-shadow-1 {
                  @include block-big(6px, 4px, 25px);

                  background-color: rgb(10,10,10);
                  color: #fff;
                  display: inline;
                  padding: 0.3em;
                  padding-right: 2em;
                  /* Needs prefixing */
                  box-decoration-break: clone;
                  -webkit-box-decoration-break: clone;

                  border-radius: 0px;
                  line-height: 1.9;
}

@mixin span-shadow-2 {
  @include block-small(3px, 1px, 10px);

                  padding: .2em;
                  padding-right: 3em;
                  /* Needs prefixing */
                  box-decoration-break: clone;
                  -webkit-box-decoration-break: clone;
                  line-height: 1.8;
}

.case-study.wrap{
    position: relative;
    max-width: 100vw;
    padding: 0;

    section.case-study-box {
        position: relative;
        //@include border-it(blue);
        height: 500px;
        overflow: hidden;

        a.text-container {
            display: block;
            position: relative;
            padding: 25px;
            padding-top: 70px;
            z-index: 5;
            text-decoration: none;

            h2 {
                color: white;
                font-family: sans-serif;
                @include title-shadow-2;



                span {
                    background:$black;
                    @include span-shadow-1;
                    font-size: 2em;
                    font-weight: 600;
                }
            }

            h3 {
                color: white;
                font-family: sans-serif;
                // @include title-shadow;
                span {
                    background:$black;
                    @include span-shadow-2;
                }
            }

        }
        img {
            min-width: 110%;
            height: auto;
            z-index: 0;
            position: absolute;
            top:-25px;
            left:-25px;
        }

        div.overlay {
            position: absolute;
            top:0;
            left:0;
            min-height: 100%;
            min-width: 100%;
            z-index: 1;
            box-shadow: rgba(0, 0, 0, 0.4) 1px 10px 20px inset;

        }
        }

}
              
            
!

JS

              
                
              
            
!
999px

Console