add support of text color

This commit is contained in:
Adrien Beudin 2016-04-13 11:45:26 +02:00
parent f3e94496a8
commit 3b13ee03a2
10 changed files with 29 additions and 25 deletions

View File

@ -8,6 +8,7 @@ body {
height: 100%; height: 100%;
width: 100%; width: 100%;
background-color: #FBFBFB; background-color: #FBFBFB;
color: black;
margin: 0; margin: 0;
} }
@ -103,7 +104,6 @@ a {
line-height: 1.8em; line-height: 1.8em;
margin-left: 21%; margin-left: 21%;
margin-right: 21%; margin-right: 21%;
color: black;
} }
.paragraph { .paragraph {
@ -112,7 +112,6 @@ a {
font-size: 1em; font-size: 1em;
margin-left: 21%; margin-left: 21%;
margin-right: 21%; margin-right: 21%;
color: #333;
} }
.paragraph h2 { .paragraph h2 {
@ -120,7 +119,6 @@ a {
font-weight: normal; font-weight: normal;
font-size: 2.5em; font-size: 2.5em;
text-transform: uppercase; text-transform: uppercase;
color: black;
line-height: 1.4em; line-height: 1.4em;
} }

View File

@ -1,7 +1,7 @@
{% set image = Image(section.image) %} {% set image = Image(section.image) %}
{% set caption = section.text %} {% set caption = section.text %}
{{ image.copy()}} {{ image.copy()}}
{% if section.color %} {% if section.background %}
<div style="padding: 1px 0px;background: {{ section.background }};"> <div style="padding: 1px 0px;background: {{ section.background }};">
{% endif %} {% endif %}
<section class="bordered-picture baguette"> <section class="bordered-picture baguette">
@ -16,7 +16,7 @@
</div> </div>
</a> </a>
</section> </section>
{% if section.color %} {% if section.background %}
</div> </div>
{% endif %} {% endif %}

View File

@ -1,12 +1,12 @@
{% if section.color %} {% if section.background or section.color %}
<div style="padding: 1px 0px;background: {{ section.background }};"> <div style="{% if section.background -%}padding: 1px 0px;background: {{ section.background }};{% endif %}{% if section.color -%}color: {{ section.color }};{% endif %}">
{% endif %} {% endif %}
<section class="html"> <section class="html">
<center> <center>
{{ section.html }} {{ section.html }}
</center> </center>
</section> </section>
{% if section.color %} {% if section.background or section.color %}
</div> </div>
{% endif %} {% endif %}

View File

@ -1,5 +1,5 @@
{% if section.color %} {% if section.background or section.color %}
<div style="padding: 1px 0px;background: {{ section.background }};"> <div style="{% if section.background -%}padding: 1px 0px;background: {{ section.background }};{% endif %}{% if section.color -%}color: {{ section.color }};{% endif %}">
{% endif %} {% endif %}
<section class="paragraph"> <section class="paragraph">
{% if section.title %} {% if section.title %}
@ -9,6 +9,6 @@
{% endif %} {% endif %}
<p>{{ section.text }}</p> <p>{{ section.text }}</p>
</section> </section>
{% if section.color %} {% if section.background or section.color %}
</div> </div>
{% endif %} {% endif %}

View File

@ -1,4 +1,4 @@
{% if section.color %} {% if section.background %}
<div style="padding: 1px 0px;background: {{ section.background }};"> <div style="padding: 1px 0px;background: {{ section.background }};">
{% endif %} {% endif %}
<section class="pictures-group baguette"> <section class="pictures-group baguette">
@ -25,6 +25,6 @@
</div> </div>
{% endfor %} {% endfor %}
</section> </section>
{% if section.color %} {% if section.background %}
</div> </div>
{% endif %} {% endif %}

View File

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

View File

@ -120,3 +120,9 @@ main {
.fixed-action-btn.horizontal ul { .fixed-action-btn.horizontal ul {
top: 22%; top: 22%;
} }
.card .card-image .card-title {
background-color: rgba(0, 0, 0, 0.3);
width: 100%;
height: 100%;
}

View File

@ -1,11 +1,11 @@
{% if section.background %} {% if section.background or section.color %}
<div style="padding: 1px 0px;background: {{ section.background }};"> <div style="{% if section.background -%}padding: 1px 0px;background: {{ section.background }};{% endif %}{% if section.color -%}color: {{ section.color }};{% endif %}">
{% endif %} {% endif %}
<section class="html"> <section class="html">
<center> <center>
{{ section.html }} {{ section.html }}
</center> </center>
</section> </section>
{% if section.background %} {% if section.background or section.color %}
</div> </div>
{% endif %} {% endif %}

View File

@ -1,5 +1,5 @@
{% if section.background %} {% if section.background or section.color %}
<div style="padding: 1px 0px;background: {{ section.background }};"> <div style="{% if section.background -%}padding: 1px 0px;background: {{ section.background }};{% endif %}{% if section.color -%}color: {{ section.color }};{% endif %}">
{% endif %} {% endif %}
<div class="container"> <div class="container">
{% if section.title %} {% if section.title %}
@ -11,6 +11,6 @@
<p class="flow-text">{{ section.text }}</p> <p class="flow-text">{{ section.text }}</p>
</div> </div>
</div> </div>
{% if section.background %} {% if section.background or section.color %}
</div> </div>
{% endif %} {% endif %}

View File

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