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

              
                #app.container
  .menu.left.large.flat.medium-device.large-device
    .large-space
    .large-space
    a(@click="redirect('/youtube')", :class="{ active: url == '/youtube' }")
      i home
      div Home
    a(@click="redirect('/youtube/whats-hot')", :class="{ active: url == '/youtube/whats-hot' }")
      i whatshot
      div What's hot
    a(@click="redirect('/youtube/subscriptions')", :class="{ active: url == '/youtube/subscriptions' }")
      i subscriptions
      div Subscript
    a(@click="redirect('/youtube/library')", :class="{ active: url == '/youtube/library' }")
      i video_library
      div Library
    a(@click="updateTheme()")
      i brightness_medium
      div Theme

  .menu.bottom.border.small-device
    a(@click="redirect('/youtube')", :class="{ active: url == '/youtube' }")
      i home
      div Home
    a(@click="redirect('/youtube/explore')", :class="{ active: url == '/youtube/explore' }")
      i explore
      div Explore
    a.button.circle.small.border(data-ui="#modal-add")
      i add
    a(@click="redirect('/youtube/library')", :class="{ active: url == '/youtube/library' }")
      i video_library
      div Library
    a(@click="updateTheme()")
      i brightness_medium
      div Theme

  .menu.top.border.large
    .row.no-wrap.middle-align
      .col
        nav.padding
          button.none.color-2-text.medium-device.large-device(data-ui="#modal-expanded")
            i menu
          a
            img(v-show="theme == 'is-youtube-light'", src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/youtube-light.png")
            img(v-show="theme == 'is-youtube-dark'", src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/youtube-dark.png")
      .col
        .field.round.sufix.prefix.small.no-margin.medium-device.large-device
          i.front search
          input.white.black-text(type="text")
          i.front mic
      .col
        nav.right-align
          button.none.color-2-text.small-device(data-ui="#modal-search")
            i search
          button.none.color-2-text.medium-device.large-device(data-ui="#dropdown-add")
            i video_call
            #dropdown-add.dropdown.left.no-wrap(data-ui="#dropdown-add")
              a.row.no-wrap
                .col.min
                  i upload
                .col Send a video
              a.row.no-wrap
                .col.min
                  i sensors
                .col Broadcast live
          button.none.color-2-text.medium-device.large-device(data-ui="#dropdown-apps")
            i apps
            #dropdown-apps.dropdown.left.no-wrap(data-ui="#dropdown-apps")
              a.row.no-wrap
                .col.min
                  img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/youtube.png")
                .col Youtube TV
              .divider
              a.row.no-wrap
                .col.min
                  img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/youtube.png")
                .col Youtube Music
              a.row.no-wrap
                .col.min
                  img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/youtube.png")
                .col Youtube Kids
          button.none.color-2-text(data-ui="#modal-notifications")
            i notifications
          a(href="https://beercss.com", target="_blank")
            img.small.circle(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/favicon.png")

  #modal-notifications.modal.right
    .row.no-wrap.middle-align
      .col
        h5.no-margin Notifications
      .col.min
        a(data-ui="#modal-notifications")
          i close
    p No new notifications here

  #modal-expanded.modal.left.small
    nav
      a(data-ui="#modal-expanded")
        i menu
      a
        img(v-show="theme == 'is-youtube-light'", src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/youtube-light.png")
        img(v-show="theme == 'is-youtube-dark'", src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/youtube-dark.png")
    .medium-space
    a.row.no-wrap(data-ui="#modal-expanded", @click="redirect('/youtube')")
      .col.min
        i home
      .col Home
    a.row.no-wrap(data-ui="#modal-expanded", @click="redirect('/youtube/whats-hot')")
      .col.min
        i whatshot
      .col What's hot
    a.row.no-wrap(data-ui="#modal-expanded", @click="redirect('/youtube/subscriptions')")
      .col.min
        i subscriptions
      .col Subscript
    a.row.no-wrap(data-ui="#modal-expanded", @click="redirect('/youtube/library')")
      .col.min
        i video_library
      .col Library
    a.row.no-wrap(@click="updateTheme()")
      .col.min
        i brightness_medium
      .col Theme
    .large-divider
    a.row.no-wrap(data-ui="#modal-expanded")
      .col.min
        i history
      .col History
    a.row.no-wrap(data-ui="#modal-expanded")
      .col.min
        i slideshow
      .col Your videos
    a.row.no-wrap(data-ui="#modal-expanded")
      .col.min
        i playlist_play
      .col Your albuns
    a.row.no-wrap(data-ui="#modal-expanded")
      .col.min
        i watch_later
      .col Watch later

  #modal-add.modal.bottom.round
    .row.no-wrap.middle-align
      .col
        h5.no-margin New
      .col.right-align
        a(data-ui="#modal-add")
          i close
    a.row.no-wrap
      .col.min
        i upload
      .col
        span Send a video
    a.row.no-wrap
      .col.min
        i sensors
      .col
        span Broadcast live

  #modal-search.modal.top.transparent.flat
    .field.round.sufix.prefix.small.no-margin
      i.front search
      input.white.black-text(type="text")
      i.front mic

  .page.right.active(v-show="url == '/youtube'")
    nav.scroll
      a.chip.active.wave The best of 2020
      a.chip.wave Documentaries
      a.chip.wave Rock and roll
      a.chip.wave Others
    .space
    .row
      .col.s12.m6.l3(v-for="(item, i) in itens")
        .card.no-padding.flat.transparent
          a.wave
            img.responsive(:src="item.image")
            .absolute.right.bottom.small-margin.black.white-text.small-text &nbsp;00:00:00&nbsp;
          .space
          .row.no-wrap.middle-align
            .col.min
              img.small.circle(:src="item.image")
            .col.truncate
              .bold {{ item.title }}
              .grey-text 10k views
            .col.min
              button.none.grey-text(:data-ui="'#dropdown-' + i")
                i more_vert
                .dropdown.left.no-wrap(
                  :id="'dropdown-' + i",
                  :data-ui="'#dropdown-' + i"
                )
                  a Save to library
                  a Watch later
                  a Like it

    .large-divider
    h5 What's hot
    .row.no-wrap.scroll
      .col(v-for="item in whatsHot")
        .card.no-padding.border.transparent.small-width
          a.wave
            img.responsive(:src="item.image")
            .absolute.right.bottom.small-margin.black.white-text.small-text &nbsp;00:00:00&nbsp;
          .padding
            .row.no-wrap.middle-align
              .col.truncate
                .bold {{ item.title }}
                .grey-text 10k views
              .col.min
                a.grey-text
                  i thumb_up

    .large-divider
    h5 Your videos
    .row.no-wrap.scroll
      .col(v-for="item in yourVideos")
        .card.no-padding.border.transparent.small-width
          a.wave
            img.responsive(:src="item.image")
            .absolute.right.bottom.small-margin.black.white-text.small-text &nbsp;00:00:00&nbsp;
          .padding
            .row.no-wrap.middle-align
              .col.truncate
                .bold {{ item.title }}
                .grey-text 10k views
              .col.min
                a.grey-text
                  i thumb_up
  
  .page.right.active(v-show="url != '/youtube'")
    .row
      .col.s12(v-for="item in itens")
        .card.no-padding.flat.transparent
          .row
            .col.s6.m4.l3
              a.wave
                img.empty-state(:src="item.image")
                .absolute.right.bottom.small-margin.black.white-text.small-text &nbsp;00:00:00&nbsp;
            .col.s6.m8.l9
              h5.no-margin {{ item.title }}
              .grey-text 10k views
              .space
              .grey-text Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget ligula eu lectus lobortis condimentum. Aliquam nonummy auctor massa. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
  
              
            
!

CSS

              
                .is-youtube-light {
  --color-1: #f44336;
  --color-1a: #f4433680;
  --color-1b: #f4433600;
  --color-2: #000000;
  --color-2a: #00000010;
  --color-2b: #00000020;
  --color-3: #e91e63;
  --color-4: #ffffff;
  --color-4a: rgba(255, 255, 255, 0.9);
  --color-5: #f5f5f5;
}
.is-youtube-dark {
  --color-1: #ef5350;
  --color-1a: #ef535080;
  --color-1b: #ef535000;
  --color-2: #ffffff;
  --color-2a: #ffffff10;
  --color-2b: #ffffff20;
  --color-3: #ff9800;
  --color-4: #263238;
  --color-4a: rgba(55, 71, 79, 0.9);
  --color-5: #212121;
}
              
            
!

JS

              
                let app = new Vue({
  el: "#app",
  data() {
    return {
      url: "/youtube",
      theme: null,
      logo: null,
      itens: [
        { title: "Alok 01/2021", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/alok-001.jpg" },
        { title: "Alok 01/2020", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/alok-002.jpg" },
        { title: "Best of 2021", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/vintage-001.jpg" },
        { title: "Best of 2020", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/vintage-002.jpg" },
        { title: "Radio online", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/radio-001.jpg" },
        { title: "Alok, Zebra, Iro - Ocean", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/ocean-001.jpg" },
        { title: "Alok 01/2021", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/alok-001.jpg" },
        { title: "Alok 01/2020", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/alok-002.jpg" },
      ],
      whatsHot: [
        { title: "Best of 2021", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/vintage-001.jpg" },
        { title: "Best of 2020", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/vintage-002.jpg" },
        { title: "Radio online", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/radio-001.jpg" },
        { title: "Alok, Zebra, Iro - Ocean", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/ocean-001.jpg" },
        { title: "Alok 01/2021", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/alok-001.jpg" },
        { title: "Alok 01/2020", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/alok-002.jpg" },
        { title: "Best of 2021", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/vintage-001.jpg" },
        { title: "Best of 2020", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/vintage-002.jpg" },
      ],
      yourVideos: [
        { title: "Radio online", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/radio-001.jpg" },
        { title: "Alok, Zebra, Iro - Ocean", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/ocean-001.jpg" },
        { title: "Alok 01/2021", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/alok-001.jpg" },
        { title: "Alok 01/2020", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/alok-002.jpg" },
        { title: "Best of 2021", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/vintage-001.jpg" },
        { title: "Best of 2020", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/vintage-002.jpg" },
        { title: "Radio online", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/radio-001.jpg" },
        { title: "Alok, Zebra, Iro - Ocean", image: "https://raw.githack.com/beercss/beercss/v1.0.0/dist/ocean-001.jpg" },
      ]
    }
  },
  mounted() {
    this.updateTheme();
    ui();
  },
  methods: {
    updateTheme() {
      if (this.theme == "is-youtube-light") {
        this.theme = "is-youtube-dark";
        this.logo = "https://raw.githack.com/beercss/beercss/v1.0.0/dist/youtube-dark.png";
      } else {
        this.theme = "is-youtube-light";
        this.logo = "https://raw.githack.com/beercss/beercss/v1.0.0/dist/youtube-light.png";
      }
  
      document.body.className = this.theme;
    },
    redirect(url) {
      document.body.scrollTop = 0;
      this.url = url;
    },
  },
});
              
            
!
999px

Console