From 597e9f861807868d8d13bac93e8a328493fe6d54 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 18 Jun 2017 02:57:16 -0700 Subject: remove - vars, update docs to generate from data yml files, update mixins, and generate card, button, bg, and color classes from the sass map --- docs/4.0/components/card.md | 14 +++++++------- docs/4.0/utilities/colors.md | 27 ++++++--------------------- 2 files changed, 13 insertions(+), 28 deletions(-) (limited to 'docs') diff --git a/docs/4.0/components/card.md b/docs/4.0/components/card.md index bc20da88f..1c8117a9a 100644 --- a/docs/4.0/components/card.md +++ b/docs/4.0/components/card.md @@ -134,7 +134,7 @@ Card headers can be styled by adding `.card-header` to `` elements. {% example html %}
-

Featured

+

Featured

Special title treatment

With supporting text below as a natural lead-in to additional content.

@@ -186,7 +186,7 @@ Using the grid, wrap cards in columns and rows as needed.
-

Special title treatment

+

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
@@ -195,7 +195,7 @@ Using the grid, wrap cards in columns and rows as needed.
-

Special title treatment

+

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
@@ -211,7 +211,7 @@ Use our handful of [available sizing utilities]({{ site.baseurl }}/docs/{{ site. {% example html %}
-

Card title

+

Card title

With supporting text below as a natural lead-in to additional content.

Button
@@ -219,7 +219,7 @@ Use our handful of [available sizing utilities]({{ site.baseurl }}/docs/{{ site.
-

Card title

+

Card title

With supporting text below as a natural lead-in to additional content.

Button
@@ -233,7 +233,7 @@ Use custom CSS in your stylesheets or as inline styles to set a width. {% example html %}
-

Special title treatment

+

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
@@ -376,7 +376,7 @@ You can also use `.card-inverse` with the [contextual backgrounds variants](#bac
Header
-

Special title treatment

+

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
diff --git a/docs/4.0/utilities/colors.md b/docs/4.0/utilities/colors.md index 80e096cf9..3d06b3e4e 100644 --- a/docs/4.0/utilities/colors.md +++ b/docs/4.0/utilities/colors.md @@ -7,37 +7,22 @@ toc: true --- {% example html %} -

Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.

-

Nullam id dolor id nibh ultricies vehicula ut id elit.

-

Duis mollis, est non commodo luctus, nisi erat porttitor ligula.

-

Maecenas sed diam eget risus varius blandit sit amet non magna.

-

Etiam porta sem malesuada magna mollis euismod.

-

Donec ullamcorper nulla non metus auctor fringilla.

-

Eget risus varius blandit sit ultricies vehicula amet non magna.

-

Etiam porta sem malesuada ultricies vehicula.

+{% for color in site.data.theme-colors %} +

.text-{{ color.name }}

{% endfor %} {% endexample %} Contextual text classes also work well on anchors with the provided hover and focus states. **Note that the `.text-white` class has no link styling.** {% example html %} -Muted link -Primary link -Success link -Info link -Warning link -Danger link +{% for color in site.data.theme-colors %} +

{{ color.name | capitalize }} link

{% endfor %} {% endexample %} Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Background utilities **do not set `color`**, so in some cases you'll want to use `.text-*` utilities. {% example html %} -
Nullam id dolor id nibh ultricies vehicula ut id elit.
-
Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
-
Maecenas sed diam eget risus varius blandit sit amet non magna.
-
Etiam porta sem malesuada magna mollis euismod.
-
Donec ullamcorper nulla non metus auctor fringilla.
-
Cras mattis consectetur purus sit amet fermentum.
-
Cras mattis consectetur purus sit amet fermentum.
+{% for color in site.data.theme-colors %} +
.bg-{{ color.name }}
{% endfor %} {% endexample %} {% callout info %} -- cgit v1.2.3