From bab51d27ace206c9c691ab7a43657774cbd2b852 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 18 Aug 2013 19:40:57 -0700 Subject: Refactor panels to have a base class for improved flexibility when customizing (and no overriding to start, too) --- components.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'components.html') diff --git a/components.html b/components.html index 7475fa108..e393798e4 100644 --- a/components.html +++ b/components.html @@ -2673,14 +2673,14 @@ body { padding-bottom: 70px; }

Basic example

By default, all the .panel does is apply some basic border and padding to contain some content.

-
+
Basic panel example
{% highlight html %} -
+
Basic panel example
@@ -2690,13 +2690,13 @@ body { padding-bottom: 70px; }

Panel with heading

Easily add a heading container to your panel with .panel-heading. You may also include any <h1>-<h6> with a .panel-title class to add a pre-styled heading.

-
+
Panel heading without title
Panel content
-
+

Panel title

@@ -2706,14 +2706,14 @@ body { padding-bottom: 70px; }
{% highlight html %} -
+
Panel heading without title
Panel content
-
+

Panel title

@@ -2726,7 +2726,7 @@ body { padding-bottom: 70px; }

Wrap buttons or secondary text in .panel-footer. Note that panel footers do not inherit colors and borders when using contextual variations as they are not meant to be in the foreground.

-
+
Panel content
@@ -2734,7 +2734,7 @@ body { padding-bottom: 70px; }
{% highlight html %} -
+
Panel content
-- cgit v1.2.3 From 108d10a920449d113f6bf446941683a05607db3c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 18 Aug 2013 19:50:53 -0700 Subject: Refactor alerts to have a base class, but no default class, thus requiring a modifier class at all times --- components.html | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'components.html') diff --git a/components.html b/components.html index 7475fa108..a78033772 100644 --- a/components.html +++ b/components.html @@ -2206,22 +2206,14 @@ body { padding-bottom: 70px; }

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the alerts jQuery plugin.

-

Default alert

-

Wrap any text and an optional dismiss button in .alert for a basic warning alert message.

+

Examples

+

Wrap any text and an optional dismiss button in .alert and one of the four contextual classes (e.g., .alert-success) for basic alert messages.

-
-
- Warning! Best check yo self, you're not looking too good. -
+
+

No default class

+

Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.

-{% highlight html %} -
- Warning! Best check yo self, you're not looking too good. -
-{% endhighlight %} -

Contextual alternatives

-

Add optional classes to change an alert's connotation.

Well done! You successfully read this important alert message. @@ -2229,6 +2221,9 @@ body { padding-bottom: 70px; }
Heads up! This alert needs your attention, but it's not super important.
+
+ Warning! Best check yo self, you're not looking too good. +
Oh snap! Change a few things up and try submitting again.
@@ -2236,6 +2231,7 @@ body { padding-bottom: 70px; } {% highlight html %}
...
...
+
...
...
{% endhighlight %} -- cgit v1.2.3