Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions doc/src/components/common/componentData/Navbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ export const componentData = {

render() {

const MenuIcon = () => (
<svg xmlns="http://www.w3.org/2000/svg" height="30px" id="Layer_1" version="1.1" viewBox="0 0 30 30" width="30px"><path d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2 s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2 S29.104,22,28,22z"/></svg>
);

return (
<div>
<PreviewBlock header="Default Navbar">
Expand All @@ -160,7 +156,7 @@ export const componentData = {
<PreviewBlock header="Navbar with leftIcon">

{/* Navbar with icon on left set with leftIcon prop */}
<Navbar leftIcon={<MenuIcon />} title="logo" />
<Navbar leftIcon={match} title="logo" />

</PreviewBlock>
<PreviewBlock header="Flat Navbar (No box shadow)">
Expand Down
22 changes: 9 additions & 13 deletions lib/navbar/theme.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

:local(.navbarWrapper) {
z-index: 2;
display: flex;
box-sizing: border-box;
width: 100%;
height: 81px;
height: fit-content;
height: -moz-fit-content;
height: 5rem;
font-family: 'Roboto';
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.5);
.clearfix {
Expand All @@ -15,8 +14,10 @@
}
:local(.innerWrapper) {
display: flex;
padding: 0% 2%;
z-index: 2;
justify-content: space-between;
align-items: center;
height: 100%;
width: 100%;
position: relative;
Expand All @@ -31,6 +32,8 @@
box-sizing: border-box;
padding: 2%;
display: flex;
width: fit-content;
width: -moz-fit-content;
align-items: center;
}
:local(.title) {
Expand All @@ -39,7 +42,6 @@
height: 33px;
font-size: 24px;
font-weight: bold;
text-transform: uppercase;
color: $white;
margin-right: 15px;
white-space: nowrap;
Expand All @@ -58,17 +60,12 @@
cursor: pointer;
svg, img {
width: auto;
height: 100%;
height: 70%;
color: $white;
fill: $white;
}
}
:local(.leftIcon) {
margin-right: 15px;
}
:local(.rightIcon) {
margin-left: 15px;
}

:local(.fixedPosition) {
position: fixed;
top: 0;
Expand Down Expand Up @@ -122,8 +119,7 @@
@media only screen and (max-width: 768px) {
.icon-menu {
display: block;
background: white;
color: $cool-blue;
color: white;
}

:local(.navlinks) {
Expand Down