commit
48d250f8a1
@ -9,7 +9,7 @@ CHANGELOG
|
|||||||
* possibility to use a range for the full picture date https://github.com/Psycojoker/prosopopee#full-screen-picture-with-or-without-text-on-it by beudbeud
|
* possibility to use a range for the full picture date https://github.com/Psycojoker/prosopopee#full-screen-picture-with-or-without-text-on-it by beudbeud
|
||||||
* Update material theme by beudbeud
|
* Update material theme by beudbeud
|
||||||
* social share https://github.com/Psycojoker/prosopopee#share by beudbeud
|
* social share https://github.com/Psycojoker/prosopopee#share by beudbeud
|
||||||
* Define background of section https://github.com/abeudin/prosopopee#background-settings by beudbeud
|
* Define background and text color of section https://github.com/abeudin/prosopopee#background-settings by beudbeud
|
||||||
|
|
||||||
0.2 (2016-02-23)
|
0.2 (2016-02-23)
|
||||||
----------------
|
----------------
|
||||||
|
16
README.md
16
README.md
@ -423,11 +423,23 @@ Exemple for background color
|
|||||||
or you can use picture
|
or you can use picture
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: bordered-picture
|
- type: text
|
||||||
background: "url(background_picture.jpg)"
|
background: "url(background_picture.jpg)"
|
||||||
image: another_picture.jpg
|
text: Some text
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Text color settings
|
||||||
|
|
||||||
|
For text, html and paragraph section you can define the text color.
|
||||||
|
|
||||||
|
Exemple
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- type: bordered-picture
|
||||||
|
color: "#333"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
As a recap, here is how the files of the example gallery are organised:
|
As a recap, here is how the files of the example gallery are organised:
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 %}
|
||||||
|
|
||||||
|
@ -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 %}
|
||||||
|
|
||||||
|
@ -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 %}
|
||||||
|
@ -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 %}
|
||||||
|
@ -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 %}
|
||||||
|
@ -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%;
|
||||||
|
}
|
||||||
|
@ -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 %}
|
||||||
|
@ -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 %}
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user