Web Development: Bootstrap 5.1 introduces the new CSS grid.

Bootstrap version 5.1 of the CSS framework is still the first minor release for the Young 5 Branch. In addition to experimental support for CSS-Grid, the update brings a new placeholder component and much more, along with off-canvas components inside the navigation bar.

The development team behind Bootstrap introduces experimental support for CSS-Grid with updates and thus differentiates from previous standards. Developers can use. $enable-grid-classes: false Disable the default setting to override the new CSS grid. $enable-cssgrid: true To activate. More information can be found in the documents.

Bootstrap 5.0 introduces new off-canvas components that allow developers, among other things, to add hidden sidebars to navigate a project or shopping cart across websites. In version 5.1, the development team is responsible. .navbar-expand-*– Classes have been extended to support off-canvas inside the navigation bar as well.

In terms of components, anything has changed: the new placeholders feature gives developers the option to provide temporary blocks instead of real content to indicate that something is currently being loaded into a website or application. ۔ The blog post shows the source code for the loading process, for example with a light placeholder. The first update provides both HTML and CSS code for implementation – developers can add the required code individually.

<div class="card" aria-hidden="true">
  <img src="https://news.google.com/__i/rss/rd/articles/..." class="card-img-top" alt="https://news.google.com/__i/rss/rd/articles/...">
  <div class="card-body">
    <h5 class="card-title placeholder-glow">
      <span class="placeholder col-6"></span>
    </h5>
    <p class="card-text placeholder-glow">
      <span class="placeholder col-7"></span>
      <span class="placeholder col-4"></span>
      <span class="placeholder col-4"></span>
      <span class="placeholder col-6"></span>
      <span class="placeholder col-8"></span>
    </p>
    <a href="#" tabindex="-1" class="btn btn-primary disabled placeholder col-6"></a>
  </div>
</div>

Bootstrap 5.1 also has other CSS variants (:root) In the equipment: In addition to the additional gray tones, the update introduces new. <body>– and RGB variants. The gray scale should complement the existing color and theme color variables and the existing set of globally available CSS colors.

More information about Bootstrap 5.1 can be found in the post on the official blog on the CSS framework.


(MDO)

Article source

Disclaimer: This article was created from the feed and has not been edited by our team.

Write a Comment