Skip to main content

Height - sixths

This provides styles for heights using sixths.

The following sizes are available:

  • h-1-6
  • h-2-6
  • h-3-6
  • h-4-6
  • h-5-6
  • h-6-6

Each height size has a class to go with each of the media query viewport sizes. For example:

h-1-6-3xs
h-1-6-2xs
h-1-6-xs
h-1-6-sm
h-1-6-md
h-1-6-lg
h-1-6-xl
h-1-6-2xl
h-1-6-3xl
h-1-6-4xl
h-1-6-5xl

How to import into your CSS

Import this into your CSS with:

@import 'cacao-css/dist/height/height-6.css';

Imports are available for all media query viewport sizes.

@import 'cacao-css/dist/height/3xs/height-6.css';
@import 'cacao-css/dist/height/2xs/height-6.css';
@import 'cacao-css/dist/height/xs/height-6.css';
@import 'cacao-css/dist/height/sm/height-6.css';
@import 'cacao-css/dist/height/md/height-6.css';
@import 'cacao-css/dist/height/lg/height-6.css';
@import 'cacao-css/dist/height/xl/height-6.css';
@import 'cacao-css/dist/height/2xl/height-6.css';
@import 'cacao-css/dist/height/3xl/height-6.css';
@import 'cacao-css/dist/height/4xl/height-6.css';
@import 'cacao-css/dist/height/5xl/height-6.css';

See Import Cacao CSS for more information.

Source CSS

Default styles

height/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

.h-1-6 {
height: calc(100% / 6);
}

.h-2-6 {
height: calc(100% / 6 * 2);
}

.h-3-6 {
height: 50%;
}

.h-4-6 {
height: calc(100% / 6 * 4);
}

.h-5-6 {
height: calc(100% / 6 * 5);
}

.h-6-6 {
height: 100%;
}

3xs styles

height/3xs/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-3xs) {
.h-1-6-3xs {
height: calc(100% / 6);
}

.h-2-6-3xs {
height: calc(100% / 6 * 2);
}

.h-3-6-3xs {
height: 50%;
}

.h-4-6-3xs {
height: calc(100% / 6 * 4);
}

.h-5-6-3xs {
height: calc(100% / 6 * 5);
}

.h-6-6-3xs {
height: 100%;
}
}

2xs styles

height/2xs/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-2xs) {
.h-1-6-2xs {
height: calc(100% / 6);
}

.h-2-6-2xs {
height: calc(100% / 6 * 2);
}

.h-3-6-2xs {
height: 50%;
}

.h-4-6-2xs {
height: calc(100% / 6 * 4);
}

.h-5-6-2xs {
height: calc(100% / 6 * 5);
}

.h-6-6-2xs {
height: 100%;
}
}

xs styles

height/xs/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-xs) {
.h-1-6-xs {
height: calc(100% / 6);
}

.h-2-6-xs {
height: calc(100% / 6 * 2);
}

.h-3-6-xs {
height: 50%;
}

.h-4-6-xs {
height: calc(100% / 6 * 4);
}

.h-5-6-xs {
height: calc(100% / 6 * 5);
}

.h-6-6-xs {
height: 100%;
}
}

sm styles

height/sm/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-sm) {
.h-1-6-sm {
height: calc(100% / 6);
}

.h-2-6-sm {
height: calc(100% / 6 * 2);
}

.h-3-6-sm {
height: 50%;
}

.h-4-6-sm {
height: calc(100% / 6 * 4);
}

.h-5-6-sm {
height: calc(100% / 6 * 5);
}

.h-6-6-sm {
height: 100%;
}
}

md styles

height/md/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-md) {
.h-1-6-md {
height: calc(100% / 6);
}

.h-2-6-md {
height: calc(100% / 6 * 2);
}

.h-3-6-md {
height: 50%;
}

.h-4-6-md {
height: calc(100% / 6 * 4);
}

.h-5-6-md {
height: calc(100% / 6 * 5);
}

.h-6-6-md {
height: 100%;
}
}

lg styles

height/lg/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-lg) {
.h-1-6-lg {
height: calc(100% / 6);
}

.h-2-6-lg {
height: calc(100% / 6 * 2);
}

.h-3-6-lg {
height: 50%;
}

.h-4-6-lg {
height: calc(100% / 6 * 4);
}

.h-5-6-lg {
height: calc(100% / 6 * 5);
}

.h-6-6-lg {
height: 100%;
}
}

xl styles

height/xl/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-xl) {
.h-1-6-xl {
height: calc(100% / 6);
}

.h-2-6-xl {
height: calc(100% / 6 * 2);
}

.h-3-6-xl {
height: 50%;
}

.h-4-6-xl {
height: calc(100% / 6 * 4);
}

.h-5-6-xl {
height: calc(100% / 6 * 5);
}

.h-6-6-xl {
height: 100%;
}
}

2xl styles

height/2xl/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-2xl) {
.h-1-6-2xl {
height: calc(100% / 6);
}

.h-2-6-2xl {
height: calc(100% / 6 * 2);
}

.h-3-6-2xl {
height: 50%;
}

.h-4-6-2xl {
height: calc(100% / 6 * 4);
}

.h-5-6-2xl {
height: calc(100% / 6 * 5);
}

.h-6-6-2xl {
height: 100%;
}
}

3xl styles

height/3xl/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-3xl) {
.h-1-6-3xl {
height: calc(100% / 6);
}

.h-2-6-3xl {
height: calc(100% / 6 * 2);
}

.h-3-6-3xl {
height: 50%;
}

.h-4-6-3xl {
height: calc(100% / 6 * 4);
}

.h-5-6-3xl {
height: calc(100% / 6 * 5);
}

.h-6-6-3xl {
height: 100%;
}
}

4xl styles

height/4xl/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-4xl) {
.h-1-6-4xl {
height: calc(100% / 6);
}

.h-2-6-4xl {
height: calc(100% / 6 * 2);
}

.h-3-6-4xl {
height: 50%;
}

.h-4-6-4xl {
height: calc(100% / 6 * 4);
}

.h-5-6-4xl {
height: calc(100% / 6 * 5);
}

.h-6-6-4xl {
height: 100%;
}
}

5xl styles

height/5xl/height-6.css
/* =========================================================================== *\
Width 6's
\* =========================================================================== */

@media (--m-5xl) {
.h-1-6-5xl {
height: calc(100% / 6);
}

.h-2-6-5xl {
height: calc(100% / 6 * 2);
}

.h-3-6-5xl {
height: 50%;
}

.h-4-6-5xl {
height: calc(100% / 6 * 4);
}

.h-5-6-5xl {
height: calc(100% / 6 * 5);
}

.h-6-6-5xl {
height: 100%;
}
}