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.max
  .menu.left.no-space.border.large.grey-text.medium-device.large-device
    .large-space
    .medium-space
    a.button.white.circle.large(data-ui="#modal-add")
      img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/add.png")
    .space
    a(@click="redirect('/gmail')", :class="{ active: this.url == '/gmail' }")
      i.outlined inbox
      .tooltip.right Inbox
    a(@click="redirect('/gmail/snoozed')", :class="{ active: this.url == '/gmail/snoozed' }")
      i.outlined watch_later
      .tooltip.right Snoozed
    a(@click="redirect('/gmail/important')", :class="{ active: this.url == '/gmail/important' }")
      i.outlined label_important
      .tooltip.right Important
    a(@click="redirect('/gmail/sent')", :class="{ active: this.url == '/gmail/sent' }")
      i.outlined send
      .tooltip.right Sent
    a(@click="redirect('/gmail/drafts')", :class="{ active: this.url == '/gmail/drafts' }")
      i.outlined insert_drive_file
      .tooltip.right Drafts
    a(@click="redirect('/gmail/spam')", :class="{ active: this.url == '/gmail/spam' }")
      i.outlined error_outline
      .tooltip.right Spam
    a(@click="updateTheme()")
      i.outlined brightness_medium
      .tooltip.right theme

  .menu.right.border.no-space.medium-device.large-device
    .large-space
    .medium-space
    a.wave.dark.small-margin
      img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/calendar.png")
      span.tooltip.left Calendar
    a.wave.dark.small-margin
      img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/keep.png")
      span.tooltip.left Keep
    a.wave.dark.small-margin
      img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/tasks.png")
      span.tooltip.left Tasks
    a.wave.dark.small-margin
      img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/contacts.png")
      span.tooltip.left Contacts

  .menu.top.border.large.grey-text
    .row.no-wrap.middle-align
      .col
        nav.padding
          button.none.grey-text(data-ui="#dropdown-menu")
            i.outlined menu
            #dropdown-menu.dropdown.no-wrap(data-ui="#dropdown-menu")
              a.row.no-wrap(@click="redirect('/gmail')")
                .col.min
                  i.outlined inbox
                .col Inbox
              a.row.no-wrap(@click="redirect('/gmail/snoozed')")
                .col.min
                  i.outlined watch_later
                .col Snoozed
              a.row.no-wrap(@click="redirect('/gmail/important')")
                .col.min
                  i.outlined label_important
                .col Important
              a.row.no-wrap(@click="redirect('/gmail/sent')")
                .col.min
                  i.outlined send
                .col Sent
              a.row.no-wrap(@click="redirect('/gmail/drafts')")
                .col.min
                  i.outlined insert_drive_file
                .col Drafts
              a.row.no-wrap(@click="redirect('/gmail/spam')")
                .col.min
                  i.outlined error_outline
                .col Spam
              a.row.no-wrap(@click="updateTheme()")
                .col.min
                  i.outlined brightness_medium
                .col Theme

          a
            img(v-show="theme == 'is-gmail-light'", src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/gmail-light.png")
            img(v-show="theme == 'is-gmail-dark'", src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/gmail-dark.png")
      .col
        .field.round.fill.flat.sufix.prefix.small.no-margin.medium-device.large-device
          i.front search
          input(type="text", data-ui="#dropdown-search")
          i.front mic
      .col
        nav.right-align
          button.none.grey-text.small-device(data-ui="#modal-search")
            i.outlined search
          button.none.grey-text.medium-device.large-device(data-ui="#dropdown-settings")
            i.outlined settings
            #dropdown-settings.dropdown.left.no-wrap(data-ui="#dropdown-settings")
              a
                div Account
                label Change account
              a
                div Appearance
                label Change display settings
          button.none.grey-text.medium-device.large-device(data-ui="#dropdown-apps")
            i.outlined apps
            #dropdown-apps.dropdown.left.small-width(data-ui="#dropdown-apps")
              .large-padding
                .row
                  a.wave.col.s6.center-align.middle-align
                    div
                      img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/calendar.png")
                      p Calendar
                  a.wave.col.s6.center-align.middle-align
                    div
                      img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/keep.png")
                      p Keep
                  a.wave.col.s6.center-align.middle-align
                    div
                      img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/tasks.png")
                      p Tasks
                  a.wave.col.s6.center-align.middle-align
                    div
                      img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/contacts.png")
                      p Contacts
          a(href="https://beercss.com", target="_blank")
            img.small.circle(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/favicon.png")

  .menu.bottom.large.border.small-device.grey-text
    a(@click="redirect('/gmail')", :class="{ active: this.url == '/gmail' }")
      i.outlined inbox
      div Inbox
    a(@click="redirect('/gmail/sent')", :class="{ active: this.url == '/gmail/sent' }")
      i.outlined send
      div Sent
    a.button.white.circle.large(data-ui="#modal-add-small")
      img(src="https://raw.githack.com/beercss/beercss/v1.1.0/dist/add.png")
    a(@click="redirect('/gmail/drafts')", :class="{ active: this.url == '/gmail/drafts' }")
      i.outlined insert_drive_file
      div Drafts
    a(@click="updateTheme()")
      i.outlined brightness_medium
      div Theme

  #modal-add.modal.round
    .row.no-wrap
      .col
        nav
          a(data-ui="#modal-add")
            i.outlined arrow_back
          a
            h5.no-margin New message
      .col
        nav.right-align
          a(data-ui="#modal-add")
            i.outlined attach_file
          a(data-ui="#modal-add")
            i.outlined send
    .row
      .col.s12
        .field.label.border
          input(type="text")
          label From
      .col.s12
        .field.label.border
          input(type="text")
          label To
      .col.s12
        .field.label.border
          input(type="text")
          label Subject
      .col.s12
        .field.label.border.textarea
          textarea
          label Message

  #modal-add-small.modal.round.bottom
    .row.no-wrap
      .col
        nav
          a(data-ui="#modal-add-small")
            i.outlined arrow_back
          a
            h5.no-margin New message
      .col
        nav.right-align
          a(data-ui="#modal-add-small")
            i.outlined attach_file
          a(data-ui="#modal-add-small")
            i.outlined send
    .row
      .col.s12
        .field.label.border
          input(type="text")
          label From
      .col.s12
        .field.label.border
          input(type="text")
          label To
      .col.s12
        .field.label.border
          input(type="text")
          label Subject
      .col.s12
        .field.label.border.textarea
          textarea
          label Message

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

  .page.right.active(v-show="url == '/gmail' || url == '/gmail/sent' || url == '/gmail/drafts'")
    .row.no-wrap.medium-device.large-device
      .col
        nav.grey-text
          label.checkbox
            input(type="checkbox", v-model="check")
            span
          a
            i refresh
          a
            i more_vert
      .col
        nav.grey-text.right-align
          label from 1 to {{ emails.length }}
          a
            i arrow_back
          a
            i arrow_forward
    .space.medium-device.large-device
    a.row.no-wrap.middle-align.divider(v-for="email in emails")
      .col.min
        nav.grey-text
          label.checkbox.medium-device.large-device
            input(type="checkbox", v-model="email.check")
            span
          button.none.no-wave.medium-device.large-device(@click="star(email)")
            i.grey-text(v-show="!email.star") star_outline
            i.yellow-text(v-show="email.star") star
          button.small.flat.circle.small-device A
      .col.truncate
        b From -&nbsp;
        b Subject -&nbsp;
        span Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      .col.min 
        label 12:03
  
  .page.right.active(v-show="url == '/gmail/snoozed' || url == '/gmail/important' || url == '/gmail/spam'")
    h5.center-align No new messages
              
            
!

CSS

              
                .is-gmail-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-gmail-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;
}
.container {
  display: none;
}
              
            
!

JS

              
                let app = new Vue({
  el: "#app",
  data() {
    return {
      emails: [
        { check: false, star: false },
        { check: false, star: false },
        { check: false, star: false },
        { check: false, star: false },
        { check: false, star: false },
      ],
      check: false,
	    url: '/gmail',
	    theme: '',
    }
  },
  watch: {
    check() {
      this.checkAll();
    },
  },
  mounted() {
    this.updateTheme();
    ui();
    document.querySelector(".container").style.display = "block";
  },
  methods: {
    updateTheme() {
      if (this.theme == "is-gmail-light") {
        this.theme = "is-gmail-dark";
      } else {
        this.theme = "is-gmail-light";
      }

      document.body.className = this.theme;
    },
    checkAll() {
      for (var i = 0; i < this.emails.length; i++)
        this.emails[i].check = this.check;
    },
    check(email) {
      email.check = !email.check;
    },
    star(email) {
      email.star = !email.star;
    },
    redirect(url) {
      document.body.scrollTop = 0;
      this.url = url;
    }
  },
});
              
            
!
999px

Console