A few CSS enhancements for markdown-displayed text

This commit is contained in:
Théophile Bastian 2017-11-02 13:32:43 +01:00
parent 13a42a9847
commit d719dde279
5 changed files with 54 additions and 24 deletions

View file

@ -225,7 +225,7 @@ header {
.main { .main {
background: #fff; background: #fff;
flex-grow: 1; flex-grow: 1;
padding: 20px; padding: 20px 40px;
width: 100%; width: 100%;
border: 1px solid rgba(140, 14, 0, 0.7); border: 1px solid rgba(140, 14, 0, 0.7);
} }
@ -249,31 +249,44 @@ header {
.main .last-publication a:hover { .main .last-publication a:hover {
box-shadow: 0 0 5px #8c0e00; box-shadow: 0 0 5px #8c0e00;
} }
/* line 176, ../sass/screen.scss */
.main .intro-text {
margin-bottom: 40px;
}
/* line 180, ../sass/screen.scss */
.main p {
margin-bottom: 1em;
}
/* line 184, ../sass/screen.scss */
.main .md-text {
text-align: justify;
font-size: 1.1em;
}
/* line 177, ../sass/screen.scss */ /* line 190, ../sass/screen.scss */
.publication-list { .publication-list {
margin: 10px 5px; margin: 10px 5px;
margin-left: 30px; margin-left: 30px;
padding: 0 30px; padding: 0 30px;
max-width: 700px; max-width: 700px;
} }
/* line 183, ../sass/screen.scss */ /* line 196, ../sass/screen.scss */
.publication-list .publication-entry { .publication-list .publication-entry {
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
border-bottom: 1px solid #86abcb; border-bottom: 1px solid #86abcb;
} }
/* line 189, ../sass/screen.scss */ /* line 202, ../sass/screen.scss */
.publication-list .publication-entry:first-child { .publication-list .publication-entry:first-child {
border-top: 1px solid #86abcb; border-top: 1px solid #86abcb;
} }
/* line 193, ../sass/screen.scss */ /* line 206, ../sass/screen.scss */
.publication-list .publication-entry > span { .publication-list .publication-entry > span {
padding: 7px 5px; padding: 7px 5px;
display: inline-block; display: inline-block;
} }
/* line 197, ../sass/screen.scss */ /* line 210, ../sass/screen.scss */
.publication-list .publication-entry .publication-date { .publication-list .publication-entry .publication-date {
text-align: right; text-align: right;
font-weight: light; font-weight: light;
@ -281,16 +294,16 @@ header {
font-style: italic; font-style: italic;
width: 100px; width: 100px;
} }
/* line 204, ../sass/screen.scss */ /* line 217, ../sass/screen.scss */
.publication-list .publication-entry .publication-descr { .publication-list .publication-entry .publication-descr {
font-size: 0.9em; font-size: 0.9em;
opacity: 0.9; opacity: 0.9;
} }
/* line 207, ../sass/screen.scss */ /* line 220, ../sass/screen.scss */
.publication-list .publication-entry .publication-descr:before { .publication-list .publication-entry .publication-descr:before {
content: " "; content: " ";
} }
/* line 211, ../sass/screen.scss */ /* line 224, ../sass/screen.scss */
.publication-list .publication-entry a.overlay { .publication-list .publication-entry a.overlay {
position: absolute; position: absolute;
z-index: 1; z-index: 1;
@ -301,12 +314,12 @@ header {
} }
@media screen and (max-width: 599px) { @media screen and (max-width: 599px) {
/* line 223, ../sass/screen.scss */ /* line 236, ../sass/screen.scss */
body { body {
padding-top: 75px; padding-top: 75px;
} }
/* line 226, ../sass/screen.scss */ /* line 239, ../sass/screen.scss */
header, .sidebar { header, .sidebar {
position: fixed; position: fixed;
top: 0; top: 0;
@ -314,7 +327,7 @@ header {
width: 100%; width: 100%;
} }
/* line 232, ../sass/screen.scss */ /* line 245, ../sass/screen.scss */
header { header {
z-index: 15; z-index: 15;
right: 60px; right: 60px;
@ -323,13 +336,13 @@ header {
height: 60px; height: 60px;
line-height: 60px; line-height: 60px;
} }
/* line 239, ../sass/screen.scss */ /* line 252, ../sass/screen.scss */
header img { header img {
max-height: 55px; max-height: 55px;
vertical-align: middle; vertical-align: middle;
} }
/* line 244, ../sass/screen.scss */ /* line 257, ../sass/screen.scss */
.sidebar { .sidebar {
z-index: 14; z-index: 14;
background: #f8ef78; background: #f8ef78;
@ -339,18 +352,18 @@ header {
max-height: 100vh; max-height: 100vh;
overflow-y: auto; overflow-y: auto;
} }
/* line 253, ../sass/screen.scss */ /* line 266, ../sass/screen.scss */
.sidebar .minimenu { .sidebar .minimenu {
position: absolute; position: absolute;
right: 5px; right: 5px;
top: 5px; top: 5px;
display: block; display: block;
} }
/* line 258, ../sass/screen.scss */ /* line 271, ../sass/screen.scss */
.sidebar .minimenu img { .sidebar .minimenu img {
height: 50px; height: 50px;
} }
/* line 262, ../sass/screen.scss */ /* line 275, ../sass/screen.scss */
.sidebar ul.nav { .sidebar ul.nav {
display: flex; display: flex;
width: 100%; width: 100%;
@ -359,17 +372,17 @@ header {
font-size: 0.95em; font-size: 0.95em;
margin-bottom: 10px; margin-bottom: 10px;
} }
/* line 270, ../sass/screen.scss */ /* line 283, ../sass/screen.scss */
.sidebar ul.nav li { .sidebar ul.nav li {
display: inline-block; display: inline-block;
min-width: 150px; min-width: 150px;
margin: 5px; margin: 5px;
} }
/* line 274, ../sass/screen.scss */ /* line 287, ../sass/screen.scss */
.sidebar ul.nav li a { .sidebar ul.nav li a {
padding: 10px; padding: 10px;
} }
/* line 281, ../sass/screen.scss */ /* line 294, ../sass/screen.scss */
.sidebar.collapse ul { .sidebar.collapse ul {
display: none; display: none;
} }

View file

@ -149,7 +149,7 @@ header {
.main { .main {
background: #fff; background: #fff;
flex-grow: 1; flex-grow: 1;
padding: 20px; padding: 20px 40px;
width: 100%; width: 100%;
border: 1px solid rgba($rouge, 0.7); border: 1px solid rgba($rouge, 0.7);
@ -172,6 +172,19 @@ header {
box-shadow: 0 0 5px $rouge; box-shadow: 0 0 5px $rouge;
} }
} }
.intro-text {
margin-bottom: 40px;
}
p {
margin-bottom: 1em;
}
.md-text {
text-align: justify;
font-size: 1.1em;
}
} }
.publication-list { .publication-list {

View file

@ -10,6 +10,8 @@
Demandez la <br />dernière édition&nbsp;!</a> Demandez la <br />dernière édition&nbsp;!</a>
</div> </div>
<div class="md-text">
{{ site_config.homepageText | markdownify }} {{ site_config.homepageText | markdownify }}
</div>
{% endblock content %} {% endblock content %}

View file

@ -11,7 +11,7 @@ Millésime {{ year_range }}
{% endif %} {% endif %}
</h2> </h2>
<div class="intro-text">{{ intro_text | safe | markdownify }}</div> <div class="intro-text md-text">{{ intro_text | safe | markdownify }}</div>
<ul class="publication-list"> <ul class="publication-list">
{% for bocal in publications %} {% for bocal in publications %}

View file

@ -5,6 +5,8 @@
{% block content %} {% block content %}
{% get_solo 'mainsite.SiteConfiguration' as site_config %} {% get_solo 'mainsite.SiteConfiguration' as site_config %}
<div class="md-text">
{{ site_config.writearticleText | markdownify }} {{ site_config.writearticleText | markdownify }}
</div>
{% endblock content %} {% endblock content %}