0.7.5 • Published 6 years ago

aspect-css v0.7.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

aspect

A series of CSS aspect ratios

Basic Classes

<div class="aspect--double"></div>
Classnameratio
aspect--quadruple4 : 1
aspect--triple3 : 1
aspect--eight-thirds8 : 3
aspect--five-halves5 : 2
aspect--double2 : 1
aspect--fifteen-eighths15 : 8
aspect--sixteen-ninths16 : 9
aspect--five-thirds5 : 3
aspect--golden-portrait1.618 : 1
aspect--eight-fifths8 : 5
aspect--three-halves3 : 2
aspect--four-thirds4 : 3
aspect--five-fourths5 : 4
aspect--six-fifths6 : 5
aspect--nine-eighths9 : 8
aspect--sixteen-fifteenths16 : 15
aspect--square1 : 1
aspect--fifteen-sixteenths15 : 16
aspect--eight-ninths8 : 9
aspect--five-sixths5 : 6
aspect--four-fifths4 : 5
aspect--three-fourths3 : 4
aspect--two-thirds2 : 3
aspect--five-eighths5 : 8
aspect--golden-landscape1 : 1.618
aspect--three-fifths3 : 5
aspect--nine-sixteenths9 : 16
aspect--eight-fifteenths8 : 15
aspect--one-half1 : 2
aspect--two-fifths2 : 5
aspect--three-eighths3 : 8
aspect--one-third1 : 3
aspect--one-fourth1 : 4

Responsive Classes

This follows the Bootstrap v4 Breakpoints but can be overridden

ClassnameDefault Breakpoint
xs0
sm576px
md768px
lg992px
xl1200px
<div class="aspect--two-thirds aspect--md-double"></div>
0.7.5

6 years ago

0.6.1

6 years ago

0.7.4

6 years ago

0.7.3

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.2

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago