A Pen by Captain Anonymous on CodePen.
Created
June 17, 2015 08:40
-
-
Save infacq/9cde821e6dcc0278ce72 to your computer and use it in GitHub Desktop.
Basic Usage
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
<div ng-controller="AppCtrl" class="buttondemoBasicUsage" ng-app="MyApp"> | |
<md-content> | |
<section layout="row" layout-sm="column" layout-align="center center"> | |
<md-button>{{title1}}</md-button> | |
<md-button md-no-ink="" class="md-primary">Primary (md-noink)</md-button> | |
<md-button ng-disabled="true" class="md-primary">Disabled</md-button> | |
<md-button class="md-warn">{{title4}}</md-button> | |
<div class="label">Flat</div> | |
</section> | |
<section layout="row" layout-sm="column" layout-align="center center"> | |
<md-button class="md-raised">Button</md-button> | |
<md-button class="md-raised md-primary">Primary</md-button> | |
<md-button ng-disabled="true" class="md-raised md-primary">Disabled</md-button> | |
<md-button class="md-raised md-warn">Warn</md-button> | |
<div class="label">Raised</div> | |
</section> | |
<section layout="row" layout-sm="column" layout-align="center center"> | |
<md-button class="md-fab" aria-label="Eat cake"> | |
<md-icon md-svg-src="img/icons/cake.svg"></md-icon> | |
</md-button> | |
<md-button class="md-fab md-primary" aria-label="Use Android"> | |
<md-icon md-svg-src="img/icons/android.svg"></md-icon> | |
</md-button> | |
<md-button class="md-fab" ng-disabled="true" aria-label="Comment"> | |
<md-icon md-svg-src="img/icons/ic_comment_24px.svg"></md-icon> | |
</md-button> | |
<md-button class="md-fab md-primary md-hue-2" aria-label="Profile"> | |
<md-icon md-svg-src="img/icons/ic_people_24px.svg"></md-icon> | |
</md-button> | |
<md-button class="md-fab md-mini" aria-label="Eat cake"> | |
<md-icon md-svg-src="img/icons/cake.svg"></md-icon> | |
</md-button> | |
<md-button class="md-fab md-mini md-primary" aria-label="Use Android"> | |
<md-icon md-svg-src="img/icons/android.svg" style="color: greenyellow;"></md-icon> | |
</md-button> | |
<div class="label">FAB</div> | |
</section> | |
<section layout="row" layout-sm="column" layout-align="center center"> | |
<md-button ng-href="{{googleUrl}}" target="_blank">Default Link</md-button> | |
<md-button class="md-primary" ng-href="{{googleUrl}}" target="_blank">Primary Link</md-button> | |
<md-button>Default Button</md-button> | |
<div class="label">Link vs. Button</div> | |
</section> | |
<section layout="row" layout-sm="column" layout-align="center center"> | |
<md-button class="md-primary md-hue-1">Primary Hue 1</md-button> | |
<md-button class="md-warn md-raised md-hue-2">Warn Hue 2</md-button> | |
<md-button class="md-accent">Accent</md-button> | |
<md-button class="md-accent md-raised md-hue-1">Accent Hue 1</md-button> | |
<div class="label">Themed</div> | |
</section> | |
<section layout="row" layout-sm="column" layout-align="center center"> | |
<md-button class="md-icon-button md-primary" aria-label="Settings"> | |
<md-icon md-svg-icon="img/icons/menu.svg"></md-icon> | |
</md-button> | |
<md-button class="md-icon-button md-accent" aria-label="Favorite"> | |
<md-icon md-svg-icon="img/icons/favorite.svg"></md-icon> | |
</md-button> | |
<md-button class="md-icon-button" aria-label="More"> | |
<md-icon md-svg-icon="img/icons/more_vert.svg"></md-icon> | |
</md-button> | |
<md-button href="http://google.com" title="Launch Google.com in new window" target="_blank" ng-disabled="true" aria-label="Google.com" class="md-icon-button launch"> | |
<md-icon md-svg-icon="img/icons/launch.svg"></md-icon> | |
</md-button> | |
<div class="label">Icon Button</div> | |
</section> | |
</md-content> | |
</div> |
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
angular.module('MyApp') | |
.controller('AppCtrl', function($scope) { | |
$scope.title1 = 'Button'; | |
$scope.title4 = 'Warn'; | |
$scope.isDisabled = true; | |
$scope.googleUrl = 'http://google.com'; | |
}); |
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
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-route.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-aria.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-messages.min.js"></script> | |
<script src="http://cdn.rawgit.com/angular/bower-material/v0.10.0/angular-material.js"></script> | |
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-114/assets-cache.js"></script> |
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
.buttondemoBasicUsage section { | |
background: #f7f7f7; | |
border-radius: 0px; | |
text-align: center; | |
margin: 0em; | |
position: relative !important; | |
padding-bottom: 10px; } | |
.buttondemoBasicUsage md-content { | |
margin-right: 7px; } | |
.buttondemoBasicUsage section .md-button { | |
margin-top: 1px; | |
margin-bottom: 16px; } | |
.buttondemoBasicUsage .label { | |
position: absolute; | |
bottom: 5px; | |
left: 7px; | |
font-size: 14px; | |
opacity: 0.54; } |
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
<link href="http://cdn.rawgit.com/angular/bower-material/v0.10.0/angular-material.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment