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

              
                //
  vegasteamhq.com
  Try searching for a VegasTeam officer - Big Papa, Graystar, or Blackout

label VT Search
  .searchContainer
    input(type=text autocomplete="off")
    input(type=text class="autoFill" autocomplete="off" disabled)
              
            
!

CSS

              
                /* vegasteamhq.com */

$white: #FFFFFF
$black: #000000
$darkGold: #181510
$gold: #A08C5B
$lightGold: #E9DBBD
  
html, body
  height: 100%
body
  padding: 50px 0
  background: $black url(http://vegasteamhq.com/images/vegasTeamLogoDark.svg) center center no-repeat
label
  color: $gold
  font: 16px/20px sans-serif
  padding: 0 50px
  .searchContainer
    margin-top: 20px
    position: relative
    text-transform: uppercase
  input
    position: relative
    text-transform: uppercase
    z-index: 2
    display: block
    width: 100%
    height: 100px
    text-indent: 50px
    font: 60px/60px sans-serif
    outline: 0
    border: 0
    background-color: transparent
  .autoFill
    display: block
    position: absolute
    z-index: 1
    top: 0
    left: 0
    background-color: $gold
    color: $gold - 11
              
            
!

JS

              
                # vegasteamhq.com

terms = ['Big Papa', 'Graystar', 'Blackout', 'The Stag', 'The Bear', 'The Panther']
$(document).on 'keyup', 'input', (e) ->
  for term in terms
    if $(this).val().length is 0
      $('.autoFill').val('')
      return
    if term.toUpperCase().indexOf($(this).val().toUpperCase()) is 0
      $('.autoFill').val(term)
      if e.which is 13
        $('input').val(term)
      return
    $('.autoFill').val('')
              
            
!
999px

Console