From 50638530e61307f174950ef295235a6dbddec6b9 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 18 Aug 2012 16:30:47 -0700 Subject: [PATCH] fixes #4445: .btn-link shouldn't have a pressed button-like state at all, so nuking everything on :active as well --- docs/assets/css/bootstrap.css | 14 +++++++++----- less/buttons.less | 11 +++++++---- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index f8f16bbf..3af4a794 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -3286,18 +3286,22 @@ input[type="submit"].btn.btn-mini { *padding-bottom: 1px; } +.btn-link, +.btn-link:active { + background-color: transparent; + background-image: none; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} + .btn-link { color: #0088cc; cursor: pointer; - background-color: transparent; - background-image: none; border-color: transparent; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; } .btn-link:hover { diff --git a/less/buttons.less b/less/buttons.less index 204b1269..e9ec87ec 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -192,18 +192,21 @@ input[type="submit"].btn { // -------------------------------------------------- // Make a button look and behave like a link -.btn-link { +.btn-link, +.btn-link:active { background-color: transparent; background-image: none; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.btn-link { border-color: transparent; cursor: pointer; color: @linkColor; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; } .btn-link:hover { color: @linkColorHover;