diff --git a/modules/angular2_material/src/components/button/button.scss b/modules/angular2_material/src/components/button/button.scss index 68f45f2a77..c248315dc1 100644 --- a/modules/angular2_material/src/components/button/button.scss +++ b/modules/angular2_material/src/components/button/button.scss @@ -4,6 +4,10 @@ // TODO(jelbourn): This goes away. @import "../../core/style/default-theme"; +// TODO(jelbourn): Move variables and mixins into a partial file. +// TODO(jelbourn): Measure perf benefits for translate3d and will-change. +// TODO(jelbourn): Figure out if anchor hover underline actually happens in any browser. + // Standard button sizing. $md-button-padding: 0 rem(0.600) !default; @@ -19,7 +23,7 @@ $md-fab-padding: rem(1.60) !default; $md-fab-mini-size: rem(4.00) !default; $md-fab-mini-line-height: rem(4.00) !default; -/** Mixin to create distinct classes for fab positions, e.g. ".md-fab-bottom-right". */ +/** Mixin to create distinct classes for fab positions, e.g. ".md-fab-position-bottom-right". */ @mixin md-fab-position($spot, $top: auto, $right: auto, $bottom: auto, $left: auto) { .md-fab-position-#{$spot} { top: $top; @@ -30,14 +34,17 @@ $md-fab-mini-line-height: rem(4.00) !default; } } -// Base styles for all buttons. +/** Styles for all disabled buttons. */ +@mixin md-button-disabled() { + color: md-color($md-foreground, disabled); + background-color: transparent; + cursor: default; +} + +/** Base styles for all buttons. */ @mixin md-button-base() { box-sizing: border-box; position: relative; - display: inline-block; - - font-size: $md-body-font-size-base; - font-weight: 500; // Reset browser +
@@ -49,6 +61,7 @@ +
Fab button @@ -57,6 +70,7 @@ +
Anchor / hyperlink @@ -65,9 +79,10 @@ RAISED HREF
+
+ Right-to-left + + + עוגן +
-

- Repeated button: - - {{clickCount}} -