add quote section

This commit is contained in:
Adrien Beudin 2017-05-09 14:37:32 +02:00
parent b351bdd789
commit d6bc47a939
3 changed files with 25 additions and 2 deletions

View File

@ -449,10 +449,11 @@ blockquote {
margin: 1.5em 10px; margin: 1.5em 10px;
padding: 0.5em 10px; padding: 0.5em 10px;
quotes: "\201C""\201D""\2018""\2019"; quotes: "\201C""\201D""\2018""\2019";
color: #8a8989;
} }
blockquote:before { blockquote:before {
color: #ccc; color: #8a8989;
content: open-quote; content: open-quote;
font-size: 4em; font-size: 4em;
line-height: 0.1em; line-height: 0.1em;
@ -461,7 +462,7 @@ blockquote:before {
} }
blockquote:after { blockquote:after {
color: #ccc; color: #8a8989;
content: close-quote; content: close-quote;
font-size: 4em; font-size: 4em;
line-height: 0.1em; line-height: 0.1em;

View File

@ -0,0 +1,11 @@
{% if section.background or section.color %}
<div class="bg-section" style="{% if section.background -%}background: {{ section.background }};{% endif %}{% if section.color -%}color: {{ section.color }};{% endif %}">
{% endif %}
<section class="text">
<blockquote>
{{ section.text }}
</blockquote>
</section>
{% if section.background or section.color %}
</div>
{% endif %}

View File

@ -0,0 +1,11 @@
{% if section.background or section.color %}
<div class="bg-section" style="{% if section.background -%}background: {{ section.background }};{% endif %}{% if section.color -%}color: {{ section.color }};{% endif %}">
{% endif %}
<div class="container flow-text">
<blockquote>
{{ section.text }}
</blockquote>
</div>
{% if section.background or section.color %}
</div>
{% endif %}