Height - sevenths
This provides styles for heights using sevenths.
The following sizes are available:
- h-1-7
- h-2-7
- h-3-7
- h-4-7
- h-5-7
- h-6-7
- h-7-7
Each height size has a class to go with each of the media query viewport sizes. For example:
h-1-7-3xs
h-1-7-2xs
h-1-7-xs
h-1-7-sm
h-1-7-md
h-1-7-lg
h-1-7-xl
h-1-7-2xl
h-1-7-3xl
h-1-7-4xl
h-1-7-5xl
How to import into your CSS
Import this into your CSS with:
@import 'cacao-css/dist/height/height-7.css';
Imports are available for all media query viewport sizes.
@import 'cacao-css/dist/height/3xs/height-7.css';
@import 'cacao-css/dist/height/2xs/height-7.css';
@import 'cacao-css/dist/height/xs/height-7.css';
@import 'cacao-css/dist/height/sm/height-7.css';
@import 'cacao-css/dist/height/md/height-7.css';
@import 'cacao-css/dist/height/lg/height-7.css';
@import 'cacao-css/dist/height/xl/height-7.css';
@import 'cacao-css/dist/height/2xl/height-7.css';
@import 'cacao-css/dist/height/3xl/height-7.css';
@import 'cacao-css/dist/height/4xl/height-7.css';
@import 'cacao-css/dist/height/5xl/height-7.css';
See Import Cacao CSS for more information.
Source CSS
Default styles
height/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
.h-1-7 {
height: calc(100% / 7);
}
.h-2-7 {
height: calc(100% / 7 * 2);
}
.h-3-7 {
height: calc(100% / 7 * 3);
}
.h-4-7 {
height: calc(100% / 7 * 4);
}
.h-5-7 {
height: calc(100% / 7 * 5);
}
.h-6-7 {
height: calc(100% / 7 * 6);
}
.h-7-7 {
height: 100%;
}
3xs styles
height/3xs/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-3xs) {
.h-1-7-3xs {
height: calc(100% / 7);
}
.h-2-7-3xs {
height: calc(100% / 7 * 2);
}
.h-3-7-3xs {
height: calc(100% / 7 * 3);
}
.h-4-7-3xs {
height: calc(100% / 7 * 4);
}
.h-5-7-3xs {
height: calc(100% / 7 * 5);
}
.h-6-7-3xs {
height: calc(100% / 7 * 6);
}
.h-7-7-3xs {
height: 100%;
}
}
2xs styles
height/2xs/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-2xs) {
.h-1-7-2xs {
height: calc(100% / 7);
}
.h-2-7-2xs {
height: calc(100% / 7 * 2);
}
.h-3-7-2xs {
height: calc(100% / 7 * 3);
}
.h-4-7-2xs {
height: calc(100% / 7 * 4);
}
.h-5-7-2xs {
height: calc(100% / 7 * 5);
}
.h-6-7-2xs {
height: calc(100% / 7 * 6);
}
.h-7-7-2xs {
height: 100%;
}
}
xs styles
height/xs/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-xs) {
.h-1-7-xs {
height: calc(100% / 7);
}
.h-2-7-xs {
height: calc(100% / 7 * 2);
}
.h-3-7-xs {
height: calc(100% / 7 * 3);
}
.h-4-7-xs {
height: calc(100% / 7 * 4);
}
.h-5-7-xs {
height: calc(100% / 7 * 5);
}
.h-6-7-xs {
height: calc(100% / 7 * 6);
}
.h-7-7-xs {
height: 100%;
}
}
sm styles
height/sm/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-sm) {
.h-1-7-sm {
height: calc(100% / 7);
}
.h-2-7-sm {
height: calc(100% / 7 * 2);
}
.h-3-7-sm {
height: calc(100% / 7 * 3);
}
.h-4-7-sm {
height: calc(100% / 7 * 4);
}
.h-5-7-sm {
height: calc(100% / 7 * 5);
}
.h-6-7-sm {
height: calc(100% / 7 * 6);
}
.h-7-7-sm {
height: 100%;
}
}
md styles
height/md/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-md) {
.h-1-7-md {
height: calc(100% / 7);
}
.h-2-7-md {
height: calc(100% / 7 * 2);
}
.h-3-7-md {
height: calc(100% / 7 * 3);
}
.h-4-7-md {
height: calc(100% / 7 * 4);
}
.h-5-7-md {
height: calc(100% / 7 * 5);
}
.h-6-7-md {
height: calc(100% / 7 * 6);
}
.h-7-7-md {
height: 100%;
}
}
lg styles
height/lg/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-lg) {
.h-1-7-lg {
height: calc(100% / 7);
}
.h-2-7-lg {
height: calc(100% / 7 * 2);
}
.h-3-7-lg {
height: calc(100% / 7 * 3);
}
.h-4-7-lg {
height: calc(100% / 7 * 4);
}
.h-5-7-lg {
height: calc(100% / 7 * 5);
}
.h-6-7-lg {
height: calc(100% / 7 * 6);
}
.h-7-7-lg {
height: 100%;
}
}
xl styles
height/xl/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-xl) {
.h-1-7-xl {
height: calc(100% / 7);
}
.h-2-7-xl {
height: calc(100% / 7 * 2);
}
.h-3-7-xl {
height: calc(100% / 7 * 3);
}
.h-4-7-xl {
height: calc(100% / 7 * 4);
}
.h-5-7-xl {
height: calc(100% / 7 * 5);
}
.h-6-7-xl {
height: calc(100% / 7 * 6);
}
.h-7-7-xl {
height: 100%;
}
}
2xl styles
height/2xl/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-2xl) {
.h-1-7-2xl {
height: calc(100% / 7);
}
.h-2-7-2xl {
height: calc(100% / 7 * 2);
}
.h-3-7-2xl {
height: calc(100% / 7 * 3);
}
.h-4-7-2xl {
height: calc(100% / 7 * 4);
}
.h-5-7-2xl {
height: calc(100% / 7 * 5);
}
.h-6-7-2xl {
height: calc(100% / 7 * 6);
}
.h-7-7-2xl {
height: 100%;
}
}
3xl styles
height/3xl/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-3xl) {
.h-1-7-3xl {
height: calc(100% / 7);
}
.h-2-7-3xl {
height: calc(100% / 7 * 2);
}
.h-3-7-3xl {
height: calc(100% / 7 * 3);
}
.h-4-7-3xl {
height: calc(100% / 7 * 4);
}
.h-5-7-3xl {
height: calc(100% / 7 * 5);
}
.h-6-7-3xl {
height: calc(100% / 7 * 6);
}
.h-7-7-3xl {
height: 100%;
}
}
4xl styles
height/4xl/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-4xl) {
.h-1-7-4xl {
height: calc(100% / 7);
}
.h-2-7-4xl {
height: calc(100% / 7 * 2);
}
.h-3-7-4xl {
height: calc(100% / 7 * 3);
}
.h-4-7-4xl {
height: calc(100% / 7 * 4);
}
.h-5-7-4xl {
height: calc(100% / 7 * 5);
}
.h-6-7-4xl {
height: calc(100% / 7 * 6);
}
.h-7-7-4xl {
height: 100%;
}
}
5xl styles
height/5xl/height-7.css
/* =========================================================================== *\
Width 7's
\* =========================================================================== */
@media (--m-5xl) {
.h-1-7-5xl {
height: calc(100% / 7);
}
.h-2-7-5xl {
height: calc(100% / 7 * 2);
}
.h-3-7-5xl {
height: calc(100% / 7 * 3);
}
.h-4-7-5xl {
height: calc(100% / 7 * 4);
}
.h-5-7-5xl {
height: calc(100% / 7 * 5);
}
.h-6-7-5xl {
height: calc(100% / 7 * 6);
}
.h-7-7-5xl {
height: 100%;
}
}