Examples
Max Width Scale
.mw1
|
Lorem
|
.mw2
|
Lorem
|
.mw3
|
Lorem ipsum dolor sit amet, consetetur sadipscing
|
.mw4
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod.
|
.mw5
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
.mw6
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
Max Width Percentages
w-25
w-50
mw-75
mw-100
Reference
MDN - Max Width
/*
MAX WIDTHS
*/
/* Max Width Percentages */
.mw-100 { max-width: 100%; }
.mw-75 { max-width: 75%; }
.mw-50 { max-width: 50%; }
.mw-25 { max-width: 25%; }
/* Max Width Scale */
.mw1 { max-width: 1rem; }
.mw2 { max-width: 2rem; }
.mw3 { max-width: 4rem; }
.mw4 { max-width: 8rem; }
.mw5 { max-width: 16rem; }
.mw6 { max-width: 32rem; }
.mw7 { max-width: 48rem; }
.mw8 { max-width: 64rem; }
.mw9 { max-width: 96rem; }
.mw10 { max-width: 128rem; }
/* Max Width String Properties */
.mw-none { max-width: none; }
@media (--breakpoint-not-small) {
.mw-100-ns { max-width: 100%; }
.mw-75-ns { max-width: 75%; }
.mw-50-ns { max-width: 50%; }
.mw-25-ns { max-width: 25%; }
.mw1-ns { max-width: 1rem; }
.mw2-ns { max-width: 2rem; }
.mw3-ns { max-width: 4rem; }
.mw4-ns { max-width: 8rem; }
.mw5-ns { max-width: 16rem; }
.mw6-ns { max-width: 32rem; }
.mw7-ns { max-width: 48rem; }
.mw8-ns { max-width: 64rem; }
.mw9-ns { max-width: 96rem; }
.mw10-ns { max-width: 128rem; }
.mw-none-ns { max-width: none; }
}
@media (--breakpoint-medium) {
.mw-100-m { max-width: 100%; }
.mw-75-m { max-width: 75%; }
.mw-50-m { max-width: 50%; }
.mw-25-m { max-width: 25%; }
.mw1-m { max-width: 1rem; }
.mw2-m { max-width: 2rem; }
.mw3-m { max-width: 4rem; }
.mw4-m { max-width: 8rem; }
.mw5-m { max-width: 16rem; }
.mw6-m { max-width: 32rem; }
.mw7-m { max-width: 48rem; }
.mw8-m { max-width: 64rem; }
.mw9-m { max-width: 96rem; }
.mw10-m { max-width: 128rem; }
.mw-none-m { max-width: none; }
}
@media (--breakpoint-large) {
.mw-100-l { max-width: 100%; }
.mw-75-l { max-width: 75%; }
.mw-50-l { max-width: 50%; }
.mw-25-l { max-width: 25%; }
.mw1-l { max-width: 1rem; }
.mw2-l { max-width: 2rem; }
.mw3-l { max-width: 4rem; }
.mw4-l { max-width: 8rem; }
.mw5-l { max-width: 16rem; }
.mw6-l { max-width: 32rem; }
.mw7-l { max-width: 48rem; }
.mw8-l { max-width: 64rem; }
.mw9-l { max-width: 96rem; }
.mw10-l { max-width: 128rem; }
.mw-none-l { max-width: none; }
}