diff options
Diffstat (limited to 'themes/elenq')
-rw-r--r-- | themes/elenq/static/css/news.css | 27 | ||||
-rw-r--r-- | themes/elenq/static/css/style.css | 31 | ||||
-rw-r--r-- | themes/elenq/templates/index.html | 17 |
3 files changed, 36 insertions, 39 deletions
diff --git a/themes/elenq/static/css/news.css b/themes/elenq/static/css/news.css deleted file mode 100644 index 957978b..0000000 --- a/themes/elenq/static/css/news.css +++ /dev/null @@ -1,27 +0,0 @@ -/* News section in the first page - */ - -.news p{ /* Reduce margin in the news section*/ - margin-bottom: 1ex; -} - -.news_date{ - font-style: italic; -} -@media (min-width: 800px){ /*more than a tablet*/ - .news_header{ - width: 100%; - min-width: 100%; - display: inline-flex; - flex: 1; - -webkit-flex: 1; /* Safari 6.1+ */ - -ms-flex: 1; /* IE 10 */ - justify-content: space-between; - flex-wrap: nowrap; - align-items: baseline; - } - .news_date{ - font-style: normal; - font-size: 110%; - } -} diff --git a/themes/elenq/static/css/style.css b/themes/elenq/static/css/style.css index 0f27a5f..c4b257c 100644 --- a/themes/elenq/static/css/style.css +++ b/themes/elenq/static/css/style.css @@ -283,7 +283,7 @@ p { .entry-content{ - margin-top: 3rem; + margin-top: 1rem; } .entry-content table{ @@ -313,3 +313,32 @@ li{ width: 120px; margin-top: 0; } + + +/* News section in the first page + */ + +.hentry p{ /* Reduce margin in the news section*/ + margin-bottom: 1ex; +} + +.published{ + font-style: italic +} + +@media (min-width: 800px){ /*more than a tablet*/ + .hentry header{ + width: 100%; + min-width: 100%; + display: inline-flex; + flex: 1; + -webkit-flex: 1; /* Safari 6.1+ */ + -ms-flex: 1; /* IE 10 */ + justify-content: space-between; + flex-wrap: nowrap; + align-items: baseline; + } + .published{ + font-style: normal; + } +} diff --git a/themes/elenq/templates/index.html b/themes/elenq/templates/index.html index 169e661..8565cc3 100644 --- a/themes/elenq/templates/index.html +++ b/themes/elenq/templates/index.html @@ -7,17 +7,12 @@ <ol id="post-list"> {% for article in articles_page.object_list %} - <li><article class="hentry"> - <header> <h3 class="entry-title"><a class="text-nodeco-black" href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h3> </header> - <footer class="post-info"> - <time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time> - <address class="vcard author">By - {% for author in article.authors %} - <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> - {% endfor %} - </address> - </footer><!-- /.post-info --> - <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content --> + <li><article class="hentry"> + <header> + <h3 class="entry-title"><a class="text-nodeco-black" href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h3> + <time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time> </header> + <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content --> + <footer><a href="{{SITEURL}}/{{article.url}} ">Read More</a></footer> </article></li> {% endfor %} </ol><!-- /#posts-list --> |