css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <header>
		<div class="container">
			<h1 class="title">lorem ipsum</h1>
			<div class="search-box">
				<input type="search" placeholder="введіть слово...">
				<button type="button" class="search"><i class="fa fa-search" aria-hidden="true"></i></button>
			</div>
		</div>
	</header>
	<main>
		<div class="container">
				<div class="content">
					<div class="about-dict">
						<h4>Про словник</h4>
						<p>
							Mauris eget pellentesque felis, sed commodo sem. Vestibulum urna purus, consectetur sed ultricies a, euismod et lorem. Nunc malesuada, velit rutrum laoreet egestas, nisl mauris luctus enim, sit amet aliquam turpis sapien non lacus. Duis leo felis, varius in hendrerit vitae, faucibus tincidunt lorem. Donec lobortis, lacus quis feugiat sodales, urna turpis varius nulla, eget interdum dui risus ut nisl. Nunc ut tortor in tortor convallis congue. Morbi eget turpis congue, imperdiet augue in, sagittis eros. Morbi luctus hendrerit felis quis varius. Aliquam pretium iaculis purus, vitae fringilla justo sollicitudin nec. In bibendum sem sit amet faucibus tincidunt. Proin pulvinar ipsum at metus ultrices, eget semper enim lobortis. Suspendisse sodales suscipit nisl, fermentum porttitor mauris facilisis blandit. Sed varius lacinia purus, a pharetra diam volutpat eu.
						</p>
					</div>
					<div class="last-words">
						<h4>Слово дня</h4>
						<p><span class="word-dt"><a href="">lorem</a></span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus nisi quod consectetur corrupti ea, similique, earum iste id rerum molestiae iusto deleniti nemo cupiditate fugit. Maiores aliquid tempora asperiores modi.</p>
					</div>
				</div>
		</div>
	</main>
	<footer>
		<p>Lorem ipsum dolor sit amet consectetur adipisicing elit&copy;</p>
	</footer>
            
          
!
            
              $blue_bg: #4e64a0;
$darken_blue: darken($blue_bg, 20%);
$red_bg: #c4646c;
$darken_red: darken($red_bg, 20%);
$search_box_height: 3rem;
$lighten_red_bg: lighten($red_bg, 20%);
$megalight_red_bg: lighten($lighten_red_bg, 10%);

@mixin text-block {
	text-indent: 1rem;
	padding: 1rem;
	padding-bottom: 0.3rem;
	border-radius: 5px;
	box-shadow: 0 0 20px 0px transparentize($darken_red, $amount: 0.7), 0 20px 30px transparentize($darken_red, $amount: 0.75);
}
.p-text {
	font-size: 1rem;
	line-height: 1.2rem;
	a {
		color: black;
	}
}
* {
	box-sizing: border-box;
	font-family: 'Fira Sans Condensed', sans-serif;
}
body, html {
	margin: 0;
	height: 100%;
	min-width: 330px;
}
.word-dt {
	font-weight: bold;
	text-transform: capitalize;
	&:after {
		content: ' \2014  ';
		font-weight: normal;
	}
}
.container {
	max-width: 960px;
	margin: 0 auto;
}
header {
	height: 300px;
	width: 100%;
	padding: 1.7rem;
	background: $blue_bg;
	h1 {
		margin-top: 0;
		color: white;
	}
	.search-box {
		display: flex;
		max-width: 350px;
		margin: 0 auto;
		margin-top: 4rem;
		height: $search_box_height;
		border-radius: $search_box_height;
		overflow: hidden;
		box-shadow: 0 0 20px 2px transparentize($darken_blue, $amount: 0.4);	
		input {
			width: calc(100% - #{$search_box_height});
			@media (max-width: 768px) {
				width: 100%;
			}
			position: relative;
			background-color: $lighten_red_bg;
			border: none;
			color: black;
			font-size: 1.4rem;
			text-indent: 1rem;
			&:focus {
				background-color: white;
			}
		}
		button {
			@media (max-width: 768px) {
				display: none;
			}
			position: relative;
			right: 0;
			width: $search_box_height;
			border: none;
			background: $red_bg;
			outline: none;
			i {
				color: white;
				font-size: 1.7rem;
				position: relative;
				right: 0.15rem;
			}
			&:active {
				background-color: darken($red_bg, 10%);
			}
		}
	}
}
main {
	background-color: $megalight_red_bg;
	width: 100%;
	min-height: calc(100vh - 400px);
	padding: 2rem;
	.content {
		display: flex;
		@media (max-width: 768px) {
			flex-direction: column;
		}
		h4 {
			margin: 0.5rem 0;
		}
		.about-dict{
			@include text-block();
			@extend .p-text;
			flex: 3;
			margin-right: 1.7rem;
			@media (max-width: 768px) {
				margin-right: 0;
				margin-bottom: 1.7rem;
			}
			background-color: white;
		}
		.last-words {
			@include text-block();
			@extend .p-text;	
			flex: 2;
			background-color: white;
		}
	}
}
footer {
	text-align: center;
	height: 100px;
	line-height: 100px;
	background: $megalight_red_bg;
	p {
		margin: 0;
		padding: 0;
		font-size: 0.8rem;
		white-space: nowrap;
	}
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console