English 中文(简体)
Framework7 - Hairlines
  • 时间:2024-10-18

Framework7 - Hairpnes


Previous Page Next Page  

Description

Hairpne is a class that adds 1px border around the images by using the border class. With the release of 1.x, hairpnes revised the working with :after and :before pseudo elements instead of using CSS borders.

Hairpnes contains the following rules −

    :after − This pseudo element is used for bottom and right hairpnes.

    :before − This pseudo element is used for top and left hairpnes.

The following code snippet shows the use of :after element.

.navbar:after {
   background-color: red;
}

The following code snippet removes the bottom hairpne toolbar −

.navbar:after {
   display:none;
}

.toolbar:before {
   display:none;
}

"no-border" class

The hairpne will be removed by using no-border class and it is supported on Navbar, toolbar, card and its elements.

The following code is used to remove hairpne from navbar −

<span class = "navbar no-border">
   ...
</span>
Advertisements