cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <div class="logo">
  <span class="hanna">
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
  </span>
  <span class="leaf"><span class="vein"></span></span>
  <strong>Sushi<span>hanna</span></strong>
</div>
            
          
!
            
              @import compass

@import url(https://fonts.googleapis.com/css?family=Sansita+One)

// ==============================
// Sushi Star Logo
// ==============================
$scale: 1

$x-dia: 150px * $scale
$y-dia: 70px * $scale
$thickness: 50px * $scale
$drop-shadow: lighten(#000, 25%)

$title-size: 80px * $scale
$title-offset-x: -2em
$title-offset-y: .25em

$color-light: #fff
$color-accent: #ff9900
$color-dark: #3a3a3c

$leaf-length: 100px * $scale
$leaf-offset: 100px * $scale
$leaf-color-light: #8cc63c
$leaf-color-dark: #296319

.logo
	position: absolute
	top: 50%
	left: 50%
	width: $x-dia
	height: $y-dia
	margin:
		top: -($y-dia + $thickness + $title-size) * .5
		left: -$x-dia * .5
	+border-radius(50%)
	+background-image(linear-gradient(bottom, $color-light, darken($color-light, 20%)))

	&:before, &:after
		content: ""
		position: absolute
		left: 0
		width: 100%
		background: $color-dark
		z-index: -1

	&:before
		top: $thickness
		height: 100%
		+border-radius(50%)
		+box-shadow(0 (1px * $scale) (5px * $scale) 0px $drop-shadow)

	&:after
		top: 50%
		height: $thickness

	strong
		position: absolute
		top: $y-dia + $thickness
		left: 0
		margin:
			top: $title-offset-y
			left: $title-offset-x
		color: $color-dark
		font: 400 $title-size 'Sansita One', cursive
		line-height: $title-size
		white-space: nowrap

		span
			color: $color-accent

	.hanna
		$hanna-rotatation: 360deg / 5
		$stigma-dia: $y-dia * .22
		$petal-dia: $stigma-dia * 1.2

		position: absolute
		top: 50%
		left: 50%
		width: $stigma-dia
		height: $stigma-dia
		margin:
			top: -$stigma-dia / 2
			left: -$stigma-dia / 2
		background: adjust-hue($color-accent, -15%)
		+border-radius(50%)
		z-index: 1

		-webkit-animation: rotate-hanna 2s 1
		-moz-animation: rotate-hanna 2s 1
		-o-animation: rotate-hanna 2s 1
		animation: rotate-hanna 2s 1

		span
			background: $color-accent
			position: absolute
			top: -$stigma-dia * .1
			left: -$stigma-dia * .1
			width: $petal-dia
			height: $petal-dia

			border-top: 0 solid transparent
			+border-radius(50%)
			+border-bottom-left-radius(0)

			-webkit-animation: fade-petals 1s 1
			-moz-animation: fade-petals 1s 1
			-o-animation: fade-petals 1s 1
			animation: fade-petals 1s 1

			&:nth-child(1)
				+transform(rotate($hanna-rotatation * 1.25) skewX(-12deg) skewY(-4deg) translate(-$petal-dia, -$petal-dia / 2))

			&:nth-child(2)
				+transform(rotate($hanna-rotatation * 2.25) skewX(-12deg) skewY(-4deg) translate(-$petal-dia, -$petal-dia / 2))

			&:nth-child(3)
				+transform(rotate($hanna-rotatation * 3.25) skewX(-12deg) skewY(-4deg) translate(-$petal-dia, -$petal-dia / 2))

			&:nth-child(4)
				+transform(rotate($hanna-rotatation * 4.25) skewX(-12deg) skewY(-4deg) translate(-$petal-dia, -$petal-dia / 2))

			&:nth-child(5)
				+transform(rotate($hanna-rotatation * 5.25) skewX(-12deg) skewY(-4deg) translate(-$petal-dia, -$petal-dia / 2))

	.leaf
		position: absolute
		bottom: $thickness - $leaf-offset * .5 + $leaf-length * .45
		right: -$leaf-length * .3
		width: $leaf-length
		height: $leaf-length
		+background-image(linear-gradient(bottom, $leaf-color-dark, $leaf-color-light 88%, $leaf-color-light))
		+border-radius(100% 0 100% 0)
		+box-shadow(0 (5px * $scale) (5px * $scale) (-5px * $scale) $drop-shadow)
		+transform(rotate(33deg) translate($leaf-offset, $leaf-offset))

		-webkit-animation: falling-leaf 2s 1
		-moz-animation: falling-leaf 2s 1
		-o-animation: falling-leaf 2s 1
		animation: falling-leaf 2s 1

		&:before
			content: ""
			position: absolute
			top: -$leaf-length * .42
			right: -$leaf-length * .5
			width: $leaf-length * 1.3
			height: $leaf-length * .5
			background: white
			+border-radius(100% 0 100% 0)
			+transform(rotate(-25deg))

		&:after
			content: ""
			position: absolute
			top: -$leaf-length * .15
			right: 0
			width: $leaf-length * .28
			height: $leaf-length * .28
			background: $leaf-color-light
			+border-radius(50%)
			z-index: -1

		.vein
			position: absolute
			bottom: $leaf-length * .32
			left: -$leaf-length * .13
			width: $leaf-length * 1.15
			height: $leaf-length * .2
			border:
				width: 0 0 ($leaf-length * .04) 0
				style: solid
				color: #fff
			+border-radius(50%)
			+transform(rotate(-43deg))


// ==============================
// Rotate Hanna
// ==============================
@-webkit-keyframes rotate-hanna
	0%
		+transform(rotate(0deg))
	100%
		+transform(rotate(360deg))

@-moz-keyframes rotate-hanna
	0%
		+transform(rotate(0deg))
	100%
		+transform(rotate(360deg))

@-o-keyframes rotate-hanna
	0%
		+transform(rotate(0deg))
	100%
		+transform(rotate(360deg))

@keyframes rotate-hanna
	0%
		+transform(rotate(0deg))
	100%
		+transform(rotate(360deg))

// ==============================
// Fade Petals
// ==============================
@-webkit-keyframes fade-petals
	0%
		opacity: 0
	100%
		opacity: 1

@-moz-keyframes fade-petals
	0%
		opacity: 0
	100%
		opacity: 1

@-o-keyframes fade-petals
	0%
		opacity: 0
	100%
		opacity: 1

@keyframes fade-petals
	0%
		opacity: 0
	100%
		opacity: 1

// ==============================
// Rotate Hanna
// ==============================
@-webkit-keyframes falling-leaf
	from
		opacity: 0
		+transform(rotate(0deg) translate($leaf-offset, $leaf-offset))
	50%
		opacity: 0
		+transform(rotate(0deg) translate($leaf-offset, $leaf-offset))
	to
		opacity: 1
		+transform(rotate(33deg) translate($leaf-offset, $leaf-offset))

@-moz-keyframes falling-leaf
	from
		opacity: 0
		+transform(rotate(0deg) translate($leaf-offset, $leaf-offset))
	50%
		opacity: 0
		+transform(rotate(0deg) translate($leaf-offset, $leaf-offset))
	to
		opacity: 1
		+transform(rotate(33deg) translate($leaf-offset, $leaf-offset))

@-o-keyframes falling-leaf
	from
		opacity: 0
		+transform(rotate(0deg) translate($leaf-offset, $leaf-offset))
	50%
		opacity: 0
		+transform(rotate(0deg) translate($leaf-offset, $leaf-offset))
	to
		opacity: 1
		+transform(rotate(33deg) translate($leaf-offset, $leaf-offset))

@keyframes falling-leaf
	from
		opacity: 0
		+transform(rotate(0deg) translate($leaf-offset, $leaf-offset))
	50%
		opacity: 0
		+transform(rotate(0deg) translate($leaf-offset, $leaf-offset))
	to
		opacity: 1
		+transform(rotate(33deg) translate($leaf-offset, $leaf-offset))
            
          
!
            
              /* ===========================================
// There is a restaurant in Lewisburg, PA
// that's called 'Sushihanna'. This isn't an
// original name for a sushi bar, but it does
// have a unique meaning to the savvy local
// customer. With a little understanding of
// the Japanese language, it's known that
// 'Hana' means flower or blossom, however,
// that's now the romanization you see in the
// restaurant's name. Very close to Lewisburg
// there's a large, well known river called
// the Susquehanna River, who’s spelling the
// restaurant has cleverly adapted.
/* =========================================*/
            
          
!
999px
Loading ..................

Console