Skip to main content

Width - sixths

This provides styles for widths using sixths.

The following sizes are available:

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

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

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

How to import into your CSS

Import this into your CSS with:

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

Imports are available for all media query viewport sizes.

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

See Import Cacao CSS for more information.

Source CSS

Default styles

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

.w-1-6 {
width: calc(100% / 6);
}

.w-2-6 {
width: calc(100% / 6 * 2);
}

.w-3-6 {
width: 50%;
}

.w-4-6 {
width: calc(100% / 6 * 4);
}

.w-5-6 {
width: calc(100% / 6 * 5);
}

.w-6-6 {
width: 100%;
}

3xs styles

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

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

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

.w-3-6-3xs {
width: 50%;
}

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

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

.w-6-6-3xs {
width: 100%;
}
}

2xs styles

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

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

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

.w-3-6-2xs {
width: 50%;
}

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

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

.w-6-6-2xs {
width: 100%;
}
}

xs styles

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

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

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

.w-3-6-xs {
width: 50%;
}

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

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

.w-6-6-xs {
width: 100%;
}
}

sm styles

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

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

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

.w-3-6-sm {
width: 50%;
}

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

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

.w-6-6-sm {
width: 100%;
}
}

md styles

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

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

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

.w-3-6-md {
width: 50%;
}

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

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

.w-6-6-md {
width: 100%;
}
}

lg styles

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

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

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

.w-3-6-lg {
width: 50%;
}

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

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

.w-6-6-lg {
width: 100%;
}
}

xl styles

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

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

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

.w-3-6-xl {
width: 50%;
}

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

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

.w-6-6-xl {
width: 100%;
}
}

2xl styles

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

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

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

.w-3-6-2xl {
width: 50%;
}

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

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

.w-6-6-2xl {
width: 100%;
}
}

3xl styles

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

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

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

.w-3-6-3xl {
width: 50%;
}

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

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

.w-6-6-3xl {
width: 100%;
}
}

4xl styles

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

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

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

.w-3-6-4xl {
width: 50%;
}

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

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

.w-6-6-4xl {
width: 100%;
}
}

5xl styles

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

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

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

.w-3-6-5xl {
width: 50%;
}

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

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

.w-6-6-5xl {
width: 100%;
}
}