From 3f64aaf82b6b3486c1b2e98e19047089fdfc331b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 12 Sep 2011 19:00:44 -0700 Subject: fix topbar link with button bug --- lib/patterns.less | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/patterns.less') diff --git a/lib/patterns.less b/lib/patterns.less index 82b7790b7..ee4a8a13d 100644 --- a/lib/patterns.less +++ b/lib/patterns.less @@ -23,7 +23,9 @@ } // Hover and active states - a:hover, + // h3 for backwards compatibility + h3 a:hover, + .brand a:hover, ul .active > a { background-color: #333; background-color: rgba(255,255,255,.05); @@ -54,6 +56,7 @@ line-height: 40px; a:hover { background-color: transparent; + color: @white; } } @@ -729,14 +732,15 @@ input[type=submit].btn { // ------ .modal-backdrop { - background-color:#000; - &.fade { opacity: 0; } + background-color: #000; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; + // Fade for backdrop + &.fade { opacity: 0; } } .modal-backdrop, .modal-backdrop.fade.in { -- cgit v1.2.3 From 206334ba70c22dc91ec9381f9693ed6356358994 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 12 Sep 2011 20:07:26 -0700 Subject: remove theme.less and split preboot.less to mixins.less and variables.less to isolate customization from function --- lib/patterns.less | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'lib/patterns.less') diff --git a/lib/patterns.less b/lib/patterns.less index ee4a8a13d..3e5e0114a 100644 --- a/lib/patterns.less +++ b/lib/patterns.less @@ -488,6 +488,35 @@ footer { // BUTTON STYLES // ------------- +// Shared colors for buttons and alerts +.btn, +.alert-message { + // Set text color + &.danger, + &.danger:hover, + &.error, + &.error:hover, + &.success, + &.success:hover, + &.info, + &.info:hover { + color: @white + } + // Danger and error appear as red + &.danger, + &.error { + .gradientBar(#ee5f5b, #c43c35); + } + // Success appears as green + &.success { + .gradientBar(#62c462, #57a957); + } + // Info appears as a neutral blue + &.info { + .gradientBar(#5bc0de, #339bb9); + } +} + // Base .btn styles .btn { // Button Base -- cgit v1.2.3