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

              
                <div id="app"><v-app>
<v-row justify='center' align='center'>
  
  <v-card max-width='320' min-width='320'>
    
  <v-app-bar flat app absolute id='toolbar'>
    <v-app-bar-nav-icon></v-app-bar-nav-icon>
    <v-toolbar-title class='pl-1 grey--text text--darken-1 d-flex'>

      Fonts
    </v-toolbar-title>
  </v-app-bar>
    
    <v-content>
      <v-btn absolute fab bottom right class='mb-10'>
        <v-icon>arrow_upward</v-icon>
      </v-btn>      
    <v-sheet tile class='overflow-y-auto overflow-x-hidden px-4' max-height="600px">

      <v-text-field id='input'
          outlined rounded clearable hide-details class='my-6'
          prepend-inner-icon='search' append-icon='refresh' placeholder="Search fonts"
      ></v-text-field>     

      <v-row dense class='flex-nowrap my-3 overflow-x-auto'>
        <v-col cols='auto' v-for='item in chipItems' :key='item'>
          <v-chip outlined>
            {{item}}
            <v-icon right color="red" class='ml-0'>arrow_drop_down</v-icon>
          </v-chip>          
        </v-col>
      </v-row>
     
      
      
      <div class='d-flex align-center mb-4'>
        <span class='caption'>
          Viewing <span class='pink--text'>959</span> of 959 font families          
        </span>
        <v-spacer></v-spacer> 
        <v-btn text class='text-capitalize body-2 px-2' color='pink'>
          <span class='black--text'>Sort by</span>
          <v-icon right>arrow_drop_down</v-icon>
        </v-btn>
      </div>
      
      
    <template v-for='(source, idx) in fontCardSource'>
      <v-divider class='grey' :key='idx'></v-divider>
      <v-card tile :elevation='0' class='pb-8' :key='source.title'>
        <v-card-title class='pt-0 px-0'>        
          <v-list two-line class='pa-0'>
            <v-list-item @click="" class='pa-0'>
              <v-list-item-content>
                <v-list-item-title>{{source.title}}</v-list-item-title>
                <v-list-item-subtitle class='pt-2'>{{source.subTitle}}</v-list-item-subtitle>
              </v-list-item-content>
              <v-list-item-icon>
                <v-icon color='pink'>mdi-plus-circle</v-icon>
              </v-list-item-icon>
            </v-list-item>  
          </v-list>
        </v-card-title>
        <v-card-text 
            :style='{fontSize: "40px", lineHeight: "45px", fontFamily: source.fontFamily}'
            class='black--text pa-0'
        >{{source.description}}
        </v-card-text>
      </v-card>            
    </template>  
  
    </v-sheet>      
    </v-content>
   

    
  </v-card>
  


</v-row>  
</v-app></div>
              
            
!

CSS

              
                body, html {
  overflow: hidden;  
}

#toolbar {
  border-bottom: 1px solid rgba(0,0,0,.12);  
}
              
            
!

JS

              
                
new Vue({
  el: '#app',
  vuetify: new Vuetify(),
  created() {
      this.chipItems = ['Categories', 'Language', 'Font Properties'];
      this.URL_LOGO = 'https://www.gstatic.com/images/branding/googlelogo/1x/googlelogo_dark_color_74x24dp.png';
      
      this.fontCardSource = [
        {
          title: 'Roboto', 
          subTitle: 'Christian Robertson (12 styles)', 
          description: 'All their equipment and instruments are alive.',
          fontFamily: "Roboto"
        },
        {
          title: 'Noto Sans TC', 
          subTitle: 'Google  (6 styles)', 
          description: '他們所有的設備和儀器彷彿都是有生命的。',
          fontFamily: "Noto Sans TC"          
        },
        {
          title: 'Mansalva', 
          subTitle: 'Carolina Short (1 styles)', 
          description: 'A red flare silhouetted the jagged edge of a wing.',
          fontFamily: "'Mansalva', cursive"          
        }            
      ]    
  }
})
              
            
!
999px

Console