39 lines
961 B
CSS
39 lines
961 B
CSS
@layer utility {
|
|
.w-item-xs {
|
|
/* 24px minimum touch size for text line */
|
|
width: var(--height-item-xs);
|
|
}
|
|
.w-item-sm {
|
|
/* 30px save space for most used size */
|
|
width: var(--height-item-sm);
|
|
}
|
|
.w-item-md {
|
|
/* 34px most used size */
|
|
width: var(--height-item-lg);
|
|
}
|
|
.w-item-lg {
|
|
/* 44px maximum touch size without waste */
|
|
width: var(--height-item-lg);
|
|
}
|
|
.w-item-xl {
|
|
/* 64px navigation bar */
|
|
width: var(--height-item-xl);
|
|
}
|
|
/* ---------------------------------------------------- */
|
|
.w-inline-xs {
|
|
width: calc(var(--font-size-xs) * var(--line-height-xs));
|
|
}
|
|
.w-inline-sm {
|
|
width: calc(var(--font-size-sm) * var(--line-height-sm));
|
|
}
|
|
.w-inline-md {
|
|
width: calc(var(--font-size-md) * var(--line-height-md));
|
|
}
|
|
.w-inline-lg {
|
|
width: calc(var(--font-size-lg) * var(--line-height-lg));
|
|
}
|
|
.w-inline-xl {
|
|
width: calc(var(--font-size-xl) * var(--line-height-xl));
|
|
}
|
|
}
|