123

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="container">
  <h1 class="title">Surveyor Hubs Tags</h1>
  <ul>
    <li class="dropdown">
      <input type="checkbox" />
      <a href="#" data-toggle="dropdown">US State Survey Hubs</a>
      <ul class="dropdown-menu">
        <li><a href="http://landsurveyorsunited.com/group/alabamalandsurveyors">Alabama</a></li>
<li><a href="http://landsurveyorsunited.com/group/alaskalandsurveyors">Alaska</a></li>
<li><a href="http://landsurveyorsunited.com/group/arizonalandsurveyors">Arizona</a></li>
<li><a href="http://landsurveyorsunited.com/group/arkansaslandsurveyors">Arkansas</a></li>
<li><a href="http://landsurveyorsunited.com/group/californialandsurveyors">California</a></li>
<li><a href="http://landsurveyorsunited.com/group/connecticutlandsurveyors">Connecticut</a></li>
<li><a href="http://landsurveyorsunited.com/group/delawarelandsurveyors">Delaware</a></li>
<li><a href="http://landsurveyorsunited.com/group/floridalandsurveyors">Florida</a></li>
<li><a href="http://landsurveyorsunited.com/group/georgialandsurveyors">Georgia</a></li>
<li><a href="http://landsurveyorsunited.com/group/hawaiilandsurveyors">Hawaii</a></li>
<li><a href="http://landsurveyorsunited.com/group/illinoislandsurveyors">Illinois</a></li>
<li><a href="http://landsurveyorsunited.com/group/indianalandsurveyors">Indiana</a></li>
<li><a href="http://landsurveyorsunited.com/group/iowalandsurveyors">Iowa</a></li>
<li><a href="http://landsurveyorsunited.com/group/kansaslandsurveyors">Kansas</a></li>
<li><a href="http://landsurveyorsunited.com/group/kentuckylandsurveyors">Kentucky</a></li>
<li><a href="http://landsurveyorsunited.com/group/mainelandsurveyors">Maine</a></li>
<li><a href="http://landsurveyorsunited.com/group/marylandlandsurveyors">Maryland</a></li>
<li><a href="http://landsurveyorsunited.com/group/massachusettslandsurveyors">Massachusetts</a></li>
<li><a href="http://landsurveyorsunited.com/group/michiganlandsurveyors">Michigan</a></li>
<li><a href="http://landsurveyorsunited.com/group/minnesotalandsurveyors">Minnesota</a></li>
<li><a href="http://landsurveyorsunited.com/group/missourilandsurveyors">Missouri</a></li>
<li><a href="http://landsurveyorsunited.com/group/montanalandsurveyors">Montana</a></li>
<li><a href="http://landsurveyorsunited.com/group/nebraskalandsurveyors">Nebraska</a></li>
<li><a href="http://landsurveyorsunited.com/group/nevadalandsurveyors">Nevada</a></li>
<li><a href="http://landsurveyorsunited.com/group/newhampshirelandsurveyors">New Hampshire</a></li>
<li><a href="http://landsurveyorsunited.com/group/newmexicolandsurveyors">New Mexico</a></li>
<li><a href="http://landsurveyorsunited.com/group/newyorklandsurveyors">New York</a></li>
<li><a href="http://landsurveyorsunited.com/group/northcarolinalandsurveyors">North Carolina</a></li>
<li><a href="http://landsurveyorsunited.com/group/northdakotalandsurveyors">North Dakota</a></li>
<li><a href="http://landsurveyorsunited.com/group/ohiolandsurveyors">Ohio</a></li>
<li><a href="http://landsurveyorsunited.com/group/oregonlandsurveyors">Oregon</a></li>
<li><a href="http://landsurveyorsunited.com/group/pennsylvanialandsurveyors">Pennsylvania</a></li>
<li><a href="http://landsurveyorsunited.com/group/rhodeislandlandsurveyors">Rhode Island</a></li>
<li><a href="http://landsurveyorsunited.com/group/southcarolinalandsurveyors">South Carolina</a></li>
<li><a href="http://landsurveyorsunited.com/group/southdakotalandsurveyors">South Dakota</a></li>
<li><a href="http://landsurveyorsunited.com/group/texaslandsurveyors">Texas</a></li>
<li><a href="http://landsurveyorsunited.com/group/utahlandsurveyors">Utah</a></li>
<li><a href="http://landsurveyorsunited.com/group/vermontlandsurveyors">Vermont</a></li>
<li><a href="http://landsurveyorsunited.com/group/virginialandsurveyors">Virginia</a></li>
<li><a href="http://landsurveyorsunited.com/group/washingtonlandsurveyors">Washington</a></li>
<li><a href="http://landsurveyorsunited.com/group/wisconsinlandsurveyors">Wisconsin</a></li>
<li><a href="http://landsurveyorsunited.com/group/wyominglandsurveyors">Wyoming</a></li>
      </ul>
    </li>
    <li class="dropdown">
      <input type="checkbox" />
      <a href="#" data-toggle="dropdown">Regional World Hubs</a>
      <ul class="dropdown-menu">
        <li><a href="http://landsurveyorsunited.com/group/surveyorsnorthamerica/">North America</a></li>
<li><a href="http://landsurveyorsunited.com/group/surveyorssouthamerica/">South America</a></li>
<li><a href="http://landsurveyorsunited.com/group/surveyorscanada">Canada</a></li>
<li><a href="http://landsurveyorsunited.com/group/surveyorsasia/">Asia</a></li>
<li><a href="http://landsurveyorsunited.com/group/indiageomatics/">India</a></li>
<li><a href="http://landsurveyorsunited.com/group/surveyorsrussia">Russia</a></li>
<li><a href="http://landsurveyorsunited.com/group/surveyorsantarctica/">Antarctica</a></li>
<li><a href="http://landsurveyorsunited.com/group/surveyorsafrica/">Africa</a></li>
<li><a href="http://landsurveyorsunited.com/group/surveyorseurope/">Europe</a></li>
<li><a href="http://landsurveyorsunited.com/group/unitedstatessurveyors/">United States</a></li>
      </ul>
    </li>
    <li class="dropdown">
      <input type="checkbox" />
      <a href="#" data-toggle="dropdown">Surveying Photos by Tag</a>
      <ul class="dropdown-menu">
         <li><a href="http://landsurveyorsunited.com/photo/photo/listTagged?tag=history">Survey History</a></li>
 <li><a href="http://landsurveyorsunited.com/photo/photo/listTagged?tag=marker">Markers</a></li>
 <li><a href="http://landsurveyorsunited.com/photo/photo/listTagged?tag=map">Maps</a></li>
 <li><a href="http://landsurveyorsunited.com/photo/photo/listTagged?tag=total+station">Total Stations</a></li>
 <li><a href="http://landsurveyorsunited.com/photo/photo/listTagged?tag=danger">DANGER</a></li>
 <li><a href="http://landsurveyorsunited.com/photo/photo/listTagged?tag=gps">GPS/GNSS</a></li>
 <li><a href="http://landsurveyorsunited.com/photo/photo/listTagged?tag=construction">Construction</a></li>
 <li><a href="http://landsurveyorsunited.com/photo/photo/listTagged?tag=crew">Survey Crews</a></li>
 <li><a href="http://landsurveyorsunited.com/photo/photo/listTagged?tag=wildlife">Wildlife</a></li>
 <li><a href="http://landsurveyorsunited.com/photo/photo/listTagged?tag=monument">Monuments</a></li>
      </ul>
    </li>
    <li class="dropdown">
      <input type="checkbox" />
      <a href="#" data-toggle="dropdown">Surveying Videos by Tag</a>
      <ul class="dropdown-menu">
        <li><a href="http://landsurveyorsunited.com/video/video/listTagged?tag=tutorial">Tutorial</a></li>
 <li><a href="http://landsurveyorsunited.com/video/video/listTagged?tag=software">Survey Software</a></li>
 <li><a href="http://landsurveyorsunited.com/video/video/listTagged?tag=mapping">Mapping</a></li>
 <li><a href="http://landsurveyorsunited.com/video/video/listTagged?tag=autocad">AUTOCAD</a></li>
 <li><a href="http://landsurveyorsunited.com/video/video/listTagged?tag=funny">Surveying Funny</a></li>
 <li><a href="http://landsurveyorsunited.com/video/video/listTagged?tag=GPS">GPS/GNSS</a></li>
 <li><a href="http://landsurveyorsunited.com/video/video/listTagged?tag=GIS">GIS</a></li>
 <li><a href="http://landsurveyorsunited.com/video/video/listTagged?tag=demo">Survey Demos</a></li>
 <li><a href="http://landsurveyorsunited.com/video/video/listTagged?tag=lecture">Survey Lecture</a></li>
 <li><a href="http://landsurveyorsunited.com/video/video/listTagged?tag=equipment">Survey Equipment</a></li>
      </ul>
    </li>
  </ul>
</div>
            
          
!
            
              @import "compass/css3";

@import url("https://fonts.googleapis.com/css?family=Lato:300,400,700,900");
@import url(https://fonts.googleapis.com/css?family=Pacifico);

body {
	font-family: "Lato", Helvetica, Arial;
	font-size: 16px;
}

*, *:before, *:after {
	-webkit-border-sizing: border-box;
	-moz-border-sizing: border-box;
	border-sizing: border-box;
}

.container {
	width: 350px;
	margin: 50px auto;
  
  & > ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
  }
}

// =============================================================================
//	Mixins and Variables
// =============================================================================

$orange: #C0392B;
$blue: #2980B9;
$gray: #EEE;

@mixin ul-nostyle {
	list-style: none;
	padding: 0;
	margin: 0;
}

@mixin double-shadow($color) {
	@include box-shadow(0 1px 0 lighten($color, 10%) inset, 0 -1px 0 darken($color, 10%) inset);
}

@mixin hover-style($color) {
	&:hover {
		background: lighten($color, 3%);
	}
}

@mixin animation($content) {
  animation: $content;
  -moz-animation: $content;
  -webkit-animation: $content;
}

@mixin keyframes($name) {
  @keyframes #{$name} { @content; }
  @-moz-keyframes #{$name} { @content; }
  @-webkit-keyframes #{$name} { @content; }
}

// =============================================================================
//	Classes
// =============================================================================

.title {
  font-family: 'Pacifico';
  font-weight: norma;
  font-size: 40px;
  text-align: center;
  line-height: 1.4;
  color: $orange;
}

.dropdown {
  position: relative;
  
	a { text-decoration: none; }

	[data-toggle="dropdown"] {
		display: block;
		color: white;
		background: $orange;
		@include double-shadow($orange);
		@include hover-style($orange);
		@include text-shadow(0 -1px 0 rgba(0,0,0,0.3));
		padding: 10px;
    
    &:before {
			position: absolute;
			display: block;
      content: '\25BC';
			font-size: 0.7em;
			color: #fff;
			top: 13px;
			right: 10px;
			@include transform(rotate(0deg));
			@include transition(transform .6s);
		}
	}

	& > .dropdown-menu {
		max-height: 0;
		overflow: hidden;
		@include ul-nostyle;
		@include transform(scaleY(0));
		@include transform-origin(50%, 0%);
		@include transition(max-height .6s ease-out);
		@include animation(hideAnimation .4s ease-out);

		li {
			padding: 0;

			a {
				display: block;
				color: darken($gray, 50%);
				background: $gray;
				@include double-shadow($gray);
				@include hover-style($gray);
				@include text-shadow(0 -1px 0 rgba(255,255,255,0.3));
				padding: 10px 10px;
			}
		}
	}
  
  & > input[type="checkbox"] {
    opacity: 0;
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    
    &:checked ~ .dropdown-menu {
      max-height: 9999px;
			display: block;
			@include transform(scaleY(1));
			@include animation(showAnimation .5s ease-in-out);
			@include transition(max-height 2s ease-in-out);
    }
    
    &:checked + a[data-toggle="dropdown"] {
      &:before {
        @include transform(rotate(-180deg));
        @include transition(transform .6s);
      }
    }
  }
}

@include keyframes(showAnimation) {
	0% {
		@include transform(scaleY(0.1));
	}
	40% {
		@include transform(scaleY(1.04));
	}
	60% {
		@include transform(scaleY(0.98));
	}
	80% {
		@include transform(scaleY(1.04));
	}
	100% {
		@include transform(scaleY(0.98));
	}				
	80% {
		@include transform(scaleY(1.02));
	}
	100% {
		@include transform(scaleY(1));
	}
}

@include keyframes(hideAnimation) {
  0% {
  	@include transform(scaleY(1));
  }
  60% {
  	@include transform(scaleY(0.98));
  }
  80% {
  	@include transform(scaleY(1.02));
  }
  100% {
  	@include transform(scaleY(0));
  }
}
            
          
!
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.

Console