![]() |
VOOZH | about |
Bulma uses Sass mixins to create the CSS output and they are mainly used within the context of the Bulma framework.
In this article, we will know about Bulma Responsive. Bulma is a component-rich, mobile-first CSS framework based on flexbox. Since Bulma is a mobile-first framework, it supports the following responsiveness features:
For using mixins, there is no specific predefined class given by Bulma rather we create our own classes and style them using SASS mixins.
.bulma-[Mixin Name]-mixin{
@include [Mixin Name];
}
The above mixins do not accept any parameters.
Note: You must know the implementation of SASS mixins for the below examples. Please see the pre-requisite given on the link and then implement the below code.
Example 1: The below example illustrates Bulma's Responsiveness.
SCSS file:
CSS code:
Output:
Example 2: Below example illustrates another example of Bulma Responsiveness.
SCSS file:
CSS code:
Output:
Reference: https://versions.bulma.io/0.7.5/documentation/overview/responsiveness/