-
Get Started
-
Events
-
Router / Navigation
-
Components
- App / Core
- Accordion / Collapsible
- Action Sheet / Actions
- Autocomplete
- Badge
- Block / Content Block
- Button
- Calendar / Datepicker
- Cards
- Checkbox
- Chips / Tags
- Contacts List
- Data Table
- Dialog
- Elevation
- Floating Action Button / FAB
- Form Data / Storage
- Gauge
- Grid / Layout Grid
- Icons
- Infinite Scroll
- Inputs / Form Inputs
- Lazy Load
- Link
- List View
- List Index
- Login Screen
- Messagebar
- Messages
- Navbar
- Notification
- Page
- Panel / Side Panels
- Photo Browser
- Picker
- Popover
- Popup
- Preloader
- Progressbar
- Pull to Refresh
- Radio
- Range Slider
- Searchbar
- Sheet Modal
- Smart Select
- Sortable List
- Statusbar
- Stepper
- Subnavbar
- Swiper
- Swipeout
- Tabs
- Timeline
- Toast
- Toggle
- Toolbar / Tabbar
- Tooltip
- Video Intelligence (vi)
- View / Router
- Virtual List
-
Framework7 Icons
-
Styling
-
Dom7
-
Template7
-
Fast Clicks
-
Utilities
-
Plugins API
-
Lazy Modules
-
Custom Build
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 :after element:
.navbar:after {
background-color: red;
}
To remove bottom hairline on navbar and top hairline on toolbar:
.navbar: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-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 MD 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 -->
<div class="list no-hairlines-between">
...
</div>
<!-- remove hairlines between items only for MD theme -->
<div class="list no-hairlines-between-md">
...
</div>
