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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


 .live-text-header Live
 .live-text from the conference
   a(href='#') View Pictures
   a(href='#') Watch Videos
   a(href='#') Read Articles


                // variables
@blue: #2EE1F6;
@pink: #F62ED2;
@periwinkle: #6A9FE6;
@black: #000000;

.transition(@transition; @prefixes: webkit, moz, ms, o; @index: length(@prefixes)) when (@index > 0) {
    .transition(@transition; @prefixes; (@index - 1));
    @prefix  : extract(@prefixes, @index);
	transition: ~"-@{prefix}-@{transition}";
  & when ( @index = length(@prefixes) ) {
        transition: ~"@{transition}";

.gradient(@type; @colors; @dir: left; @prefixes: webkit, moz, ms, o; @index: length(@prefixes)) when (@index > 0) {
    .gradient(@type; @colors; @dir; @prefixes; (@index - 1));
    @prefix  : extract(@prefixes, @index);
    @dir-old : left;
    background-image: ~"-@{prefix}-@{type}-gradient(@{dir-old}, @{colors})";
  & when ( @index = length(@prefixes) ) {
        background-image: ~"@{type}-gradient(@{dir}, @{colors})";

// styles
body {
  color: @black;
  font-family: 'Montserrat';
  margin: 0;
  text-align: center;
  text-transform: uppercase;

.hero {
  .gradient(linear; @blue, @pink); // last resort fallback
  background-image: url('');	// image with gradient as fallback
	background-repeat: no-repeat;
	background-position: 75% center;
  background-size: cover;
  padding: 85px 15px 90px 15px;
  // feature query
  @supports (background-blend-mode: multiply) {
    background-image: linear-gradient(to right, @blue, @pink 80%), url(; /* black/white image */
     background-blend-mode: multiply;

.live-text-header {
  font-size: 115px;
  line-height: 110px;

.live-text {
  font-size: 26px;
  letter-spacing: 1px;

.btn-group {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  .btn {
    background: @black;
    margin: 0 12px;
    &:hover {
      a {
        color: @pink;
  a {
    color: @periwinkle;
    display: block;
    font-family: 'News Cycle';
    font-size: 18px;
    font-weight: 700;
    padding: 15px 40px;
    text-decoration: none;
    .transition(color 0.5s ease);