Skip to content
Browse files

Added support for input and button elements

  • Loading branch information...
1 parent 557f303 commit b7de52b648c620acb9bb43c93ffb6075efcab702 @necolas committed Mar 1, 2011
Showing with 10 additions and 8 deletions.
  1. +10 −8 stylesheets/css3buttons.css
View
18 stylesheets/css3buttons.css
@@ -12,6 +12,7 @@ Licensed under Unlicense
display: inline-block;
padding: 0.5em 1em;
border: 1px solid #d4d4d4;
+ margin: 0;
text-decoration: none;
text-shadow: 1px 1px 0 #fff;
font:11px/normal sans-serif;
@@ -56,6 +57,11 @@ Licensed under Unlicense
background-color: #3072b3;
}
+/* overrides extra padding on button elements in Firefox */
+.button::-moz-focus-inner {
+ border: none;
+}
+
/* ............................................................................................................. Icons */
.button.icon:before {
@@ -292,29 +298,25 @@ Licensed under Unlicense
}
.button-group li {
+ float: left;
padding: 0;
margin: 0;
}
-.button-group li,
-.button-group > .button {
+.button-group .button {
float: left;
-}
-
-.button-group li > .button,
-.button-group > .button {
margin-left: -1px;
}
.button-group > .button:not(:first-child):not(:last-child),
-.button-group li:not(:first-child):not(:last-child) > .button {
+.button-group li:not(:first-child):not(:last-child) .button {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.button-group > .button:first-child,
-.button-group li:first-child > .button {
+.button-group li:first-child .button {
margin-left: 0;
-webkit-border-top-right-radius: 0;
-webkit-border-bottom-right-radius: 0;

0 comments on commit b7de52b

Please sign in to comment.
Something went wrong with that request. Please try again.