MelangeCSS Reference

Current Version: 1.0.0-RC5

Widths And Heights ( Large Width )

Along with the spacings group, widths and heights allow control over sizes using the built-in spacing scale. The widths and heights here are identical to the value used in the spacings group, so your design should have visual harmony and consistency.

Properties

Box Sizing

Box sizing controls how the width and height are calculated. MelangeCSS sets the default to border-box (which is not the browser default) as this avoids some issues with predicting and controlling sizing

content-box-l
.content-box-l {
  box-sizing: content-box;
}
border-box-l
.border-box-l {
  box-sizing: border-box;
}
Height
h*
Height Height
h-1-l
.h-1-l {
  height: calc(2 * var(--sp-1));
}
.h-1-l
h-2-l
.h-2-l {
  height: calc(2 * var(--sp-2));
}
.h-2-l
h-3-l
.h-3-l {
  height: calc(2 * var(--sp-3));
}
.h-3-l
h-4-l
.h-4-l {
  height: calc(2 * var(--sp-4));
}
.h-4-l
h-5-l
.h-5-l {
  height: calc(2 * var(--sp-5));
}
.h-5-l
h-6-l
.h-6-l {
  height: calc(2 * var(--sp-6));
}
.h-6-l
h-7-l
.h-7-l {
  height: calc(2 * var(--sp-7));
}
.h-7-l
h-8-l
.h-8-l {
  height: calc(2 * var(--sp-8));
}
.h-8-l
Percentages
h-10-l
.h-10-l {
  height: 10%;
}
.h-10-l
h-20-l
.h-20-l {
  height: 20%;
}
.h-20-l
h-25-l
.h-25-l {
  height: 25%;
}
.h-25-l
h-30-l
.h-30-l {
  height: 30%;
}
.h-30-l
h-40-l
.h-40-l {
  height: 40%;
}
.h-40-l
h-50-l
.h-50-l {
  height: 50%;
}
.h-50-l
h-60-l
.h-60-l {
  height: 60%;
}
.h-60-l
h-70-l
.h-70-l {
  height: 70%;
}
.h-70-l
h-75-l
.h-75-l {
  height: 75%;
}
.h-75-l
h-80-l
.h-80-l {
  height: 80%;
}
.h-80-l
h-90-l
.h-90-l {
  height: 90%;
}
.h-90-l
h-100-l
.h-100-l {
  height: 100%;
}
.h-100-l
h-third-l
.h-third-l {
  height: calc(100% / 3);
}
.h-third-l
h-two-thirds-l
.h-two-thirds-l {
  height: calc(100% / 1.5);
}
.h-two-thirds-l
Percentages of View Height
h-10vh-l
.h-10vh-l {
  height: 10vh;
}
.h-10vh-l
h-20vh-l
.h-20vh-l {
  height: 20vh;
}
.h-20vh-l
h-30vh-l
.h-30vh-l {
  height: 30vh;
}
.h-30vh-l
h-40vh-l
.h-40vh-l {
  height: 40vh;
}
.h-40vh-l
h-50vh-l
.h-50vh-l {
  height: 50vh;
}
.h-50vh-l
h-60vh-l
.h-60vh-l {
  height: 60vh;
}
.h-60vh-l
h-70vh-l
.h-70vh-l {
  height: 70vh;
}
.h-70vh-l
h-80vh-l
.h-80vh-l {
  height: 80vh;
}
.h-80vh-l
h-90vh-l
.h-90vh-l {
  height: 90vh;
}
.h-90vh-l
h-100vh-l
.h-100vh-l {
  height: 100vh;
}
.h-100vh-l
h-auto-l
.h-auto-l {
  height: auto;
}
.h-auto-l
max-height*
Height Max Height
max-height-1-l
.max-height-1-l {
  max-height: calc(2 * var(--sp-1));
}
max-height-2-l
.max-height-2-l {
  max-height: calc(2 * var(--sp-2));
}
max-height-3-l
.max-height-3-l {
  max-height: calc(2 * var(--sp-3));
}
max-height-4-l
.max-height-4-l {
  max-height: calc(2 * var(--sp-4));
}
max-height-5-l
.max-height-5-l {
  max-height: calc(2 * var(--sp-5));
}
max-height-6-l
.max-height-6-l {
  max-height: calc(2 * var(--sp-6));
}
max-height-7-l
.max-height-7-l {
  max-height: calc(2 * var(--sp-7));
}
max-height-8-l
.max-height-8-l {
  max-height: calc(2 * var(--sp-8));
}
Percentages
max-height-10-l
.max-height-10-l {
  max-height: 10%;
}
max-height-20-l
.max-height-20-l {
  max-height: 20%;
}
max-height-25-l
.max-height-25-l {
  max-height: 25%;
}
max-height-30-l
.max-height-30-l {
  max-height: 30%;
}
max-height-40-l
.max-height-40-l {
  max-height: 40%;
}
max-height-50-l
.max-height-50-l {
  max-height: 50%;
}
max-height-60-l
.max-height-60-l {
  max-height: 60%;
}
max-height-70-l
.max-height-70-l {
  max-height: 70%;
}
max-height-75-l
.max-height-75-l {
  max-height: 75%;
}
max-height-80-l
.max-height-80-l {
  max-height: 80%;
}
max-height-90-l
.max-height-90-l {
  max-height: 90%;
}
max-height-100-l
.max-height-100-l {
  max-height: 100%;
}
max-height-third-l
.max-height-third-l {
  max-height: calc(100% / 3);
}
max-height-two-thirds-l
.max-height-two-thirds-l {
  max-height: calc(100% / 1.5);
}
Percentages of View Height
max-height-10vh-l
.max-height-10vh-l {
  max-height: 10vh;
}
max-height-20vh-l
.max-height-20vh-l {
  max-height: 20vh;
}
max-height-30vh-l
.max-height-30vh-l {
  max-height: 30vh;
}
max-height-40vh-l
.max-height-40vh-l {
  max-height: 40vh;
}
max-height-50vh-l
.max-height-50vh-l {
  max-height: 50vh;
}
max-height-60vh-l
.max-height-60vh-l {
  max-height: 60vh;
}
max-height-70vh-l
.max-height-70vh-l {
  max-height: 70vh;
}
max-height-80vh-l
.max-height-80vh-l {
  max-height: 80vh;
}
max-height-90vh-l
.max-height-90vh-l {
  max-height: 90vh;
}
max-height-100vh-l
.max-height-100vh-l {
  max-height: 100vh;
}
max-height-auto-l
.max-height-auto-l {
  max-height: auto;
}
Width
w*
Width Width
w-1-l
.w-1-l {
  width: calc(2 * var(--sp-1));
}
.w-1-l
w-2-l
.w-2-l {
  width: calc(2 * var(--sp-2));
}
.w-2-l
w-3-l
.w-3-l {
  width: calc(2 * var(--sp-3));
}
.w-3-l
w-4-l
.w-4-l {
  width: calc(2 * var(--sp-4));
}
.w-4-l
w-5-l
.w-5-l {
  width: calc(2 * var(--sp-5));
}
.w-5-l
w-6-l
.w-6-l {
  width: calc(2 * var(--sp-6));
}
.w-6-l
w-7-l
.w-7-l {
  width: calc(2 * var(--sp-7));
}
.w-7-l
w-8-l
.w-8-l {
  width: calc(2 * var(--sp-8));
}
.w-8-l
Percentages
w-10-l
.w-10-l {
  width: 10%;
}
.w-10-l
w-20-l
.w-20-l {
  width: 20%;
}
.w-20-l
w-25-l
.w-25-l {
  width: 25%;
}
.w-25-l
w-30-l
.w-30-l {
  width: 30%;
}
.w-30-l
w-40-l
.w-40-l {
  width: 40%;
}
.w-40-l
w-50-l
.w-50-l {
  width: 50%;
}
.w-50-l
w-60-l
.w-60-l {
  width: 60%;
}
.w-60-l
w-70-l
.w-70-l {
  width: 70%;
}
.w-70-l
w-75-l
.w-75-l {
  width: 75%;
}
.w-75-l
w-80-l
.w-80-l {
  width: 80%;
}
.w-80-l
w-90-l
.w-90-l {
  width: 90%;
}
.w-90-l
w-100-l
.w-100-l {
  width: 100%;
}
.w-100-l
w-third-l
.w-third-l {
  width: calc(100% / 3);
}
.w-third-l
w-two-thirds-l
.w-two-thirds-l {
  width: calc(100% / 1.5);
}
.w-two-thirds-l
Percentages of View Width
w-10vw-l
.w-10vw-l {
  width: 10vw;
}
.w-10vw-l
w-20vw-l
.w-20vw-l {
  width: 20vw;
}
.w-20vw-l
w-30vw-l
.w-30vw-l {
  width: 30vw;
}
.w-30vw-l
w-40vw-l
.w-40vw-l {
  width: 40vw;
}
.w-40vw-l
w-50vw-l
.w-50vw-l {
  width: 50vw;
}
.w-50vw-l
w-60vw-l
.w-60vw-l {
  width: 60vw;
}
.w-60vw-l
w-70vw-l
.w-70vw-l {
  width: 70vw;
}
.w-70vw-l
w-80vw-l
.w-80vw-l {
  width: 80vw;
}
.w-80vw-l
w-90vw-l
.w-90vw-l {
  width: 90vw;
}
.w-90vw-l
w-100vw-l
.w-100vw-l {
  width: 100vw;
}
.w-100vw-l
w-auto-l
.w-auto-l {
  width: auto;
}
.w-auto-l
mw*
Width Max Width
mw-1-l
.mw-1-l {
  max-width: calc(2 * var(--sp-1));
}
mw-2-l
.mw-2-l {
  max-width: calc(2 * var(--sp-2));
}
mw-3-l
.mw-3-l {
  max-width: calc(2 * var(--sp-3));
}
mw-4-l
.mw-4-l {
  max-width: calc(2 * var(--sp-4));
}
mw-5-l
.mw-5-l {
  max-width: calc(2 * var(--sp-5));
}
mw-6-l
.mw-6-l {
  max-width: calc(2 * var(--sp-6));
}
mw-7-l
.mw-7-l {
  max-width: calc(2 * var(--sp-7));
}
mw-8-l
.mw-8-l {
  max-width: calc(2 * var(--sp-8));
}
Percentages
mw-10-l
.mw-10-l {
  max-width: 10%;
}
mw-20-l
.mw-20-l {
  max-width: 20%;
}
mw-25-l
.mw-25-l {
  max-width: 25%;
}
mw-30-l
.mw-30-l {
  max-width: 30%;
}
mw-40-l
.mw-40-l {
  max-width: 40%;
}
mw-50-l
.mw-50-l {
  max-width: 50%;
}
mw-60-l
.mw-60-l {
  max-width: 60%;
}
mw-70-l
.mw-70-l {
  max-width: 70%;
}
mw-75-l
.mw-75-l {
  max-width: 75%;
}
mw-80-l
.mw-80-l {
  max-width: 80%;
}
mw-90-l
.mw-90-l {
  max-width: 90%;
}
mw-100-l
.mw-100-l {
  max-width: 100%;
}
mw-third-l
.mw-third-l {
  max-width: calc(100% / 3);
}
mw-two-thirds-l
.mw-two-thirds-l {
  max-width: calc(100% / 1.5);
}
Percentages of View Width
mw-10vw-l
.mw-10vw-l {
  max-width: 10vw;
}
mw-20vw-l
.mw-20vw-l {
  max-width: 20vw;
}
mw-30vw-l
.mw-30vw-l {
  max-width: 30vw;
}
mw-40vw-l
.mw-40vw-l {
  max-width: 40vw;
}
mw-50vw-l
.mw-50vw-l {
  max-width: 50vw;
}
mw-60vw-l
.mw-60vw-l {
  max-width: 60vw;
}
mw-70vw-l
.mw-70vw-l {
  max-width: 70vw;
}
mw-80vw-l
.mw-80vw-l {
  max-width: 80vw;
}
mw-90vw-l
.mw-90vw-l {
  max-width: 90vw;
}
mw-100vw-l
.mw-100vw-l {
  max-width: 100vw;
}
mw-auto-l
.mw-auto-l {
  max-width: auto;
}
minw*
Width Min Width
minw-1-l
.minw-1-l {
  min-width: calc(2 * var(--sp-1));
}
minw-2-l
.minw-2-l {
  min-width: calc(2 * var(--sp-2));
}
minw-3-l
.minw-3-l {
  min-width: calc(2 * var(--sp-3));
}
minw-4-l
.minw-4-l {
  min-width: calc(2 * var(--sp-4));
}
minw-5-l
.minw-5-l {
  min-width: calc(2 * var(--sp-5));
}
minw-6-l
.minw-6-l {
  min-width: calc(2 * var(--sp-6));
}
minw-7-l
.minw-7-l {
  min-width: calc(2 * var(--sp-7));
}
minw-8-l
.minw-8-l {
  min-width: calc(2 * var(--sp-8));
}
Percentages
minw-10-l
.minw-10-l {
  min-width: 10%;
}
minw-20-l
.minw-20-l {
  min-width: 20%;
}
minw-25-l
.minw-25-l {
  min-width: 25%;
}
minw-30-l
.minw-30-l {
  min-width: 30%;
}
minw-40-l
.minw-40-l {
  min-width: 40%;
}
minw-50-l
.minw-50-l {
  min-width: 50%;
}
minw-60-l
.minw-60-l {
  min-width: 60%;
}
minw-70-l
.minw-70-l {
  min-width: 70%;
}
minw-75-l
.minw-75-l {
  min-width: 75%;
}
minw-80-l
.minw-80-l {
  min-width: 80%;
}
minw-90-l
.minw-90-l {
  min-width: 90%;
}
minw-100-l
.minw-100-l {
  min-width: 100%;
}
minw-third-l
.minw-third-l {
  min-width: calc(100% / 3);
}
minw-two-thirds-l
.minw-two-thirds-l {
  min-width: calc(100% / 1.5);
}
Percentages of View Width
minw-10vw-l
.minw-10vw-l {
  min-width: 10vw;
}
minw-20vw-l
.minw-20vw-l {
  min-width: 20vw;
}
minw-30vw-l
.minw-30vw-l {
  min-width: 30vw;
}
minw-40vw-l
.minw-40vw-l {
  min-width: 40vw;
}
minw-50vw-l
.minw-50vw-l {
  min-width: 50vw;
}
minw-60vw-l
.minw-60vw-l {
  min-width: 60vw;
}
minw-70vw-l
.minw-70vw-l {
  min-width: 70vw;
}
minw-80vw-l
.minw-80vw-l {
  min-width: 80vw;
}
minw-90vw-l
.minw-90vw-l {
  min-width: 90vw;
}
minw-100vw-l
.minw-100vw-l {
  min-width: 100vw;
}
minw-auto-l
.minw-auto-l {
  min-width: auto;
}