Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Commit

Permalink
Revert "re-commit."
Browse files Browse the repository at this point in the history
This reverts commit 64a4649.
  • Loading branch information
ace-subido committed Jul 2, 2012
1 parent 6ca90e6 commit 3a28842
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 2 deletions.
27 changes: 27 additions & 0 deletions less/buttons.less
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,27 @@
// button core
.m-btn {
position: relative;
display: inline-block;
overflow: visible;
margin: 0;
padding: 10px 14px;
cursor: pointer;
outline: none;
border: none;
.gradient-background-mixin(@grayColor, @darkGrayColor);
.background-clip(padding);
/* IE hacks */

zoom: 1;
z-index: 1;
*display: inline;
font-family: @defaultFontFamily;
font-size: @defaultFontSize;
line-height: @defaultLineHeight;
color: @kindofblackColor;
min-width: @btnMinWidth;
text-align: center;
text-decoration: none;
white-space: nowrap;
}

35 changes: 34 additions & 1 deletion less/mixins.less
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,5 @@

// icon mixins
.m-icons-mixin (@size, @margin: 0px) { .m-icons-mixin (@size, @margin: 0px) {
display: inline-block; display: inline-block;
width: @size; width: @size;
Expand All @@ -7,4 +9,35 @@
background-image: url("@{msfticonSpritePath}"); background-image: url("@{msfticonSpritePath}");
background-position: 0 0; background-position: 0 0;
background-repeat: no-repeat; background-repeat: no-repeat;
} }

.button-background (@color, @lightercolor) {
border: none;
}

.gradient-background-mixin (@firstcolor, @secondColor) {
#gradientstyles > .vertical(@firstcolor, @secondColor);
}

#gradientstyles {
.vertical(@startColor, @endColor) {
background-color: mix(@startColor, @endColor, 60%);
background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
background-image: -ms-linear-gradient(top, @startColor, @endColor); // IE10
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(top, @startColor, @endColor); // The standard
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down
}

}

// Background clipping
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
.background-clip(@clipstyle) {
-webkit-background-clip: @clipstyle;
-moz-background-clip: @clipstyle;
background-clip: @clipstyle;
}
12 changes: 11 additions & 1 deletion less/variables.less
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@


// Fonts // Fonts
@defaultFontFamily: "Segoe UI", Helvetica, Arial, sans-serif; @defaultFontFamily: "Segoe UI", Helvetica, Arial, sans-serif;
@defaultFontSize @defaultFontSize: 14px;
@defaultLineHeight: 12px;

// Button styles
@btnMinWidth: 42px;
@btnIconMinWidth: 14px;
@btnBigIconMinWidth: 34px;



// Sprite icons path // Sprite icons path
// ------------------------- // -------------------------
Expand All @@ -14,6 +21,9 @@
// Colors // Colors
// ------------------------- // -------------------------
@whiteColor: #ffffff; @whiteColor: #ffffff;
@kindofblackColor: #444444;
@nearblackColor: #333333;
@almostblackColor: #222222;
@blackColor: #111111; @blackColor: #111111;


@grayColor: #f5f5f5; @grayColor: #f5f5f5;
Expand Down

0 comments on commit 3a28842

Please sign in to comment.