-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from welitonderesende/develop
feat(navbar) improve mobile compatibility of the navbar
- Loading branch information
Showing
4 changed files
with
76 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.af-navbar { | ||
background-color: #fff; | ||
min-height: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
.af-navbar .container-fluid { | ||
padding: 0; | ||
} | ||
|
||
.af-navbar .af-navbar-mobile { | ||
margin-bottom: 0; | ||
color: #94a3ae; | ||
} | ||
|
||
.af-navbar .af-navbar--nav > li > a { | ||
border-bottom: 2px solid #fff; | ||
} | ||
|
||
.af-navbar .af-navbar--nav > li.active > a { | ||
background-color: #fff; | ||
color: #1E88E5; | ||
border-bottom: 2px solid #1E88E5; | ||
} | ||
.af-navbar .af-navbar--nav > li.active > a:hover { | ||
background-color: #fff; | ||
} | ||
.af-navbar .af-navbar--nav > li > a:hover { | ||
color: #1E88E5; | ||
transition: all .15s ease-in-out; | ||
border-bottom: 2px solid #1E88E5; | ||
} | ||
|
||
.af-navbar .af-navbar--nav > li.active > a:focus { | ||
background-color: #fff; | ||
color: #1E88E5; | ||
border-bottom: 2px solid #1E88E5; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.af-navbar { | ||
top: unset; | ||
bottom: 0; | ||
position: fixed; | ||
border-top: 2px solid #fff; | ||
box-shadow: 0px -3px 13px -3px #d6d7d9; | ||
} | ||
.af-navbar-mobile { | ||
height: 60px; | ||
} | ||
.af-navbar-mobile > ul { | ||
display: inline-flex; | ||
} | ||
.af-navbar--nav { | ||
margin: 0; | ||
top: -17px; | ||
position: relative; | ||
text-align: center; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters