Skip to content

Commit

Permalink
fix minor bugs for button, command-button and switch
Browse files Browse the repository at this point in the history
  • Loading branch information
olton committed Aug 25, 2012
1 parent f4e7304 commit bb308ff
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
27 changes: 15 additions & 12 deletions less/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
color: #fff !important;
background: #1d1d1d;
cursor: pointer;
min-width: 50px;
min-width: 95px !important;
//min-height: 22px;
display: inline-block;
position: relative;
text-align: center;
border-radius: 0;
font-family: @baseFontFamily;
font-size: 10pt;

&:hover {
background: #3a3a3a;
Expand Down Expand Up @@ -66,10 +67,10 @@
.metro-command-button {
text-decoration: none;
border: 2px @white solid;
padding: 5px 20px;
display: block;
width: 240px;
height: 40px;
padding: 5px 20px 10px 20px;
display: inline-block;
min-width: 240px;
//height: 40px;
background: #1d1d1d;
position: relative;
font-family: @baseFontFamily;
Expand All @@ -79,11 +80,13 @@
color: #fff;
display: block;
font-weight: bold;
font-family: @baseFontFamily;
font-size: 12pt;
}
.subtitle {
color: #a1a1a1;
display: block;
font-size: 90%;
font-size: 10pt;
}

&:hover {
Expand Down Expand Up @@ -113,8 +116,8 @@

button.metro-command-button {
text-align: left;
min-width: 285px !important;
min-height: 60px;
min-width: 240px !important;
//min-height: 60px;
}

.metro-command-button.disabled, .metro-command-button:disabled {
Expand Down Expand Up @@ -159,7 +162,7 @@
input[type=checkbox] + span::before {
content: "";
width: 43px;
height: 14px;
height: 16px;
outline: 2px #777777 solid;
border: 1px @darken solid;
cursor: pointer;
Expand All @@ -173,8 +176,8 @@
input[type=checkbox] + span::after {
content: "";
position: absolute;
top: 0px;
left: 35px;
top: -1px;
left: 34px;
width: 13px;
height: 19px;
background: #ffffff;
Expand All @@ -186,7 +189,7 @@
}

input[type=checkbox]:not(:checked) + span::after {
top: 0px;
top: -1px;
left: 0px;
}

Expand Down
14 changes: 7 additions & 7 deletions new-demo/css/metro.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb308ff

Please sign in to comment.