Skip to main content

Height - tenths

This provides styles for heights using tenths.

The following sizes are available:

  • h-1-10
  • h-2-10
  • h-3-10
  • h-4-10
  • h-5-10
  • h-6-10
  • h-7-10
  • h-8-10
  • h-9-10
  • h-10-10

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

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

How to import into your CSS

Import this into your CSS with:

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

Imports are available for all media query viewport sizes.

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

See Import Cacao CSS for more information.

Source CSS

Default styles

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

.h-1-10 {
height: calc(10%);
}

.h-2-10 {
height: calc(20%);
}

.h-3-10 {
height: calc(30%);
}

.h-4-10 {
height: calc(40%);
}

.h-5-10 {
height: 50%;
}

.h-6-10 {
height: calc(60%);
}

.h-7-10 {
height: calc(70%);
}

.h-8-10 {
height: calc(80%);
}

.h-9-10 {
height: calc(90%);
}

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

3xs styles

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

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

.h-2-10-3xs {
height: calc(20%);
}

.h-3-10-3xs {
height: calc(30%);
}

.h-4-10-3xs {
height: calc(40%);
}

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

.h-6-10-3xs {
height: calc(60%);
}

.h-7-10-3xs {
height: calc(70%);
}

.h-8-10-3xs {
height: calc(80%);
}

.h-9-10-3xs {
height: calc(90%);
}

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

2xs styles

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

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

.h-2-10-2xs {
height: calc(20%);
}

.h-3-10-2xs {
height: calc(30%);
}

.h-4-10-2xs {
height: calc(40%);
}

.h-5-10-2xs {
height: 50%;
}

.h-6-10-2xs {
height: calc(60%);
}

.h-7-10-2xs {
height: calc(70%);
}

.h-8-10-2xs {
height: calc(80%);
}

.h-9-10-2xs {
height: calc(90%);
}

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

xs styles

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

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

.h-2-10-xs {
height: calc(20%);
}

.h-3-10-xs {
height: calc(30%);
}

.h-4-10-xs {
height: calc(40%);
}

.h-5-10-xs {
height: 50%;
}

.h-6-10-xs {
height: calc(60%);
}

.h-7-10-xs {
height: calc(70%);
}

.h-8-10-xs {
height: calc(80%);
}

.h-9-10-xs {
height: calc(90%);
}

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

sm styles

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

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

.h-2-10-sm {
height: calc(20%);
}

.h-3-10-sm {
height: calc(30%);
}

.h-4-10-sm {
height: calc(40%);
}

.h-5-10-sm {
height: 50%;
}

.h-6-10-sm {
height: calc(60%);
}

.h-7-10-sm {
height: calc(70%);
}

.h-8-10-sm {
height: calc(80%);
}

.h-9-10-sm {
height: calc(90%);
}

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

md styles

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

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

.h-2-10-md {
height: calc(20%);
}

.h-3-10-md {
height: calc(30%);
}

.h-4-10-md {
height: calc(40%);
}

.h-5-10-md {
height: 50%;
}

.h-6-10-md {
height: calc(60%);
}

.h-7-10-md {
height: calc(70%);
}

.h-8-10-md {
height: calc(80%);
}

.h-9-10-md {
height: calc(90%);
}

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

lg styles

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

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

.h-2-10-lg {
height: calc(20%);
}

.h-3-10-lg {
height: calc(30%);
}

.h-4-10-lg {
height: calc(40%);
}

.h-5-10-lg {
height: 50%;
}

.h-6-10-lg {
height: calc(60%);
}

.h-7-10-lg {
height: calc(70%);
}

.h-8-10-lg {
height: calc(80%);
}

.h-9-10-lg {
height: calc(90%);
}

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

xl styles

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

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

.h-2-10-xl {
height: calc(20%);
}

.h-3-10-xl {
height: calc(30%);
}

.h-4-10-xl {
height: calc(40%);
}

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

.h-6-10-xl {
height: calc(60%);
}

.h-7-10-xl {
height: calc(70%);
}

.h-8-10-xl {
height: calc(80%);
}

.h-9-10-xl {
height: calc(90%);
}

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

2xl styles

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

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

.h-2-10-2xl {
height: calc(20%);
}

.h-3-10-2xl {
height: calc(30%);
}

.h-4-10-2xl {
height: calc(40%);
}

.h-5-10-2xl {
height: 50%;
}

.h-6-10-2xl {
height: calc(60%);
}

.h-7-10-2xl {
height: calc(70%);
}

.h-8-10-2xl {
height: calc(80%);
}

.h-9-10-2xl {
height: calc(90%);
}

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

3xl styles

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

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

.h-2-10-3xl {
height: calc(20%);
}

.h-3-10-3xl {
height: calc(30%);
}

.h-4-10-3xl {
height: calc(40%);
}

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

.h-6-10-3xl {
height: calc(60%);
}

.h-7-10-3xl {
height: calc(70%);
}

.h-8-10-3xl {
height: calc(80%);
}

.h-9-10-3xl {
height: calc(90%);
}

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

4xl styles

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

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

.h-2-10-4xl {
height: calc(20%);
}

.h-3-10-4xl {
height: calc(30%);
}

.h-4-10-4xl {
height: calc(40%);
}

.h-5-10-4xl {
height: 50%;
}

.h-6-10-4xl {
height: calc(60%);
}

.h-7-10-4xl {
height: calc(70%);
}

.h-8-10-4xl {
height: calc(80%);
}

.h-9-10-4xl {
height: calc(90%);
}

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

5xl styles

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

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

.h-2-10-5xl {
height: calc(20%);
}

.h-3-10-5xl {
height: calc(30%);
}

.h-4-10-5xl {
height: calc(40%);
}

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

.h-6-10-5xl {
height: calc(60%);
}

.h-7-10-5xl {
height: calc(70%);
}

.h-8-10-5xl {
height: calc(80%);
}

.h-9-10-5xl {
height: calc(90%);
}

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