1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-04 12:47:35 +02:00

Fix btn link hover and tweak dropdown border/shadows

This commit is contained in:
Mark Otto
2013-01-13 04:04:16 -08:00
parent 0b31cfc90e
commit 1916eb7c7f
4 changed files with 18 additions and 9 deletions

View File

@@ -2224,10 +2224,10 @@ table th[class*="span"] {
list-style: none; list-style: none;
background-color: #ffffff; background-color: #ffffff;
border: 1px solid #ccc; border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px; border-radius: 4px;
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
-webkit-background-clip: padding-box; -webkit-background-clip: padding-box;
-moz-background-clip: padding-box; -moz-background-clip: padding-box;
background-clip: padding-box; background-clip: padding-box;
@@ -2575,11 +2575,16 @@ fieldset[disabled] .btn-link {
box-shadow: none; box-shadow: none;
} }
.btn-link,
.btn-link:hover,
.btn-link:active {
border-color: transparent;
}
.btn-link { .btn-link {
font-weight: normal; font-weight: normal;
color: #428bca; color: #428bca;
cursor: pointer; cursor: pointer;
border-color: transparent;
border-radius: 0; border-radius: 0;
} }
@@ -3345,7 +3350,7 @@ fieldset[disabled] .navbar .btn-navbar {
border-right: 7px solid transparent; border-right: 7px solid transparent;
border-bottom: 7px solid #ccc; border-bottom: 7px solid #ccc;
border-left: 7px solid transparent; border-left: 7px solid transparent;
border-bottom-color: rgba(0, 0, 0, 0.2); border-bottom-color: rgba(0, 0, 0, 0.15);
content: ''; content: '';
} }
@@ -3365,7 +3370,7 @@ fieldset[disabled] .navbar .btn-navbar {
bottom: -7px; bottom: -7px;
border-top: 7px solid #ccc; border-top: 7px solid #ccc;
border-bottom: 0; border-bottom: 0;
border-top-color: rgba(0, 0, 0, 0.2); border-top-color: rgba(0, 0, 0, 0.15);
} }
.navbar-fixed-bottom .nav > li > .dropdown-menu:after { .navbar-fixed-bottom .nav > li > .dropdown-menu:after {

View File

@@ -183,11 +183,15 @@ fieldset[disabled] .btn-link {
background-image: none; background-image: none;
.box-shadow(none); .box-shadow(none);
} }
.btn-link,
.btn-link:hover,
.btn-link:active {
border-color: transparent;
}
.btn-link { .btn-link {
color: @link-color; color: @link-color;
font-weight: normal; font-weight: normal;
cursor: pointer; cursor: pointer;
border-color: transparent;
border-radius: 0; border-radius: 0;
} }
.btn-link:hover { .btn-link:hover {

View File

@@ -49,7 +49,7 @@
border: 1px solid #ccc; // IE8 fallback border: 1px solid #ccc; // IE8 fallback
border: 1px solid @dropdown-border; border: 1px solid @dropdown-border;
border-radius: @border-radius-base; border-radius: @border-radius-base;
.box-shadow(0 5px 10px rgba(0,0,0,.2)); .box-shadow(0 6px 12px rgba(0,0,0,.175));
.background-clip(padding-box); .background-clip(padding-box);
// Aligns the dropdown menu to right // Aligns the dropdown menu to right

View File

@@ -112,7 +112,7 @@
// ------------------------- // -------------------------
@dropdown-background: #fff; @dropdown-background: #fff;
@dropdown-border: rgba(0,0,0,.2); @dropdown-border: rgba(0,0,0,.15);
@dropdown-divider-top: #e5e5e5; @dropdown-divider-top: #e5e5e5;
@dropdown-divider-bottom: #fff; @dropdown-divider-bottom: #fff;