Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                <section>
	<h1>Pure CSS Angled Blockquotes</h1>
	<h3>Demo Sample
	</h3>
	<section>
		<h6>Smooth Version</h6>
		<blockquote class="blkquote-smooth" cite="https://codepen.io/killshot13/pen/MWJeOwE">
			<p>Developed using only CSS and HTML, these blockquotes examples offer a nice way to show off your site's accent color(s) without much extra work.</p>
			<p>By using the natural pivot points established in the <code>border</code> property and changing the width of the "negative space" if you will, I was able to create two nice angled versions.</p>
			<p>This is made possible by giving <code>border-bottom</code> and <code>border-top</code> the exact same color as <code>background-color</code>, creating a simulated angle that would otherwise be hard to achieve on such a narrow width.</p>
		</blockquote>
	</section>
	<section>
		<h6>Sharp Version</h6>
		<blockquote class="blkquote-sharp" cite="https://codepen.io/killshot13">
			<p>"While I cannot be the only one to have used this idea, I have not yet come across it either, so I am quite proud to take credit for this version at least."
			</p>
			<small style="small">
				--killshot13
			</small>
		</blockquote>
	</section>
</section>
<section class="container">
	<h4>LICENSE</h4>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700");
@import url("https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,400i");

html {
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: #111a20;
	color: #78b6d9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: Lato, sans-serif;
	color: #ecf8ff;
	font-weight: 700;
	font-style: normal;
	line-height: 1.2;
	margin: 1.66667rem 0 0.83333rem;
	text-rendering: optimizeLegibility;
	text-transform: uppercase;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
	margin-top: 0;
}

h1 {
	font-size: 2.22222em;
	text-align: center;
}

h2 {
	font-size: 1.88889em;
	text-align: center;
	text-transform: normal;
}

h3 {
	font-size: 1.55556em;
	text-align: center;
	text-transform: lowercase;
}

h4 {
	font-size: 1.33333em;
}

h5 {
	font-size: 1.11111em;
	text-transform: lowercase;
	text-align: center;
}

h6 {
	font-size: 0.88889em;
	letter-spacing: 0.0625em;
	text-transform: uppercase;
}

section {
	margin: 1.33333rem;
	padding: 0.66667rem;
}

.container {
	width: 80% vw;
	height: 30% vh;
	border-radius: 10px;
	text-align: center;
}

code,
pre {
	font-family: Ubuntu Mono, monospace;
	color: #1cedca;
	font-weight: 400;
	font-size: 0.99995rem;
	font-style: normal;
}

.blkquote-smooth {
	border-left: 12px solid #1cedca;
	border-bottom: 2px solid #111a20;
	border-top: 2px solid #111a20;
	font-family: Lato, sans-serif;
	color: #cde2f0;
	font-weight: 400;
	font-style: italic;
	font-size: 1.333333em;
	line-height: 1.2;
	margin: 1.5rem 0;
}

.blkquote-sharp {
	border-left: 12px solid #baeda5;
	border-bottom: 4px solid #111a20;
	border-top: 4px solid #111a20;
	font-family: Lato, sans-serif;
	color: #cde2f0;
	font-weight: 400;
	font-style: italic;
	font-size: 1.333333em;
	line-height: 1.2;
	margin: 2rem 0;
}

blockquote:first-child {
	margin-top: 0;
}

blockquote p {
	margin-bottom: 0.66667rem;
	padding-left: 1.33333rem;
}

blockquote p:last-child {
	margin-bottom: 1.33333rem;
}

blockquote,
q {
	quotes: none;
}

blockquote cite,
blockquote small {
	display: block;
	font-size: 0.52941em;
	font-style: italic;
	font-weight: 400;
	line-height: 1.5;
	margin-top: 1em;
	text-align: right;
	padding-right: 1.333333rem;
}

blockquote cite:last-child,
blockquote small:last-child {
	margin-bottom: 0;
}

@media only screen and (max-width: 600px) {
	html {
		font-size: 100%;
	}

	h1 {
		font-size: 2em;
	}

	h2 {
		font-size: 1.77778em;
	}

	blockquote {
		background: #111a20;
		border-left: 6px solid #1cedca;
		margin: 1em 5px;
		padding: 1em 5px 0.1em;
		quotes: "\201C""\201D""\2018""\2019";
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console