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

              
                <!--
  Forked from:
  https://quasar.dev/vue-components/expansion-item#Example--Basic
-->
<div id="q-app">
  <!-- 1) Rotate all expansion items: -->
  <!-- <div class="q-pa-xs rotate-270"> --> <!-- Uses Quasar helper only -->
  <!-- Same using own rotation CSS with experimental translateX/Y: -->
  <div class="q-pa-xs rotate-270-degrees" style="max-width: 300px">
  <!-- max-width controls vertical height of rotated expansion items stack? -->
    <!-- <q-list bordered class="rounded-borders"> --> <!-- Removed/not needed -->
      <q-expansion-item
        expand-separator
        icon="perm_identity"
        label="Account settings"
        caption="John Doe"
        switch-toggle-side     
      >
        <!-- 2) Rotate first expansion item's content: -->
        <!-- <q-card class="q-pa-xs rotate-90"> --> <!-- Uses Quasar helper only -->
        <!-- Same using own rotation CSS with experimental translateX/Y: -->
        <q-card class="q-pa-xs rotate-90-degrees" style="max-width:180px">
        <!-- max-width controls horizontal width of rotated expansion item content? -->
          <q-card-section>
            Problem: The whole items stack shifts
            (down + left), once ANY item is opened.
            Probably Quasar allocates space based on
            non-rotated assumptions?
          </q-card-section>
        </q-card>
      </q-expansion-item>
     <!-- Code starting here is unchanged from Qusar basic expansion items sample: -->
      <q-expansion-item
        expand-separator
        icon="signal_wifi_off"
        label="Wifi settings"
      >
        <q-card>
          <q-card-section>
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem, eius reprehenderit eos corrupti
            commodi magni quaerat ex numquam, dolorum officiis modi facere maiores architecto suscipit iste
            eveniet doloribus ullam aliquid.
          </q-card-section>
        </q-card>
      </q-expansion-item>

      <q-expansion-item
        expand-separator
        icon="drafts"
        label="Drafts"
        header-class="text-purple"
      >
        <q-card>
          <q-card-section>
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem, eius reprehenderit eos corrupti
            commodi magni quaerat ex numquam, dolorum officiis modi facere maiores architecto suscipit iste
            eveniet doloribus ullam aliquid.
          </q-card-section>
        </q-card>
      </q-expansion-item>

      <q-expansion-item icon="assessment" label="Disabled" disable>
        <q-card>
          <q-card-section>
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem, eius reprehenderit eos corrupti
            commodi magni quaerat ex numquam, dolorum officiis modi facere maiores architecto suscipit iste
            eveniet doloribus ullam aliquid.
          </q-card-section>
        </q-card>
      </q-expansion-item>
    <!-- </q-list> -->
  </div>
</div>
              
            
!

CSS

              
                .rotate-90-degrees {
  transform: translateX(120px) translateY(0px) rotate(90deg)
}
.rotate-270-degrees {
  transform: translateX(50px) translateY(50px) rotate(270deg)   
}
              
            
!

JS

              
                new Vue({
  el: '#q-app'
})
              
            
!
999px

Console