Commit 811a1b0e authored by Ana Isabel Carvalho's avatar Ana Isabel Carvalho

Working on layout: button adjustments, page max-width, menu items

parent 93d3c728
......@@ -96,6 +96,16 @@ code, pre {
padding: 0.125rem 0.3125rem 0.0625rem;
}
.menu {
font-size: 1rem;
font-family: "PropCourierSans", Roboto, "DejaVu Sans", Helvetica, Arial, sans-serif;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
}
/* General
*/
......@@ -132,6 +142,11 @@ body {
margin-top: 2rem;
}
#wrapper .grid-container,
#footer .grid-container {
max-width: 74rem;
}
#footer {
border-top: 1px solid #18BC60;
margin-top: 2rem;
......@@ -196,10 +211,6 @@ ul.no-bullet {
}
#top-nav nav .menu {
font-family: "PropCourierSans", Roboto, "DejaVu Sans", Helvetica, Arial, sans-serif;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
background: #fff;
}
......@@ -302,23 +313,19 @@ ul.index li .author { display: block; }
#homepage ul.index li .author { display: inline; }
ul.extras li {
display: inline-block;
}
#category ul.menu {
font-size: 1rem;
font-family: "PropCourierSans", Roboto, "DejaVu Sans", Helvetica, Arial, sans-serif;
font-weight: 700;
text-transform: none;
border: 1px solid #18BC60;
margin-top: 1.5rem;
}
#category ul.menu li {
border-left: 1px solid #18BC60;
border-right: 1px solid #18BC60;
}
#category ul.menu li:first-child {
border-left: 0;
}
/* Article
......@@ -391,11 +398,13 @@ article .entry-content {
article .entry-content p,
article .entry-content ul,
article .entry-content ol {
article .entry-content ol,
.page p, .page ul, .page ol {
font-size: 120%;
}
article .entry-content li > p {
article .entry-content li > p,
.page li > p {
font-size: 100%;
}
......
......@@ -93,9 +93,9 @@
<div class="grid-x grid-margin-x">
<div class="cell small-12 medium-6">
<ul class="article-extras">
<li><a class="hollow button" target="_blank" href="https://gitlab.com/libregraphicsmag/libregraphicsmag-textfiles/raw/master/content/issue{{ article.category.slug }}/{{ article.source_path.split("/")[-1] }}">Source Markdown file</a></li>
<li><a class="hollow button" target="_blank" href="http://libregraphicsmag.com/files/libregraphicsmag_{{ article.category.slug }}_lowquality.pdf#page={{ article.source_path.split("/")[-1][:2] }}">Read in the original PDF</a></li>
<li><a class="hollow button" target="_blank" href="http://libregraphicsmag.com/">Get a printed copy</a></li>
<li><a class="hollow button" target="_blank" href="https://gitlab.com/libregraphicsmag/libregraphicsmag-textfiles/raw/master/content/issue{{ article.category.slug }}/{{ article.source_path.split("/")[-1] }}">Source Markdown file</a></li>
</ul>
{% include 'taglist.html' %}
<h5 class="subheader">Other articles in "{{ article.section }}"</h5>
......
......@@ -42,7 +42,7 @@
<li><a href="{{ SITEURL }}/categories.html">Issue</a>
<ul class="menu">
{% for cat, null in categories %}
<li class="cell auto"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat.slug }}</a></li>
<li class="cell auto"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat.slug.replace('-', ' ') }}</a></li>
{% endfor %}
</ul>
</li>
......
......@@ -22,7 +22,7 @@
<li><a class="hollow button" href="{{ category.page.gitrepo }}">Source</a></li>
<li><a class="hollow button" href="{{ category.page.pdfhigh }}">↓ PDF high-res</a></li>
<li><a class="hollow button" href="{{ category.page.pdflow }}">↓ PDF low-res</a></li>
<li><a class="hollow button" href="http://libregraphicsmag.com">Buy print issue ↗</a></li>
<li><a class="hollow button" href="http://libregraphicsmag.com">Get a printed issue ↗</a></li>
</ul>
{{ category.page.content }}
{% endif %}
......@@ -41,7 +41,7 @@
{% if article.authors %}
<span class="author">
{% for author in article.authors %}
<em>{{ author }}</em>{% if not loop.last %}, {% endif %}
<a href="{{ SITEURL }}/authors.html#{{ author.slug }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</span>
{% endif %}
......@@ -55,11 +55,11 @@
{% for cat, articles in categories %}
{% if cat == category %}
<li class="is-active"><a href="{{ SITEURL }}/{{ cat.url }}" title="{{ cat.page.title }}">
{{ cat.slug }}
{{ cat.slug.replace('-', ' ') }}
</a></li>
{% else %}
<li><a href="{{ SITEURL }}/{{ cat.url }}" title="{{ cat.page.title }}">
{{ cat.slug }}
{{ cat.slug.replace('-', ' ') }}
</a></li>
{% endif %}
{% endfor %}
......
......@@ -18,7 +18,7 @@
{% endblock meta_tags_in_head %}
{% block content %}
<section class="grid-container">
<section class="grid-container page">
<h2>{{ page.title }}</h2>
<div id="{{ page.slug }}" class="content">
{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment