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.

            
              <body class="page page_theme_islands">

</body>
            
          
!
            
              /* 
    BEM Design 
    Dribbble: https://dribbble.com/shots/2947385-Interview-magazine-Desiigner
*/

@use postcss-simple-vars;
@use postcss-nested;

/* Базовые цвета */
$color-base: #000000;
$color-essential: #FFFFFF;
$color-project: #FF5A4C;
$color-phantom: #F6F5F3;
$color-radical: #EE0000;
$color-external: #0044BB;
$color-source: #007700;

/* Цвета текста */
$color-typo-primary: #000000; /* Базовый текст */
$color-typo-secondary: #605D5D; /* Второстепенный текст */
$color-typo-promo: #333333; /* Текст для промок */
$color-typo-inverse: #FFFFFF; /* Текст инверсии  */
$color-typo-disable: #999999; /* Текс не активный */
$color-typo-income: #04A504; /* Текст дохода/приход */
$color-typo-letter:  #FF0000; /* Текст первых букв */
$color-typo-action: #FF5A4C; /* Текст активный */

/* Цвета ссылок */
$color-link: #0044BB; /* Основная ссылка */
$color-link-hover: #CC0000; /* Ховер ссылки */
$color-link-minor: #666699; /* Второстепенная ссылка */

/* Цвета блоков */
$color-brand: #FFCC00; /* Цвет бренда */
$color-action: #FFDB4D; /* Цвет акцентов */
$color-selection: #FFEBA0; /* Цвет выделений */
$color-hover: #FFF6CB; /* Цвет наведений */
$color-inverse: #000000; /* Инверсия плашек */
$color-border: #E5E5E5; /* Границ */
$color-ghost: #F3F1ED; /* подложка  / виджет */
$color-default: #FFFFFF; /* Дефолтный цвет фона */

/* Размеры текста */
$size-typo-xs: 11px;
$size-typo-s: 13px;
$size-typo-m: 15px;
$size-typo-l: 18px;
$size-typo-xl: 20px;
$size-typo-xxl: 24px;
$size-typo-xxxl: 32px;
$size-typo-xxxxl: 48px;

/* Typo */
$space-xxxs: 2px;
$space-xxs: 4px;
$space-xs: 8px;
$space-s: 12px;
$space-m: 16px;
$space-l: 20px;
$space-xl: 24px;
$space-xxl: 32px;
$space-xxxl: 40px;
$space-xxxxl: 48px;


.text {
  line-height: 1.4em;
  &_size {
    &_xs {
      font-size: $size-typo-xs;
    }
    &_s {
      font-size: $size-typo-s;
    }
    &_m {
      font-size: $size-typo-m;
    }
    &_l {
      font-size: $size-typo-l;
    }
    &_xl {
      font-size: $size-typo-xl;
      line-height: 1.2em;
    }
    &_xxl {
      font-size: $size-typo-xxl;
      line-height: 1.2em;
    }
    &_xxxl {
      font-size: $size-typo-xxxl;
      line-height: 1.2em;
    }
    &_xxxxl {
      font-size: $size-typo-xxxxl;
      line-height: 1.2em;
    }
  }
  &_type {
    &_h1 {
      margin-bottom: 0.6em;
      font-size: 32px;
    }
    &_h2 {
      margin: 2.4em 0 1em;
    }
    &_h3 {
      margin: 2.4em 0 0em; /* margin: 2.4em 0 0em; */
    }
    &_p {
      margin: 1em 0 1.4em;
      line-height: 1.4;
    }
    &_blockquote {
      line-height: 1.4em;
      margin-left: 4em;
      padding-left: 1em;
      margin-bottom: 1.4em;
      border-left: 3px solid #0446DC;
      line-height: 1.4em;
    }
  }
  &_indent {
    &_xxxs {
      margin-bottom: 2px;
    }
    &_xxs {
      margin-bottom: 4px;
    }
    &_xs {
      margin-bottom: 8px;
    }
    &_s {
      margin-bottom: 12px;
    }
    &_m {
      margin-bottom: 16px;
    }
    &_l {
      margin-bottom: 20px;
    }
    &_xl {
      margin-bottom: 24px;
    }
    &_xxl {
      margin-bottom: 32px;
    }
    &_xxxl {
      margin-bottom: 48px;
    }
    &_xxxxl {
      margin-bottom: 96px;
    }
    
  }
  &_spacing {
    &_s {
      letter-spacing: 1px;
    }
    &_m {
      letter-spacing: 2px;
    }
  }
  &_view {
    &_primary {
      color: $color-typo-primary;
    }
    &_secondary {
      color: $color-typo-secondary;
    }
    &_promo {
      color: $color-typo-promo;
    }
    &_action {
      color: $color-typo-action;
    }
    &_disable {
      color: $color-typo-disable;
    }
    &_inverse {
      color: $color-typo-inverse;
    }
    &_link {
      color: $color-link;
      text-decoration: none;
      &:hover {
        color : $color-link-hover;
      }
    }
    &_letter {
      color: $color-typo-letter;
    }
    &_income {
      color: $color-typo-income;
    }
    &_ghost {
      color: #AAA;
    }
  }
  &_weight {
    &_bold {
      font-weight: bold;
    }
    &_light {
      font-weight: 300;
    }
    &_thin {
      font-weight: 100;
    }
  }
  &_transform {
    &_uppercase {
      text-transform: uppercase;
    }
  }
  &_align {
    &_left {
      text-align: left;
    }
    &_center {
      text-align: center;
    }
    &_right {
      text-align: right;
    }
  }
  &_style {
    &_italic {
      font-style: italic;
    }
    &_underline {
      font-style: underine;
    }
  }
  &_display {
    &_inline {
      display: inline;
    }
    &_inline-block {
      display: inline-block;
    }
  }
  &_font {
    &_serif {
      font-family: 'PT Serif', serif;
    }
    &_sanf {
      font-family: 'PT Sans', sans-serif;
    }
  }
}


.image {
  width: 100%;
}

.wrapper {
  background: $color-project;
  padding: $space-xxxxl;
  color: $color-base;
}

.container {
  width: 1134px;
  margin: 0 auto;
}

.content {
  background: $color-default;
  padding: $space-xxxxl;
  box-shadow: 8px 8px 0px 0px rgba(0,0,0,0.12);
}

.grid {
    display: grid;
    grid-gap: 32px;
		grid-template-columns: repeat(6, 146px);
    grid-template-rows: repeat(3, 225px);
    
    &__tile-1-1 {
      grid-column: 1/3;
      grid-row: 1/4;
    }
  
    &__tile-4-1 {
      grid-column: 4/7;
      grid-row: 1/4; 
    }
  
    &__tile-4-3 {
      grid-column: 4/7;
      grid-row: 2/4; 
    }
}


            
          
!
            
              modules.require(['i-bem__dom', 'BEMHTML', 'jquery'], function(BEMDOM, BEMHTML, $) {
  var html = BEMHTML.apply({
    content: [
      {
        block : 'wrapper',
        content : [
          {
            block : 'container',
            content : [
              {
                block : 'content',
                content : [
                  {
                    block : 'grid',
                    content : [
                      {
                        elem : 'tile-4-1',
                        content : [
                          {
                            block : 'text',
                            mods : { view : 'action', size : 'xl', font : 'sans', indent : 'm' },
                            content : 'Music and fashion'
                          },
                          {
                            block : 'text',
                            mods : { view : 'primary', size : 'xxxxl', weight : 'bold', indent : 'm', font : 'serif' },
                            content : 'How did you get your name, Desiigner?'
                          },
                        ]
                      },
                      {
                        elem : 'tile-1-1',
                        content : [
                          {
                            block : 'image',
                            url : 'https://raw.githubusercontent.com/bemdesign/bemdesign-assets/master/i/desiigner/desiigner2.png',
                          }
                        ]
                      },
                      {
                        elem : 'tile-4-3',
                        content : [
                                                    {
                            block : 'text',
                            mods : { view : 'primary', size : 'l', type : 'p', font : 'serif' },
                            content : 'At&nbsp;a&nbsp;time when our country seems more divided than ever, in&nbsp;comes 19-year-old emcee Desiigner with a&nbsp;track that is&nbsp;taken summer hostage with its love-it-or-hate-it appeal. Brooklyn native, Sidney Royel Selby III, turned his love for white and black BMW X6s into a&nbsp;rampant street single ("Panda") that is&nbsp;since soared into the collective consciousness with the help of&nbsp;Kanye West'
                          },
                          {
                            block : 'text',
                            mods : { view : 'primary', size : 'l', type : 'p', font : 'serif' },
                            content : [
                              {
                                block : 'text',
                                mods : { weight : 'bold', display : 'inline' },
                                content : 'MARCUS HOLMLUND: '
                              },
                              'How did you get your name, Desiigner? '
                            ]
                          },
                          {
                            block : 'text',
                            mods : { view : 'primary', size : 'l', type : 'p', font : 'serif' },
                            content : [
                              {
                                block : 'text',
                                mods : { weight : 'bold', display : 'inline' },
                                content : 'DESIIGNER: '
                              },
                              'I&nbsp;got my&nbsp;name, Desiigner, from my&nbsp;brother-in-law. I&nbsp;took what he&nbsp;said and decided to&nbsp;use&nbsp;it. He&nbsp;was like, "Yo, bro, you got to&nbsp;design your name"; He&nbsp;said&nbsp;I should put my&nbsp;real middle name on&nbsp;it, so&nbsp;it&rsquo;d be&nbsp;"Designer Royel" and&nbsp;I was running with that for a&nbsp;second. I&nbsp;thought it&nbsp;looked a&nbsp;little long and so&nbsp;did my&nbsp;sister, so&nbsp;she said&nbsp;I should take off the "Royel" and just add an&nbsp;extra "I" and the rest is&nbsp;history.'
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  });
  BEMDOM.append($('.page'), html);
});
            
          
!
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