提交 ddebdae2 编写于 作者: C codecalm

docs examples

上级 cde7a650
...@@ -83,7 +83,7 @@ If you want to create a couple of posts next to each other, add the `.row-deck` ...@@ -83,7 +83,7 @@ If you want to create a couple of posts next to each other, add the `.row-deck`
</div> </div>
</div> </div>
{% endcapture %} {% endcapture %}
{% include example.html code=code %} {% include example.html code=code columns=2 %}
## Post card with aside image ## Post card with aside image
...@@ -92,7 +92,7 @@ You can also add the image on the left side of the card. All you need do to is: ...@@ -92,7 +92,7 @@ You can also add the image on the left side of the card. All you need do to is:
{% capture code %} {% capture code %}
{% include cards/blog-single.html type="aside" liked=1 article-id=3 %} {% include cards/blog-single.html type="aside" liked=1 article-id=3 %}
{% endcapture %} {% endcapture %}
{% include example.html code=code %} {% include example.html code=code columns=2 %}
## Color variations ## Color variations
...@@ -106,19 +106,19 @@ You can also add the image on the left side of the card. All you need do to is: ...@@ -106,19 +106,19 @@ You can also add the image on the left side of the card. All you need do to is:
</div> </div>
</div> </div>
{% endcapture %} {% endcapture %}
{% include example.html code=code %} {% include example.html code=code columns=2 %}
## Stacked card ## Stacked card
{% capture code %} {% capture code %}
{% include cards/card.html class="card-stacked" title="Stacked card" %} {% include cards/card.html class="card-stacked" title="Stacked card" %}
{% endcapture %} {% endcapture %}
{% include example.html code=code %} {% include example.html code=code columns=1 %}
## Tabbed card ## Tabbed card
{% capture code %} {% capture code %}
{% include cards/card-tabs.html count=4 %} {% include cards/card-tabs.html count=4 %}
{% endcapture %} {% endcapture %}
{% include example.html code=code %} {% include example.html code=code columns=2 %}
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
{% assign code = code | replace_regex: "\n\n+", new_line %} {% assign code = code | replace_regex: "\n\n+", new_line %}
{% assign code = code | replace_regex: '<svg[^>]*>.*?<\/svg>', '<!-- SVG icon code -->' %} {% assign code = code | replace_regex: '<svg[^>]*>.*?<\/svg>', '<!-- SVG icon code -->' %}
{% assign code = code | replace_regex: 'url\(([^\)]+)\)', 'url(...)' %} {% assign code = code | replace_regex: 'url\(([^\)]+)\)', 'url(...)' %}
{% assign code = code | replace_regex: 'src="([^"]+)"', 'src="..."' %}
{% assign code = code | replace_regex: 'href="([^#][^"]+)"', 'href="#"' %}
{% assign code = code | htmlbeautifier %} {% assign code = code | htmlbeautifier %}
<div class="example-code"> <div class="example-code">
......
...@@ -55,7 +55,7 @@ $white: #ffffff !default; ...@@ -55,7 +55,7 @@ $white: #ffffff !default;
$body-bg: $light !default; $body-bg: $light !default;
$body-color: $dark !default; $body-color: $dark !default;
$text-muted-opacity: .64 !default; $text-muted-opacity: .60 !default;
$text-muted: mix($body-color, #ffffff, $text-muted-opacity * 100%) !default; $text-muted: mix($body-color, #ffffff, $text-muted-opacity * 100%) !default;
$border-color: rgba($text-muted, .24) !default; $border-color: rgba($text-muted, .24) !default;
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
font-size: $font-size-base; font-size: $font-size-base;
color: $body-color; color: $body-color;
flex: 1; flex: 1;
max-width: 100%;
} }
.example-bg { .example-bg {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册