css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <form class="sku-selectors">
    <div class="sku-selectors__fieldset-wrapper">
        <fieldset class="sku-selectors__fieldset sku-selectors__fieldset--wide">
            <div class="sku-selectors__input-wrapper sku-selectors__input-wrapper--size sku-selectors__input--pristine">
                <label class="sku-selectors__label">Size:</label>
                <div class="sku-selectors__select-input-wrapper">
                    <div class="sku-selectors__select-input-arrow-wrapper">
                        <div class="sku-selectors__select-input-arrow"></div>
                    </div>
                    <select class="sku-selectors__select-input" name="sku-selectors__size-input">
                        <option value="" disabled="disabled" selected="">Select a size/style</option>
                        <option value="s">Option 1</option> 
                        <option value="m">Option 2</option>
                        <option value="l">Option 3</option>
                        <option value="xl">Option 4</option>
                        <option value="xl">Option 5</option>
                    </select>
                    <div class="sku-selectors__select-input-focus"></div>
                </div>
            </div>            
            <div class="sku-selectors__input-wrapper sku-selectors__input-wrapper--color sku-selectors__input--pristine">
                <label class="sku-selectors__label">Color:</label>
                <div class="sku-selectors__select-input-wrapper">
                    <div class="sku-selectors__select-input-arrow-wrapper">
                        <div class="sku-selectors__select-input-arrow"></div>
                    </div>
                    <select class="sku-selectors__select-input" name="sku-selectors__color-input">
                        <option value="" disabled="disabled" selected="">Select a color</option>
                        <option value="red">Red</option> 
                        <option value="green">Green</option>
                        <option value="blue">Blue</option>
                    </select>
                    <div class="sku-selectors__select-input-focus"></div>
                </div>
            </div>            
        </fieldset>
        <fieldset class="sku-selectors__fieldset sku-selectors__fieldset--skinny">
            <div class="sku-selectors__input-wrapper sku-selectors__input-wrapper--quantity">
                <label class="sku-selectors__label">Quantity:</label>
                <input class="sku-selectors__text-input" type="text" value="1">
            </div>
        </fieldset>
    </div>
</form>
            
          
!
            
              /* line 317, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors {
  margin-top: 27px;
}

/* line 321, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__fieldset-wrapper {
  width: 100%;
}

/* line 325, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__fieldset {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  height: 100%;
}

/* line 333, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__fieldset--wide {
  padding-right: 5%;
  width: 65%;
}

/* line 338, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__fieldset--skinny {
  width: 30%;
}

/* line 342, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__input-wrapper {
  position: relative;
  margin-top: 17px;
}
/* line 346, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__input-wrapper:first-child {
  margin-top: 0;
}

/* line 353, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__input-wrapper--size .sku-selectors__label,
.sku-selectors__input-wrapper--color .sku-selectors__label {
  position: absolute;
  left: -9999px;
}

/* line 362, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__label {
  font-family: "Lato", "Myriad Pro", "Trebuchet MS", Ubuntu, sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  margin-right: 5px;
  text-transform: uppercase;
}

/* line 368, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__select-input-wrapper {
  background-color: #fff;
  border: 1px solid #ccc;
  height: 37px;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

/* line 379, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__select-input-arrow-wrapper {
  border-left: 1px solid #ccc;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 35px;
  z-index: 1;
}

/* line 389, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__select-input-arrow {
  background-color: transparent;
  background-image: url('../img/icons-s92fd7fc532.png');
  background-position: 0 -1124px;
  background-repeat: no-repeat;
  overflow: hidden;
  display: block;
  height: 6px;
  width: 10px;
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  position: absolute;
  right: 12px;
}
@media (min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  /* line 389, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
  .sku-selectors__select-input-arrow {
    background-image: url('../img/icons-2x-s36979a0245.png');
    background-size: 73px 8074.5px;
    background-position: 0 -1124px;
  }
}
@media (min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  /* line 389, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
  .sku-selectors__select-input-arrow {
    height: 6px;
    width: 10px;
  }
}

/* line 397, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__select-input {
  font-family: "Lato", "Myriad Pro", "Trebuchet MS", Ubuntu, sans-serif;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 400;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: none;
  border: none;
  box-shadow: none;
  color: #333;
  height: 35px;
  line-height: 35px;
  padding: 0 13px;
  position: relative;
  width: 120%;
  z-index: 2;
}
/* line 414, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__select-input:focus {
  // outline: none; !!! please don't remove the obvious focus state!
}

/* line 420, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__input--pristine .sku-selectors__select-input {
  font-style: italic;
  color: #666;
}

/* line 426, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__text-input {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: "Lato", "Myriad Pro", "Trebuchet MS", Ubuntu, sans-serif;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 400;
  border: 1px solid #ccc;
  height: 37px;
  line-height: 35px;
  padding: 0 13px;
  width: 55px;
}
/* line 435, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__text-input:focus {
  border-color: #919191;
  // outline: none; !!! please don't remove the obvious focus state!
}
/* line 440, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__input-wrapper--error .sku-selectors__text-input {
  border-color: #eb0000;
}

/* line 445, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__error-message {
  background: #eb0000;
  margin-top: 17px;
  padding: 10px 15px;
  position: relative;
}
/* line 451, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__error-message:before {
  content: '';
  display: block;
  display: block;
  width: 0;
  height: 0;
  border: 0 solid transparent;
  border-bottom-color: #eb0000;
  border-width: 0 8px 8px 8px;
  position: absolute;
  top: -8px;
  right: 53px;
}

/* line 460, ../components/pdp-buy-box/clientlibs/pdp-buy-box.scss */
.sku-selectors__error-message-text {
  font-family: "Lato", "Myriad Pro", "Trebuchet MS", Ubuntu, sans-serif;
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
}





/* CHANGE CHANGE CHANGES */
.sku-selectors__select-input-wrapper {
  border: none;
}
.sku-selectors__select-input-focus {
  border: 1px solid #ccc;
  bottom: 0;
  height: 35px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

.sku-selectors__select-input:focus ~ .sku-selectors__select-input-focus {
  border-color: #333;
}
            
          
!
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.
Loading ..................

Console