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 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.

HTML

              
                <div class="baHrad">

<div class="strechaL"></div>
<div class="vezaL">
	<div class="vezaLBokL"></div>
	<div class="vezaLBokR"></div>
</div>
<div class="podvezaL"></div>
<div class="strechaR"></div>
<div class="vezaR">
	<div class="vezaRBokL"></div>
	<div class="vezaRBokR"></div>
</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>
</div>

</div>



              
            
!

CSS

              
                @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 */
.basic
	width: 0px
	height: 0px
	overflow: hidden
	position: absolute
.baHrad
	width: $w
	height: $h
	overflow: hidden
	display: block
	position: absolute
	.strechaL 
		@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
	.vezaL
		@extend .basic
		top: $hStrechaL
		left: ($wPodvezaL - $wVezaL) / 2
		background: $murColor
		width: $wVezaL
		height: $hVezaL
		.vezaLbokL
			@extend .basic
			background: darken($murColor, 5%)
			width: $wVezaL/4
			height: $hVezaL
			top: 0
			left: 0
		.vezaLbokR
			@extend .vezaLbokL
			right: 0
			left: auto
	.podvezaL
		@extend .basic
		top: $hStrechaL+$hVezaL
		left: 0
		background: $murColor
		width: $wPodvezaL
		height: $hPodvezaL
	.strecha
		@extend .basic
		@include bgUpDownGrad( $strechaColor, $strechaOkrajColor)
		width: $wBudova - $wPodvezaL - $wPodvezaR
		height: $hStrecha
		top: $hStrechaL + $hVezaL
		left: $wPodvezaL
	.budova
		@extend .basic
		width: $wBudova
		height: $hBudova
		top: $hVezaL + $hStrechaL + $hStrecha
		left: 0
		background: $murColor
		div
			@extend .basic
			background: #666
			width: $wOkno
		@for $i from 1 through $oknaRows
			@for $j from 1 through $oknaColumns 
				.okno#{$i}#{$j}
					left: ( ( $wBudova - $wVezaL - $wVezaR) / ( $oknaColumns  + 1) * $j ) + $wVezaL - ($wOkno / 2)
					top: ( $hBudova / ($oknaRows + 2) * $i )
					@if $i< 2 
						height: $hOknoMini
					@else
						height: $hOknoBig
	.vezaR
		@extend .basic
		right: ($wPodvezaR - $wVezaR) / 2
		top: $hVezaL + $hStrechaL - $hVezaR
		width: $wVezaR
		height: $hVezaR
		background: $murColor
		.vezaRbokL
			@extend .basic
			background: darken($murColor, 5%)
			width: $wVezaR/4
			height: $hVezaR
			top: 0
			left: 0
		.vezaRbokR
			@extend .vezaRbokL
			right: 0
			left: auto
	.podvezaR
		@extend .basic
		top: $hVezaL + $hStrechaL + $hPodvezaL - $hPodvezaR
		right: 0
		background: $murColor
		width: $wPodvezaR
		height: $hPodvezaR
	.strechaR
		@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
              
            
!

JS

              
                
              
            
!
999px

Console