From 0a420124ea1cc138ef8e3b0c78607bb4775083ec Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 22 Dec 2017 16:49:57 -0800 Subject: [PATCH] Restyle code element, remove docs example overflow, improve docs examples (#25054) * Restyle code element, clean up variables - Removes the padding and background-color - Changes the color to a brand color () - Add new variables to kbd element styles to account for removing the code ones - Remove overrides that were needed previously * only break between words, and override it in the pre * make file inputs 100% wide * scope custom file changes in input group for sizing * shorter button labels for responsive * narrower cards * button was too wide * downsize * fewer links in pagination * redo cell text * improve overflow docs --- assets/scss/_component-examples.scss | 1 - docs/4.0/components/buttons.md | 14 +-- docs/4.0/components/card.md | 26 ++--- docs/4.0/components/dropdowns.md | 2 +- docs/4.0/components/jumbotron.md | 4 +- docs/4.0/components/pagination.md | 12 +- docs/4.0/content/tables.md | 166 +++++++++++---------------- docs/4.0/utilities/flex.md | 12 +- docs/4.0/utilities/text.md | 9 +- scss/_code.scss | 14 +-- scss/_forms.scss | 1 + scss/_input-group.scss | 13 +++ scss/_variables.scss | 10 +- 13 files changed, 121 insertions(+), 163 deletions(-) diff --git a/assets/scss/_component-examples.scss b/assets/scss/_component-examples.scss index cb9b54fb1d..f0a1bd8fd8 100644 --- a/assets/scss/_component-examples.scss +++ b/assets/scss/_component-examples.scss @@ -118,7 +118,6 @@ position: relative; padding: 1rem; margin: 1rem (-$grid-gutter-width / 2); - overflow: auto; border: solid #f7f7f9; border-width: .2rem 0 0; @include clearfix(); diff --git a/docs/4.0/components/buttons.md b/docs/4.0/components/buttons.md index 6dfed7ddf2..b912ec89b2 100644 --- a/docs/4.0/components/buttons.md +++ b/docs/4.0/components/buttons.md @@ -125,27 +125,27 @@ Note that pre-checked buttons require you to manually add the `.active` class to {% example html %}
{% endexample %} {% example html %} -
+
{% endexample %} diff --git a/docs/4.0/components/card.md b/docs/4.0/components/card.md index af231903f7..0971e90c97 100644 --- a/docs/4.0/components/card.md +++ b/docs/4.0/components/card.md @@ -17,7 +17,7 @@ Cards are built with as little markup and styles as possible, but still manage t Below is an example of a basic card with mixed content and a fixed width. Cards have no fixed width to start, so they'll naturally fill the full width of its parent element. This is easily customized with our various [sizing options](#sizing). {% example html %} -
+
Card image cap

Card title

@@ -50,7 +50,7 @@ Card titles are used by adding `.card-title` to a `` tag. In the same way, l Subtitles are used by adding a `.card-subtitle` to a `` tag. If the `.card-title` and the `.card-subtitle` items are placed in a `.card-body` item, the card title and subtitle are aligned nicely. {% example html %} -
+

Card title

Card subtitle
@@ -66,7 +66,7 @@ Subtitles are used by adding a `.card-subtitle` to a `` tag. If the `.card-t `.card-img-top` places an image to the top of the card. With `.card-text`, text can be added to the card. Text within `.card-text` can also be styled with the standard HTML tags. {% example html %} -
+
Card image cap

Some quick example text to build on the card title and make up the bulk of the card's content.

@@ -79,7 +79,7 @@ Subtitles are used by adding a `.card-subtitle` to a `` tag. If the `.card-t Create lists of content in a card with a flush list group. {% example html %} -
+
  • Cras justo odio
  • Dapibus ac facilisis in
  • @@ -89,7 +89,7 @@ Create lists of content in a card with a flush list group. {% endexample %} {% example html %} -
    +
    Featured
    @@ -106,7 +106,7 @@ Create lists of content in a card with a flush list group. Mix and match multiple content types to create the card you need, or throw everything in there. Shown below are image styles, blocks, text styles, and a list group—all wrapped in a fixed-width card. {% example html %} -
    +
    Card image cap

    Card title

    @@ -242,7 +242,7 @@ Use our handful of [available sizing utilities]({{ site.baseurl }}/docs/{{ site. Use custom CSS in your stylesheets or as inline styles to set a width. {% example html %} -
    +

    Special title treatment

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

    @@ -256,7 +256,7 @@ Use custom CSS in your stylesheets or as inline styles to set a width. You can quickly change the text alignment of any card—in its entirety or specific parts—with our [text align classes]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/text/#text-alignment). {% example html %} -
    +

    Special title treatment

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

    @@ -264,7 +264,7 @@ You can quickly change the text alignment of any card—in its entirety or speci
    -
    +

    Special title treatment

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

    @@ -272,7 +272,7 @@ You can quickly change the text alignment of any card—in its entirety or speci
    -
    +

    Special title treatment

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

    @@ -383,7 +383,7 @@ Use [text and background utilities]({{ site.baseurl }}/docs/{{ site.docs_version {% example html %} {% for color in site.data.theme-colors %} -
    +
    Header

    {{ color.name | capitalize }} card title

    @@ -401,7 +401,7 @@ Use [border utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities {% example html %} {% for color in site.data.theme-colors %} -
    +
    Header

    {{ color.name | capitalize }} card title

    @@ -415,7 +415,7 @@ Use [border utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities You can also change the borders on the card header and footer as needed, and even remove their `background-color` with `.bg-transparent`. {% example html %} -
    +
    Header

    Success card title

    diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index b49e84f920..fd4132267c 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -563,7 +563,7 @@ By default, a dropdown menu is automatically positioned 100% from the top and al {% example html %}