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.

              <div class="baHrad">

<div class="strechaL"></div>
<div class="vezaL">
	<div class="vezaLBokL"></div>
	<div class="vezaLBokR"></div>
<div class="podvezaL"></div>
<div class="strechaR"></div>
<div class="vezaR">
	<div class="vezaRBokL"></div>
	<div class="vezaRBokR"></div>
<div class="podvezaR"></div>
<div class="strecha"></div>
<div class="budova">
<div class="okno11"></div>
<div class="okno12"></div>
<div class="okno13"></div>
<div class="okno14"></div>
<div class="okno15"></div>
<div class="okno16"></div>
<div class="okno17"></div>
<div class="okno18"></div>
<div class="okno21"></div>
<div class="okno22"></div>
<div class="okno23"></div>
<div class="okno24"></div>
<div class="okno25"></div>
<div class="okno26"></div>
<div class="okno27"></div>
<div class="okno28"></div>
<div class="okno31"></div>
<div class="okno32"></div>
<div class="okno33"></div>
<div class="okno34"></div>
<div class="okno35"></div>
<div class="okno36"></div>
<div class="okno37"></div>
<div class="okno38"></div>


              @import compass

$w: 520px
$h: 3/4*$w

$strechaColor: red
$murColor: #efefef
$strechaOkrajColor: firebrick

$wVezaL: 0.13*$w
$hVezaL: 0.15*$h
$wPodvezaL: 0.15*$w
$hPodvezaL: 0.14*$h
$wVezaR: 0.10*$w
$hVezaR: 0.12*$h
$wPodvezaR: 0.12*$w
$hPodvezaR: $hPodvezaL
$wStrechaL: $wVezaL
$hStrechaL: 0.13*$h
$wStrechaR: $wVezaR
$hStrechaR: 0.11*$h
$hStrecha: $hPodvezaL
$wBudova: $w
$hBudova: (1*$h) - $hVezaL - $hStrechaL - $hPodvezaL
$hOknoMini: 0.04*$h
$hOknoBig: 0.06*$h
$wOkno: 0.02*$w
$oknaColumns: 8
$oknaRows: 3

@mixin bgUpDownGrad( $fromColor, $toColor)
	background: -webkit-linear-gradient( $fromColor, $toColor) /* For Safari 5.1 to 6.0 */
	background: -o-linear-gradient( $fromColor, $toColor) /* For Opera 11.1 to 12.0 */
	background: -moz-linear-gradient( $fromColor, $toColor) /* For Firefox 3.6 to 15 */
	background: linear-gradient( $fromColor, $toColor) /* Standard syntax */
	width: 0px
	height: 0px
	overflow: hidden
	position: absolute
	width: $w
	height: $h
	overflow: hidden
	display: block
	position: absolute
		@extend .basic
		border-bottom: $hStrechaL solid $strechaColor
		border-left: 1/2*$wStrechaL solid transparent
		border-right: 1/2*$wStrechaL solid transparent
		left: ($wPodvezaL - $wVezaL) / 2
		top: 0
		@extend .basic
		top: $hStrechaL
		left: ($wPodvezaL - $wVezaL) / 2
		background: $murColor
		width: $wVezaL
		height: $hVezaL
			@extend .basic
			background: darken($murColor, 5%)
			width: $wVezaL/4
			height: $hVezaL
			top: 0
			left: 0
			@extend .vezaLbokL
			right: 0
			left: auto
		@extend .basic
		top: $hStrechaL+$hVezaL
		left: 0
		background: $murColor
		width: $wPodvezaL
		height: $hPodvezaL
		@extend .basic
		@include bgUpDownGrad( $strechaColor, $strechaOkrajColor)
		width: $wBudova - $wPodvezaL - $wPodvezaR
		height: $hStrecha
		top: $hStrechaL + $hVezaL
		left: $wPodvezaL
		@extend .basic
		width: $wBudova
		height: $hBudova
		top: $hVezaL + $hStrechaL + $hStrecha
		left: 0
		background: $murColor
			@extend .basic
			background: #666
			width: $wOkno
		@for $i from 1 through $oknaRows
			@for $j from 1 through $oknaColumns 
					left: ( ( $wBudova - $wVezaL - $wVezaR) / ( $oknaColumns  + 1) * $j ) + $wVezaL - ($wOkno / 2)
					top: ( $hBudova / ($oknaRows + 2) * $i )
					@if $i< 2 
						height: $hOknoMini
						height: $hOknoBig
		@extend .basic
		right: ($wPodvezaR - $wVezaR) / 2
		top: $hVezaL + $hStrechaL - $hVezaR
		width: $wVezaR
		height: $hVezaR
		background: $murColor
			@extend .basic
			background: darken($murColor, 5%)
			width: $wVezaR/4
			height: $hVezaR
			top: 0
			left: 0
			@extend .vezaRbokL
			right: 0
			left: auto
		@extend .basic
		top: $hVezaL + $hStrechaL + $hPodvezaL - $hPodvezaR
		right: 0
		background: $murColor
		width: $wPodvezaR
		height: $hPodvezaR
		@extend .basic
		right: ($wPodvezaR - $wVezaR) / 2
		top: $hVezaL + $hStrechaL - $hStrechaR - $hVezaR
		border-bottom: $hStrechaR solid $strechaColor
		border-left: 1/2*$wStrechaR solid transparent
		border-right: 1/2*$wStrechaR solid transparent
🕑 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.