Last active
March 13, 2019 16:23
-
-
Save dhindurthy/49bf82936b3af5b314a35cf2eecef786 to your computer and use it in GitHub Desktop.
contextual-navbar
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
navItems: [{ | |
"name":"Fish", | |
"id":"fish", | |
"path":"fish" | |
},{ | |
"name":"Birds", | |
"id":"bird", | |
"path":"birds" | |
},{ | |
"name":"Insects", | |
"id":"inse", | |
"path":"insects" | |
}], | |
navDropdownItems:{ | |
"name":"Mammals", | |
"options":[{"name":"Herbivores", "path":"herbivores"},{"name":"Carnivores", "path":"carnivores"},{"name":"Omnivores", "path":"omnivores"}] | |
}, | |
navItemsTwo:[{ | |
"name":"Amphibians", | |
"id":"amph", | |
"path":"amphibians" | |
}], | |
navDropdownTwo:{ | |
"name":"Reptiles", | |
"options":[{"name":"Snakes", "path":"snakes"},{"name":"Crocodiles", "path":"crocodiles"},{"name":"Omnivores", "path":"omnivores"}] | |
}, | |
navIcons: [{ | |
"name":"gift", | |
"id":"gifted", | |
"path":"gifted" | |
}], | |
navDropdownIconItems:{ | |
"name":"Setting", | |
"icon": "cog", | |
"options":[{"name":"Extinct", "path":"extinct"},{"name":"Endangered", "path":"endangered"},{"name":"Poached", "path":"poached"}] | |
}, | |
}); |
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
body { | |
margin: 12px 16px; | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
} | |
.navdropdown-dropdown{ | |
background-color: #e69182; | |
position: absolute; | |
margin-top: 30px; | |
} | |
ul { | |
list-style-type: none; | |
margin: 0; | |
padding: 0; | |
} | |
.fa-icon{display: inline} | |
li.nav-pill { | |
display: inline; | |
padding:10px; | |
margin:0; | |
transition: 0.5s ease; | |
} | |
li.nav-option { | |
display: block; | |
} | |
a { | |
color:inherit; | |
text-decoration: none; | |
cursor:pointer; | |
} | |
nav { | |
padding: 10px; | |
//border: 1px solid brown; | |
} | |
.navbar-ul { | |
display: flex; | |
flex-direction: row; | |
justify-content: space-around; | |
background-color: #E35B44; | |
//background-color:gray; | |
} | |
.sub-menu-division{ | |
background-color: #e69182; | |
display: flex; | |
justify-content: space-around; | |
} | |
.navbar-li { | |
} | |
.nav-pill.active { | |
background-color:#77EDF4; | |
} | |
.cx-navdropdown { | |
padding:10px; | |
display: flex; | |
flex-direction: column; | |
} | |
.cx-navdropdown ul{ | |
border: 1px solid black; | |
padding: 5px; | |
//margin: 5px; | |
} | |
.cx-navdd-button{ | |
background-color: white; | |
border: none; | |
} | |
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
{ | |
"version": "0.13.0", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"devDependencies": { | |
"ember-font-awesome": "^3.0.5" | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.16.2", | |
"ember-template-compiler": "2.16.2", | |
"ember-testing": "2.16.2", | |
"ember-font-awesome": "https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" | |
}, | |
"addons": { | |
"ember-data": "2.16.3" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment