From 56404bc89b590ee48313634b0bf2be8591fae233 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 25 Jul 2013 21:16:43 -0700 Subject: Add `.panel-title` to panel component to mirror modals /cc @leeaston --- less/panels.less | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'less') diff --git a/less/panels.less b/less/panels.less index a08febef3..691a15545 100644 --- a/less/panels.less +++ b/less/panels.less @@ -17,14 +17,20 @@ .panel-heading { margin: -15px -15px 15px; padding: 10px 15px; - font-size: (@font-size-base * 1.25); - font-weight: 500; background-color: @panel-heading-bg; border-bottom: 1px solid @panel-border; border-top-left-radius: (@panel-border-radius - 1); border-top-right-radius: (@panel-border-radius - 1); } +// Within heading, strip any `h*` tag of it's default margins for spacing. +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: (@font-size-base * 1.25); + font-weight: 500; +} + // Optional footer (stays gray in every modifier class) .panel-footer { margin: 15px -15px -15px; -- cgit v1.2.3