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.

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

            
              <div class="frame">
<div class="content">
<p>Lorem ipsum dolor sit amet, no eum quas fuisset accusamus, his eirmod admodum ut, et mea facete sententiae dissentias. Sea augue affert in. An eam illum vituperata. Reque gloriatur no nec, ex vix audiam deseruisse. Has quas graeco docendi te, his cu option forensibus definitiones. Eos probatus phaedrum no, no eos wisi meliore, est ne viderer legendos.</p>
<p>Nam percipitur neglegentur ei, vocibus temporibus signiferumque ut mea, pro modo nemore oporteat ne. Vis no alienum prodesset, pri nostrud dolorum definitiones ex. Vix ad audire democritum, te nam sapientem disputationi. Usu id reque suavitate sententiae, eu dolor ullamcorper theophrastus eos, id has vocibus legendos. Dicat antiopam iudicabit cu nec, eam vidit partem volumus ex, diceret albucius consulatu mea no.</p>
<p>Ius vide facer oportere te, ne cum graeco facete aliquip, an choro vituperatoribus mel. Pro ea minim oblique nonumes, nobis gloriatur vituperatoribus his ne. Ex tempor mollis mediocritatem vis. Ne lorem intellegat vel. Ex sale tantas per, pro fugit tempor in.</p>
<p>Eum ut mollis persius, eum ex electram partiendo. In reque nusquam quo, cum cu ullum definitionem. Summo aliquip placerat usu in. No eos purto habeo choro, mea mundi putant consequuntur te, et usu modo verear virtute.</p>
<p>Mucius appetere qualisque eu ius. At idque nemore neglegentur usu, saepe efficiendi nec ex, democritum dissentiet quo an. No nihil percipit postulant qui. Per an prima oblique.</p>
</div>
</div>

<textarea>
Lorem ipsum dolor sit amet, no eum quas fuisset accusamus, his eirmod admodum ut, et mea facete sententiae dissentias. Sea augue affert in. An eam illum vituperata. Reque gloriatur no nec, ex vix audiam deseruisse. Has quas graeco docendi te, his cu option forensibus definitiones. Eos probatus phaedrum no, no eos wisi meliore, est ne viderer legendos.

Nam percipitur neglegentur ei, vocibus temporibus signiferumque ut mea, pro modo nemore oporteat ne. Vis no alienum prodesset, pri nostrud dolorum definitiones ex. Vix ad audire democritum, te nam sapientem disputationi. Usu id reque suavitate sententiae, eu dolor ullamcorper theophrastus eos, id has vocibus legendos. Dicat antiopam iudicabit cu nec, eam vidit partem volumus ex, diceret albucius consulatu mea no.

Ius vide facer oportere te, ne cum graeco facete aliquip, an choro vituperatoribus mel. Pro ea minim oblique nonumes, nobis gloriatur vituperatoribus his ne. Ex tempor mollis mediocritatem vis. Ne lorem intellegat vel. Ex sale tantas per, pro fugit tempor in.

Eum ut mollis persius, eum ex electram partiendo. In reque nusquam quo, cum cu ullum definitionem. Summo aliquip placerat usu in. No eos purto habeo choro, mea mundi putant consequuntur te, et usu modo verear virtute.

Mucius appetere qualisque eu ius. At idque nemore neglegentur usu, saepe efficiendi nec ex, democritum dissentiet quo an. No nihil percipit postulant qui. Per an prima oblique.
</textarea>
            
          
!
            
              $win95-ui-main-color: #c3c7cb;
$win95-ui-highlight-color: white;
$win95-ui-inner-shadow-color: #868a8e;
$win95-ui-outer-shadow-color: black;

$win95-img-up-arrow: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGklEQVR4AWMYxuA/SYphmETFhDX9x4mHGQAAcL4P8dQiMq8AAAAASUVORK5CYII=';
$win95-img-down-arrow: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAF0lEQVQY02NgoBf4jwJxSOHQhcNAOgMAWWAP8Rv2U3UAAAAASUVORK5CYII=';
$win95-img-left-arrow: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHklEQVQY02NgoBT8xyX8H5fwf1zCpOjAYwceV1EEAAO2D/HsQ4vsAAAAAElFTkSuQmCC';
$win95-img-right-arrow: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHUlEQVQY02NgIB/8xy3xH7fEf9wS/0nUQZqrKAYAK44P8ZRmzLQAAAAASUVORK5CYII=';
$win95-img-scrollbar-bg: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAFElEQVQIW2M4fPz0////GYAYyAIASnoKpV3w4kgAAAAASUVORK5CYII=';
$win95-img-scrollbar-bg-active: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAEElEQVQIW2No6+pjgAAgCwAWogM9VKrgGQAAAABJRU5ErkJggg==';
$win95-img-resizer: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAN0lEQVR4Ae3MgQUAMBRDwU5fFF05lb/CARTBw2Ulof0DxPtcwp3hNuEYnjbcEW4TjuFpwx3h9gMWGgZ2Y/PT2gAAAABJRU5ErkJggg==';

@mixin win95-well-border {
  border-top: 1px solid $win95-ui-outer-shadow-color;
  border-left: 1px solid $win95-ui-outer-shadow-color;
  border-right: 1px solid $win95-ui-main-color;
  border-bottom: 1px solid $win95-ui-main-color;
  box-shadow: -1px -1px 0 $win95-ui-inner-shadow-color, -1px 0 0 $win95-ui-inner-shadow-color, 0 -1px 0 0 $win95-ui-inner-shadow-color, 1px 0 0 $win95-ui-highlight-color, 1px 1px 0 $win95-ui-highlight-color, 0 1px 0 $win95-ui-highlight-color;
}

@mixin win95-emboss-border {
  border-top: 1px solid $win95-ui-main-color;
  border-left: 1px solid $win95-ui-main-color;
  border-right: 1px solid $win95-ui-outer-shadow-color;
  border-bottom: 1px solid $win95-ui-outer-shadow-color;
  box-shadow: inset 1px 1px 0 0 $win95-ui-highlight-color, inset -1px -1px 0 0 $win95-ui-inner-shadow-color;
}

@mixin win95-depressed-border {
  border-top: 1px solid $win95-ui-outer-shadow-color;
  border-left: 1px solid $win95-ui-outer-shadow-color;
  border-bottom: 1px solid $win95-ui-inner-shadow-color;
  border-right: 1px solid $win95-ui-inner-shadow-color;
  box-shadow: inset 1px 1px 0 0 $win95-ui-inner-shadow-color, 1px 1px 0 0 $win95-ui-outer-shadow-color, 1px 0 0 0 $win95-ui-outer-shadow-color, 0 1px 0 0 $win95-ui-outer-shadow-color;
}

body {
  background-color: $win95-ui-main-color;
}

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

.frame {
  @include win95-well-border;

  width: 400px;
  height: 150px;
  overflow: auto;
  margin-bottom: 8px;
  background-color: white;
  padding: 8px;
}

.content {
  width: 600px;
  
  p:first-child {
    margin-top: 0;
  }
  
  p:last-child {
    margin-bottom: 0;
  }
}

textarea {
  @include win95-well-border;

  width: 400px;
  height: 150px;
  padding: 8px;
  
  &:focus {
    outline: none;
  }
}

::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background-image: url($win95-img-scrollbar-bg);
  image-rendering: pixelated;

  &:active {
    background-image: url($win95-img-scrollbar-bg-active);
  }
}

::-webkit-scrollbar-thumb {
  @include win95-emboss-border;

  width: 16px;
  height: 16px;
  background-color: $win95-ui-main-color;
  z-index: 1;
}

::-webkit-scrollbar-corner {
  background-color: $win95-ui-main-color;
}

::-webkit-resizer {
  width: 16px;
  height: 16px;
  background-color: $win95-ui-main-color;
  background-image: url($win95-img-resizer);
  background-position: bottom right;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-button {
  @include win95-emboss-border;

  display: block;
  width: 16px;
  height: 16px;
  background-color: $win95-ui-main-color;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-position: center center;

  &:active {
    background-position: 2px 2px;
  }

  &:horizontal:decrement {
    background-image: url($win95-img-left-arrow);
  }

  &:horizontal:increment {
    background-image: url($win95-img-right-arrow);
  }

  &:vertical:decrement {
    background-image: url($win95-img-up-arrow);
  }

  &:vertical:increment {
    background-image: url($win95-img-down-arrow);
  }

  &:horizontal:increment:start { display: none; }
  &:horizontal:decrement:end { display: none; }
  &:vertical:increment:start { display: none; }
  &:vertical:decrement:end { display: none; }

  &:active {
    border-top: 1px solid $win95-ui-inner-shadow-color;
    border-left: 1px solid $win95-ui-inner-shadow-color;
    border-bottom: 1px solid $win95-ui-inner-shadow-color;
    border-right: 1px solid $win95-ui-inner-shadow-color;
    box-shadow: none;
  }
}

            
          
!
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