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-family: 'Roboto', sans-serif;
font-size:14px;
height:100%;
margin: 0px;
padding: 0px;
}
/** Enabled Step 3... */
md-toolbar {
height:70px;
}
md-toolbar h3 {
margin: auto;
font-weight: 500;
}
md-list-item > button {
width:100%;
text-align:left !important;
}
#content {
padding-left: 40px;
padding-right: 40px;
padding-top: 5px;
}
.avatar {
position: relative;
width: 128px;
height: 128px;
border: 1px solid #ddd;
border-radius: 50%;
display: inline-block;
overflow: hidden;
margin: 0px;
vertical-align: middle;
zoom:0.70;
transform: translateZ(0);
-webkit-transform: scale(0.70);
-moz-transform:scale(0.70);
}
<!DOCTYPE html>
<html lang="en" >
<head>
<meta name="description" content="Angular Material: Adaptive Layouts">
<link rel="stylesheet" href="https://rawgit.com/angular/bower-material/master/angular-material.css"/>
<link rel="stylesheet" href="https://rawgit.com/angular/material-start/es5-tutorial/app/assets/app.css"/>
<link rel=“stylesheet” href=“app.css”>
</head>
<body ng-app="MyApp" ng-cloak layout="column" ng-controller="UserController as ul">
<md-toolbar layout="row">
<md-button class="menu" hide-gt-sm ng-click="ul.toggleList()" >
<md-icon md-svg-icon="menu" ></md-icon>
</md-button>
<h3>Angular Material Starter</h3>
</md-toolbar>
<div class="container" layout="row" flex>
<md-sidenav
ng-click="ul.toggleList()"
md-component-id="left"
md-is-locked-open="$mdMedia('gt-sm')"
class="md-whiteframe-4dp" >
<md-list>
<md-list-item ng-repeat="u in ul.users">
<md-button ng-click="ul.selectUser(u)" ng-class="{'selected' : u === ul.selected }">
<md-icon md-svg-icon="{{u.avatar}}" class="avatar"></md-icon>
{{u.name}}
</md-button>
</md-list-item>
</md-list>
</md-sidenav>
<md-content flex id="content">
<md-icon md-svg-icon="{{ul.selected.avatar}}" class="avatar"></md-icon>
<h2>{{ul.selected.name}}</h2>
<p>{{ul.selected.content}}</p>
<md-button class="share" md-no-ink ng-click="ul.makeContact(ul.selected)">
<md-icon md-svg-icon="share"></md-icon>
</md-button>
</md-content>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.6/angular-animate.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.6/angular-aria.js"></script>
<script src="https://rawgit.com/angular/bower-material/master/angular-material.js"></script>
<script>
angular
.module('MyApp', ['ngMaterial', 'users'])
.config(function( $mdIconProvider ){
var rootURL = "https://rawgit.com/angular/material-start/es5-tutorial/app/";
// Register the user `avatar` icons
$mdIconProvider
.defaultIconSet(rootURL + "assets/svg/avatars.svg", 128)
.icon("share" , rootURL + "assets/svg/share.svg" , 24)
.icon("menu" , rootURL + "assets/svg/menu.svg" , 24)
.icon("google_plus", rootURL + "assets/svg/google_plus.svg" , 512)
.icon("hangouts" , rootURL + "assets/svg/hangouts.svg" , 512)
.icon("twitter" , rootURL + "assets/svg/twitter.svg" , 512)
.icon("phone" , rootURL + "assets/svg/phone.svg" , 512);
});
</script>
<script src="script.js"></script>
</body>
</html>
// Prepare the 'users' module for subsequent registration of controllers and delegates
angular.module('users', [ 'ngMaterial' ])
.config(function($sceProvider) {
// ngMaterial $mdIconProvider will be updated to mark urls as safe.
// Meanwhile, disable $sce for ngMaterial CodePen Demos that using external SVGs
$sceProvider.enabled(false);
})
.controller('UserController', ['userService', '$mdBottomSheet', '$mdSidenav', UserController ])
.service('userService', ['$q', UserService]);
// Users Controller for the Angular Material Start
function UserController( userService, $mdBottomSheet, $mdSidenav ) {
var self = this;
self.selected = null;
self.users = [ ];
self.selectUser = selectUser;
self.makeContact = makeContact;
self.toggleList = toggleUsersList;
// Load all registered users
userService
.loadAllUsers()
.then( function( users ) {
self.users = [].concat(users);
self.selected = users[0];
});
// *********************************
// Internal methods
// *********************************
/**
* Hide or Show the 'left' sideNav area
*/
function toggleUsersList() {
$mdSidenav('left').toggle();
}
/**
* Select the current avatars
* @param menuId
*/
function selectUser ( user ) {
self.selected = user;
}
/**
* Show the bottom sheet
*/
function makeContact(selectedUser) {
var appRoot = 'https://rawgit.com/angular/material-start/es5-tutorial/app/';
$mdBottomSheet.show({
controllerAs : "vm",
controller : [ '$mdBottomSheet', ContactSheetController],
templateUrl : appRoot + 'src/users/view/contactSheet.html',
parent : angular.element(document.getElementById('content'))
});
/**
* Bottom Sheet controller for the Avatar Actions
*/
function ContactSheetController( $mdBottomSheet ) {
var rootURL = appRoot + "assets/svg/";
this.user = selectedUser;
this.items = [
{ name: 'Phone' , icon: 'phone' , icon_url: rootURL + 'phone.svg'},
{ name: 'Twitter' , icon: 'twitter' , icon_url: rootURL + 'twitter.svg'},
{ name: 'Google+' , icon: 'google_plus' , icon_url: rootURL + 'google_plus.svg'},
{ name: 'Hangout' , icon: 'hangouts' , icon_url: rootURL + 'hangouts.svg'}
];
this.contactUser = function(action) {
// The actually contact process has not been implemented...
// so just hide the bottomSheet
$mdBottomSheet.hide(action);
};
}
}
}
// Users DataService
function UserService($q){
var users = [
{
name: 'Lia Lugo',
avatar: 'svg-1',
content: 'I love cheese, especially airedale queso. Cheese and biscuits halloumi cauliflower cheese cottage cheese swiss boursin fondue caerphilly. Cow port-salut camembert de normandie macaroni cheese feta who moved my cheese babybel boursin. Red leicester roquefort boursin squirty cheese jarlsberg blue castello caerphilly chalk and cheese. Lancashire.'
},
{
name: 'George Duke',
avatar: 'svg-2',
content: 'Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit, morbo vel maleficia? De apocalypsi gorger omero undead survivor dictum mauris.'
},
{
name: 'Gener Delosreyes',
avatar: 'svg-3',
content: "Raw denim pour-over readymade Etsy Pitchfork. Four dollar toast pickled locavore bitters McSweeney's blog. Try-hard art party Shoreditch selfies. Odd Future butcher VHS, disrupt pop-up Thundercats chillwave vinyl jean shorts taxidermy master cleanse letterpress Wes Anderson mustache Helvetica. Schlitz bicycle rights chillwave irony lumberhungry Kickstarter next level sriracha typewriter Intelligentsia, migas kogi heirloom tousled. Disrupt 3 wolf moon lomo four loko. Pug mlkshk fanny pack literally hoodie bespoke, put a bird on it Marfa messenger bag kogi VHS."
},
{
name: 'Lawrence Ray',
avatar: 'svg-4',
content: 'Scratch the furniture spit up on light gray carpet instead of adjacent linoleum so eat a plant, kill a hand pelt around the house and up and down stairs chasing phantoms run in circles, or claw drapes. Always hungry pelt around the house and up and down stairs chasing phantoms.'
},
{
name: 'Ernesto Urbina',
avatar: 'svg-5',
content: 'Webtwo ipsum dolor sit amet, eskobo chumby doostang bebo. Bubbli greplin stypi prezi mzinga heroku wakoopa, shopify airbnb dogster dopplr gooru jumo, reddit plickers edmodo stypi zillow etsy.'
},
{
name: 'Gani Ferrer',
avatar: 'svg-6',
content: "Lebowski ipsum yeah? What do you think happens when you get rad? You turn in your library card? Get a new driver's license? Stop being awesome? Dolor sit amet, consectetur adipiscing elit praesent ac magna justo pellentesque ac lectus. You don't go out and make a living dressed like that in the middle of a weekday. Quis elit blandit fringilla a ut turpis praesent felis ligula, malesuada suscipit malesuada."
}
];
// Promise-based API
return {
loadAllUsers : function() {
// Simulate async nature of real remote calls
return $q.when(users);
}
};
}