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

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

              
                <div class="slavin">
	<div class="budova"></div>
	<div class="dvere"></div>
	<div class="podstavecA"></div>
	<div class="podstavecB"></div>
	<div class="podstavecC"></div>
	<div class="podstavecD"></div>
	<div class="pylon1"></div>
	<div class="pylon2"></div>
	<div class="pylon3"></div>
	<div class="pylon4"></div>
	<div class="pylon5"></div>
	<div class="pylon6"></div>
	<div class="nadstavecA"></div>
	<div class="nadstavecB"></div>
	<div class="nadstavecC"></div>
	<div class="trapezoid"></div>
	<div class="socha"></div>
	<div class="sochaTien"></div>
</div>

              
            
!

CSS

              
                @import compass

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

$mramorColor: #e8e8e8
$sochaColor: darken($mramorColor, 20%)
$budovaColor: darken($mramorColor, 15%)
$mramorColor2: darken($mramorColor, 2%)
$dvereColor: darken($mramorColor, 22%)

$wPdaA : 0.8 * $w
$wPdaB : 0.75 * $w
$wPdaC : 0.7 * $w
$wPdaD : 0.65 * $w
$hPda : 0.015 * $h

$hPylon: 0.19 * $h
$wPylon: 0.026 * $w
$pylons: 6
$podstavecs: 4

$hNadstavecA: 0.04 * $h
$wNadstavecA: 16* $wPylon
$hNadstavecB: 0.1 * $h
$wNadstavecB: 10 * $wPylon
$hNadstavecC: 0.05 * $h
$wNadstavecC: 6 * $wPylon

$hSocha: 0.08 * $h
$wSocha: 0.02 * $w

$wDvere: 2 * $wPylon
$hDvere: $hPylon * 0.6	

$wBudova: 10 * $wPylon
$hBudova: $hPylon

$hTrap : $h - ( 4 * $hPda + $hPylon + $hNadstavecA + $hNadstavecB + $hNadstavecC + $hSocha)
$wTrapDown : 0.02 * $w
$wTrapUp : 0.02 * $w

.basic
	width: 0px
	height: 0px
	overflow: hidden
	position: absolute

.slavin
	width: $w
	height: $h
	overflow: hidden
	position: absolute

	.podstavecA
		@extend .basic
		background: $mramorColor
		width: $wPdaA
		height: $hPda
		bottom: 1 * $hPda
		left: ($w - $wPdaA) / 2
	.podstavecB
		@extend .podstavecA
		bottom: 2 * $hPda
		left: ($w - $wPdaB) / 2
		width: $wPdaB
	.podstavecC
		@extend .podstavecA
		bottom: 3 * $hPda
		left: ($w - $wPdaC) / 2
		width: $wPdaC
	.podstavecD
		@extend .podstavecA
		bottom: 4 * $hPda
		width: $wPdaD
		left: ($w - $wPdaD) / 2
	.budova
		@extend .basic
		background: $budovaColor
		width: $wBudova
		height: $hBudova
		bottom: 4*$hPda
		left: ($w - $wBudova) / 2
	.dvere
		@extend .basic
		background: $dvereColor
		width: $wDvere
		height: $hDvere
		bottom: 4*$hPda
		left: ($w - $wDvere) / 2
	@for $i from 1 through $pylons
		.pylon#{$i}
			@extend .basic
			height: $hPylon
			width: $wPylon
			bottom: $podstavecs * $hPda
			background: $mramorColor
			left: ( ( ( $w - ( ($pylons - 1)*3*$wPylon ) ) / 2 ) - ($wPylon/2) ) + (($i - 1)*3*$wPylon)
	.nadstavecA
		@extend .basic
		width: $wNadstavecA
		height: $hNadstavecA
		bottom: 4 * $hPda + $hPylon
		left: ($w - $wNadstavecA) / 2
		background: $mramorColor
	.nadstavecB
		@extend .basic
		width: $wNadstavecB
		height: $hNadstavecB
		bottom: 4 * $hPda + $hPylon + $hNadstavecA
		left: ($w - $wNadstavecB) / 2
		background: $mramorColor2
	.nadstavecC
		@extend .basic
		width: $wNadstavecC
		height: $hNadstavecC
		bottom: 4 * $hPda + $hPylon + $hNadstavecA + $hNadstavecB
		left: ($w - $wNadstavecC) / 2
		background: $mramorColor
	.trapezoid
		@extend .basic
		border-bottom: $hTrap solid $mramorColor 
		border-left: (($wTrapDown - $wTrapUp) / 2) solid transparent 
		border-right: (($wTrapDown - $wTrapUp) / 2)  solid transparent 
		height: 0 
		bottom: 4 * $hPda + $hPylon + $hNadstavecA + $hNadstavecB + $hNadstavecC
		left: ($w / 2) - ($wTrapUp / 2)
		width: $wTrapDown
	.socha
		@extend .basic
		width: 0 
		height: 0 
		border-left: ($wSocha / 2) solid transparent 
		border-right: ($wSocha / 2) solid transparent 
		border-bottom: $hSocha solid $sochaColor
		top: 0
		left: ($w / 2) - ($wSocha / 2)
	.sochaTien
		@extend .basic
		width: $wSocha * 0.6
		height: $hSocha * 0.8
		top: $hSocha * 0.2
		background: $sochaColor
		left: ($w / 2) - ((0.8 * $wSocha) / 2)

              
            
!

JS

              
                
              
            
!
999px

Console