Borders
border classes provide powerful tools for designing and styling web elements. With these classes, you can easily set the color, width, type, and radius of borders. These features allow you to create precise and beautiful designs with minimal coding and quickly respond to design changes.
File Structure #
The file for border settings is located at: miz/sass/config/responsive/boots/_borders.scss
Borders Config #
To manage borders in MIZ, several different classes are provided:
Border Color Classes: For setting border colors.
Border Width Classes: For defining border widths.
Border Radius Classes: For setting the corner radius of borders.
Border type Classes: For defining the border style (e.g., solid or dotted).
Border Width #
To set the border width:
Refer to the dims file located at miz/sass/config/_dims.scss
Customize the border width classes using $conf-border-thickness based on your needs.
The created classes for border width will be named border-width and will be built according to the config settings.
Border Radius #
To set the corner radius of borders (especially for circular or rounded designs):
Refer to the dims file located at miz/sass/config/_dims.scss
Customize the radius classes according to your needs.
Suggested classes for border radius:
radius-all-full for border-radius: 100%
radius-all-medium for border-radius: 16px
radius-all-tr for border-top-right-radius: 0px !important
Examples #
<div class=" px-2 d-flex align-items-center primary-color bw-1 border-style-solid border-primary-color radius-all-normal">
<p class="primary-color py-2">Example element</p>
</div>
<div class=" px-2 d-flex align-items-center primary-color bw-1 border-style-solid border-primary-color radius-all-large">
<p class="primary-color py-2">Example element</p>
</div>
<div class=" px-2 d-flex align-items-center primary-color bw-1 border-style-solid border-primary-color radius-all-medium">
<p class="primary-color py-2">Example element</p>
</div>
<div class=" px-2 d-flex align-items-center primary-color bw-1 border-style-solid border-primary-color radius-all-small">
<p class="primary-color py-2">Example element</p>
</div>
<div class=" px-2 d-flex align-items-center primary-color bw-1 border-style-solid border-primary-color radius-all-extra-large">
<p class="primary-color py-2">Example element</p>
</div>
<div class="w-100 px-2 d-flex align-items-center primary-color bw-2 border-dashed border-color radius-all-normal">
<p class="text-color py-2">Example element</p>
</div>
<div class="w-31 px-2 d-flex align-items-center primary-color justify-content-center bw-2 border-style-solid border-primary-color bg-on-primary-color radius-all-full">
<p class="primary-color py-2">Example element</p>
</div>