Hairlines / Borders
All hairlines (thin borders) are made with :after and :before pseudo elements instead of usual CSS borders. This method allows to have true 0.5px (for iOS Retina) and 0.33px (for iPhone X/Plus) hairlines
The rule is simple:
- "bottom" and "right" hairlines are made using
:afterpseudo elements - "left" and "top" hairlines are made using
:beforepseudo elements
So, for example, if you want to change navbar's bottom hairline color, you need to change background-color of its .navbar-bg:after element:
.navbar-bg:after {
background-color: #ff0000;
}To remove bottom hairline on navbar and top hairline on toolbar:
.navbar-bg:after {
display:none;
}
.toolbar:before {
display:none;
}no-hairline Class
This helper class can be used to remove hairline. Currently it is supported on Navbar, Toolbar, Subnavbar, Searchbar, Card and its elements (card header, footer).
To remove hairline from navbar:
<div class="navbar no-hairline">
...
</div>no-hairlines Classes
no-hairlinesclass on List View and Content Block to remove outer hairlines.no-hairlines-mddoes the same but only for MD theme.no-hairlines-iosdoes the same but only for iOS theme.no-hairlines-auroradoes the same but only for Aurora theme.no-hairlines-betweenclass on List View to remove hairlines between list items.no-hairlines-between-mddoes the same but only for MD theme.no-hairlines-between-iosdoes the same but only for iOS theme.no-hairlines-between-auroradoes the same but only for Aurora theme.
<!-- remove outer hairlines -->
<div class="list no-hairlines">
...
</div>
<!-- remove hairlines between items -->
<div class="list no-hairlines-between">
...
</div>
<!-- remove hairlines between items only for MD theme -->
<div class="list no-hairlines-between-md">
...
</div>
Hairlines CSS Variables
If there is a CSS variable available for hairline/border color, it can be set to transparent, instead of removal. For example to remove (make transparent) List Item hairlines, we may just specify:
:root {
--f7-list-item-border-color: transparent;
}



