Width and Height
Basil provides classes to help you quickly set the width and height of elements, both as a percentage of their parent and as a percentage of the viewport height (vh). There are classes for 10% increments as well as for 100%.
.w-10 {
width: 10%;
}
.vh-10 {
height: 10vh;
}
The same classes are also provided for larger screens (viewport width of 764px or greater), prefixed with big:.
@media (min-width: 764px) {
.big:w-10 {
width: 10%;
}
.big:vh-10 {
height: 10vh;
}
}
.w-10to.w-90and.full-widthwill set the width of an element to the specified percentage of its parent. For larger screens (minimum width of 764px), use.big:w-10to.big:w-90and.big:full-width..h-10to.h-90and.full-heightwill set the height of an element to the specified percentage of its parent. For larger screens (minimum width of 764px), use.big:h-10to.big:h-90and.big:full-height..vh-10to.vh-100will set the height of an element to the specified percentage of the viewport height. For larger screens (minimum width of 764px), use.big:vh-10to.big:vh-100.