Created
February 26, 2018 18:03
-
-
Save MelSumner/4ae0f8f32f39f094c91a9e860ebfac68 to your computer and use it in GitHub Desktop.
contextual-navbar
This file contains hidden or 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 hidden or 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"}] | |
} | |
}); |
This file contains hidden or 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.Route.extend({ | |
}); |
This file contains hidden or 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; | |
} | |
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; | |
} | |
nav { | |
padding: 10px; | |
//border: 1px solid brown; | |
} | |
.navbar-ul { | |
display: flex; | |
flex-direction: row; | |
//justify-content: space-around; | |
//background-color:gray; | |
} | |
.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; | |
} | |
This file contains hidden or 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