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

              
                <body>
	<header>
		<div class="title-wrap">
			<div class="peta">Excerpts from</div>
			<div class="text-color-c">The Book of Tea</div>
			<div class="text-color-c">by Kakuzo Okakura</div>
		</div>
	</header>
	<main>
		<section>
			<div class="space-ver">
				<img src="https://source.unsplash.com/gy_DN08336U">
			</div>
			<div class="vertical-flex">
				<div class="content" style='padding-top: 8rem; padding-bottom: 3rem;'>
					<span class="vertical-text"><h4>Charles Lamb</h4><p class='micro'>professed devotee</p></span>

				</div>
				<div class="content space-left space-right">
					<p>The greatest pleasure he knew was to do a good action by stealth, and to have it found out by accident. For Teaism is the art of concealing beauty that you may discover it, of suggesting what you dare not reveal. It is the noble secret of laughing
						at yourself, calmly yet thoroughly, and is thus humour itself,- Thackeray, for instance, and of course, Shakespear. The poets of the Decadence (when was not the world in decadence?)</p>
				</div>
			</div>
		</section>
		<section>
			<div class="space-top vertical-flex">
				<div class="content" style='padding-top: 8rem; padding-bottom: 3rem;'>
					<span class="vertical-text space-bottom"><h3>The Schools of Tea</h3><p class='micro'></p></span>

				</div>
				<div class="content space-left space-right">
					<p>Tea is a work of art and needs a master hand to bring out its noblest qualities. We have good and bad tea, as we have good and bad paintings. There is no single recipe for making the perfect tea, as there are no rules for producing a Titian or a
						Sesson. Each preparation of the leaves has its individuality, its special affinity with water and heat, its hereditary memories to recall, its own method of telling a story.</p>
				</div>
			</div>
			<div class="space-ver space-top">
				<img src="https://source.unsplash.com/dPUWgZLsOk8">
			</div>
		</section>
		<section>
<!-- 			<p>There is a subtle charm in the taste of tea which makes it irresistible and capable of idealisation. Western humourist were not slow to mingle the fragrance of their thought with its aroma. It has not the arrogance of wine, the self-conciousness of
				coffee, nor the simpering innocence of cocoa.</p> -->
		</section>
		<section>
			<div class="space-top">

			</div>
			<div class="space-top">

			</div>
		</section>

	</main>
	<footer>
		<section class="hidden" id="acknowledgment">
				<script>
				const ack = document.getElementById('acknowledgment');
ack.addEventListener('click', (e)=>{
	ack.classList.toggle('hidden');
})</script>
				<div class="toggle">
					<div></div>
					<div></div>
					<div></div>
				</div>
				<h4>Acknowledgements</h4>
				<div class="grid columns two">
					<p>This project would not be possible without the wonderful communities from around the web. So cheers and thank you</p>
					<div>
						<p>Below is the list of sources for various resources used</p>
						<h5>Photography through Unsplash</h5>
						<ul><li>
						<a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-family:-apple-system, BlinkMacSystemFont, &quot;San Francisco&quot;, &quot;Helvetica Neue&quot;, Helvetica, Ubuntu, Roboto, Noto, &quot;Segoe UI&quot;, Arial, sans-serif;font-size:12px;font-weight:bold;line-height:1.2;display:inline-block;border-radius:3px" href="https://unsplash.com/@oriento?utm_medium=referral&amp;utm_campaign=photographer-credit&amp;utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from 五玄土 ORIENTO"><span style="display:inline-block;padding:2px 3px"><svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-2px;fill:white" viewBox="0 0 32 32"><title>unsplash-logo</title><path d="M10 9V0h12v9H10zm12 5h10v18H0V14h10v9h12v-9z"></path></svg></span><span style="display:inline-block;padding:2px 3px">五玄土 ORIENTO</span></a></li>
							<li>
						<a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-family:-apple-system, BlinkMacSystemFont, &quot;San Francisco&quot;, &quot;Helvetica Neue&quot;, Helvetica, Ubuntu, Roboto, Noto, &quot;Segoe UI&quot;, Arial, sans-serif;font-size:12px;font-weight:bold;line-height:1.2;display:inline-block;border-radius:3px" href="https://unsplash.com/@oriento?utm_medium=referral&amp;utm_campaign=photographer-credit&amp;utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from 五玄土 ORIENTO"><span style="display:inline-block;padding:2px 3px"><svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-2px;fill:white" viewBox="0 0 32 32"><title>unsplash-logo</title><path d="M10 9V0h12v9H10zm12 5h10v18H0V14h10v9h12v-9z"></path></svg></span><span style="display:inline-block;padding:2px 3px">五玄土 ORIENTO</span></a>
							</li>
							<li>
								<a href="https://en.wikipedia.org/wiki/The_Book_of_Tea">Book of Tea Wikipedia</a>
						</ul>
					</div>
				</div>
			</section>
	</footer>
</body>
              
            
!

CSS

              
                $color-a: #005874;
$color-b: #1c819e;
$color-c: #e6e6d4;
$color-d: #ffbe00;
.text-color-c {
	color: lighten($color-c, 10%);
}
body {
	font-size: 18px;
	.yotta,
	.zetta,
	.exa,
	.peta,
	.tera,
	.giga,
	.mega,
	.kilo,
	.milli,
	.micro,
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	p {
		font-family: serif;
	}
}
header {
	background-image: linear-gradient(
			hsla(120, 7%, 50%, 0.9),
			hsla(120, 7%, 50%, 1)
		),
		url("https://source.unsplash.com/9kk22G44kvg");
	backgroun-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	height: 30vh;
}
main {
	section {
		display: flex;
		div {
			display: flex;
			width: 50vw;
		}
		img {
			margin: auto;
			height: 50vh;
		}
	}
	section:nth-of-type(1) > div:nth-child(1) {
		background: linear-gradient($light-0 50%, $color-c 50%);
	}

	section:nth-of-type(2) > div:nth-child(2) {
		background: linear-gradient($light-0 50%, $color-c 50%);
	}
	section:nth-of-type(3) {
		
		background-image: url("https://source.unsplash.com/2CRgKZAyPXg");
		backgroun-repeat: no-repeat;
		background-size: cover;
		height: 50vh;
	}
	section:nth-of-type(4) > div:nth-child(2) {
		height: 10vh;
		background: $color-c;
	}
}

.vertical-flex {
	display: flex;
	flex-direction: column;
}
.vertical-text {
	transform: rotate(-90deg);
	transform-origin: 50 0;
	height: fit-content;
	width: fit-content;
}
.content {
	box-sizing: border-box;
	padding: 2rem;
}

header {
	.title-wrap {
		font-family: san-serif;
		padding: 1rem;
		div:nth-of-type(2) {
			font-size: 7.5rem;
			font-family: san-serif;
			font-weight: 700;
		}
		div:nth-of-type(1) {
			color: darken($color-c, 10%);
			font-style: italic;
			margin: 0px;
		}
		div:nth-of-type(3) {
			margin: 0px;
			float: right;
		}
	}
}

@media screen and (max-width: 700px) {
	header {
		.title-wrap {
		div:nth-of-type(2) {
			font-size: 4.5rem;
			font-family: san-serif;
			font-weight: 700;
		}
	}	
	}
	
	main {
		section {
			width: 100vw;
			flex-wrap: wrap;
			div {
				width: 100vw;
			}
			img {
			}
		}
		section:nth-of-type(2) {
			flex-direction: column-reverse;
		}
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console