Merge pull request #2697 from owncloud/button-css-fixes

Button css fixes
This commit is contained in:
Bernhard Posselt 2013-04-09 03:04:34 -07:00
commit 27d8337728
1 changed files with 22 additions and 4 deletions

View File

@ -38,7 +38,9 @@ filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#35537a', endC
/* INPUTS */ /* INPUTS */
input[type="text"], input[type="password"], input[type="search"], input[type="number"], input[type="email"], input[type="text"], input[type="password"], input[type="search"], input[type="number"], input[type="email"],
textarea, select, button, .button, #quota, div.jp-progress, .pager li a { textarea, select,
button, .button,
#quota, div.jp-progress, .pager li a {
width:10em; margin:.3em; padding:.6em .5em .4em; width:10em; margin:.3em; padding:.6em .5em .4em;
font-size:1em; font-family:Arial, Verdana, sans-serif; font-size:1em; font-family:Arial, Verdana, sans-serif;
background:#fff; color:#333; border:1px solid #ddd; outline:none; background:#fff; color:#333; border:1px solid #ddd; outline:none;
@ -74,18 +76,34 @@ input[type="checkbox"]:hover+label, input[type="checkbox"]:focus+label { color:#
/* BUTTONS */ /* BUTTONS */
input[type="submit"], input[type="button"], button, .button, #quota, div.jp-progress, select, .pager li a { input[type="submit"], input[type="button"],
button, .button,
#quota, div.jp-progress, select, .pager li a {
width:auto; padding:.4em; width:auto; padding:.4em;
background-color:rgba(240,240,240,.9); font-weight:bold; color:#555; text-shadow:rgba(255,255,255,.9) 0 1px 0; border:1px solid rgba(190,190,190,.9); cursor:pointer; background-color:rgba(240,240,240,.9); font-weight:bold; color:#555; text-shadow:rgba(255,255,255,.9) 0 1px 0; border:1px solid rgba(190,190,190,.9); cursor:pointer;
-moz-box-shadow:0 1px 1px rgba(255,255,255,.9), 0 1px 1px rgba(255,255,255,.9) inset; -webkit-box-shadow:0 1px 1px rgba(255,255,255,.9), 0 1px 1px rgba(255,255,255,.9) inset; box-shadow:0 1px 1px rgba(255,255,255,.9), 0 1px 1px rgba(255,255,255,.9) inset; -moz-box-shadow:0 1px 1px rgba(255,255,255,.9), 0 1px 1px rgba(255,255,255,.9) inset; -webkit-box-shadow:0 1px 1px rgba(255,255,255,.9), 0 1px 1px rgba(255,255,255,.9) inset; box-shadow:0 1px 1px rgba(255,255,255,.9), 0 1px 1px rgba(255,255,255,.9) inset;
-moz-border-radius:.5em; -webkit-border-radius:.5em; border-radius:.5em; -moz-border-radius:.5em; -webkit-border-radius:.5em; border-radius:.5em;
} }
input[type="submit"]:hover, input[type="submit"]:focus, input[type="button"]:hover, select:hover, select:focus, select:active, input[type="button"]:focus, .button:hover { input[type="submit"]:hover, input[type="submit"]:focus,
background:rgba(250,250,250,.9); color:#333; input[type="button"]:hover, input[type="button"]:focus,
button:hover, button:focus,
.button:hover, .button:focus,
select:hover, select:focus, select:active {
background:rgba(250,250,250,.9);
color:#333;
} }
input[type="submit"] img, input[type="button"] img, button img, .button img { cursor:pointer; } input[type="submit"] img, input[type="button"] img, button img, .button img { cursor:pointer; }
#header .button { border:none; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } #header .button { border:none; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; }
/* disabled input fields and buttons */
input:disabled, input:disabled:hover, input:disabled:focus,
button:disabled, button:disabled:hover, button:disabled:focus,
.button:disabled, .button:disabled:hover, .button:disabled:focus {
background: rgba(230,230,230,.9);
color: #999;
cursor: default;
}
/* Primary action button, use sparingly */ /* Primary action button, use sparingly */
.primary, input[type="submit"].primary, input[type="button"].primary, button.primary, .button.primary { .primary, input[type="submit"].primary, input[type="button"].primary, button.primary, .button.primary {
border:1px solid #1d2d44; border:1px solid #1d2d44;