quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
74 lines (66 loc) • 1.48 kB
text/stylus
:root
for $name, $size in $sizes
--q-size-{$name}: $size
.fit
width: 100% !important
height: 100% !important
.full-height
height: 100% !important
.full-width
width: 100% !important
margin-left: 0 !important
margin-right: 0 !important
.window-height
margin-top: 0 !important
margin-bottom: 0 !important
height: 100vh !important
.window-width
margin-left: 0 !important
margin-right: 0 !important
width: 100vw !important
.block
display: block !important
.inline-block
display: inline-block !important
for $space, $value in $spaces
.q-pa-{$space}
padding: $value.y $value.x
.q-pl-{$space}
padding-left: $value.x
.q-pr-{$space}
padding-right: $value.x
.q-pt-{$space}
padding-top: $value.y
.q-pb-{$space}
padding-bottom: $value.y
.q-px-{$space}
padding-left: $value.x
padding-right: $value.x
.q-py-{$space}
@extends .q-pt-{$space}, .q-pb-{$space}
.q-ma-{$space}
margin: $value.y $value.x
.q-ml-{$space}
margin-left: $value.x
.q-mr-{$space}
margin-right: $value.x
.q-mt-{$space}
margin-top: $value.y
.q-mb-{$space}
margin-bottom: $value.y
.q-mx-{$space}
margin-left: $value.x
margin-right: $value.x
.q-my-{$space}
@extends .q-mt-{$space}, .q-mb-{$space}
.q-mt-auto, .q-my-auto
margin-top: auto
.q-ml-auto
margin-left: auto
.q-mb-auto, .q-my-auto
margin-bottom: auto
.q-mr-auto
margin-right: auto
.q-mx-auto
margin-left: auto
margin-right: auto