0.0.6 • Published 4 years ago

@bildvitta/quasar-app-extension-responsive v0.0.6

Weekly downloads
38
License
MIT
Repository
github
Last release
4 years ago

Quasar App Extension Responsive

This repository have classes that use the basic Quasar variables to create a range of different responsive values through or projects that will use those classes. Using those, we can change the default margin and padding to another screen size margin and/or padding

Install

To install just use the command bellow in a quasar project

quasar ext add @bildvitta/responsive

The Quasar CLI will retrieve it automatically from NPM and install the extension.

Content

Breakpoint

In here, you can have different classes to deal with Margin and Padding on the project using the Quasar sizes and the Quasar breakpoints.

You can use classes to edit your component margin and padding in your project according to the breakpoint and size on Quasar variables, to use this classes you can follow the example below.

  {breakpoint}:q-{margin/padding}{side}-{breakpoint-size}
xssmmdlgxl
Breakpointfrom 0pxfrom 600pxfrom 1024pxfrom 1440pxfrom 1920px
Size4px8px16px24px48px

The spacing is due by a calc done on Quasar documentation, if you want do know more, please, see it here

This was made to change the default margin and padding from Quasar and change it according the default variables.

Examples

<!-- on xs breakpoint (from 0px up), margin-top: none | on xl breakpoint (from 1920px), margin-bottom: 4px (xs breakpoint size) -->
<div class="xs:q-mt-none xl:q-mb-xs">
  Content
</div>
<!-- on xs breakpoint (from 0px up), margin-top and margin-bottom: 16px (md size ) | on xs breakpoint (from 0px up), margin-left and margin-right: 24px (lg size)-->
<div class="xs:q-mx-md xs:q-my-lg">
  Content
</div>
<!-- on lg breakpoint (from 1440px up), padding: 0px on all sides -->
<div class="lg:q-pa-none">
  Content
</div>

Typography

On Typography, you can use the classes that we have here to deal with a few propreties for yor text, during the viewport size, like:

  • Align (center, left, right, justify)
  • Transformations (captalize, lowercase, uppercase)
  • Weight (100, 200, 300, ..., 900)
  • Others (italic, bold, strike, no-wrap)

Examples

<!-- on xs breakpoint (from 0px up), all text on this div will be align center -->
<div class="xs:text-center">
  Content
</div>
<!-- on xs breakpoint (from 0px up), the text weight will be 500 but when the screen gets on md it gets down to 400 -->
<div class="xs:text-weight-500 md:text-weight-400">
  Content
</div>

Uninstall

quasar ext remove @bildvitta/responsive
0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago