mirror of
https://github.com/metagov/govarch-website.git
synced 2025-06-09 14:10:48 +00:00
improve site navigation
This commit is contained in:
parent
1053cda855
commit
492016151a
8
_data/menu.yml
Normal file
8
_data/menu.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
- title: Home
|
||||||
|
url: /
|
||||||
|
|
||||||
|
- title: About
|
||||||
|
url: /about.html
|
||||||
|
|
||||||
|
- title: Theme Designer
|
||||||
|
url: http://patdryburgh.com
|
@ -23,9 +23,15 @@ layout: default
|
|||||||
<ul>
|
<ul>
|
||||||
{% for item in site.data.menu %}
|
{% for item in site.data.menu %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ item.url | prepend: baseurl }}">
|
{% if item.url contains 'http' %}
|
||||||
{{ item.title }}
|
<a href="{{ item.url }}">
|
||||||
</a>
|
{{ item.title }}
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="{{ item.url | prepend: site.baseurl }}">
|
||||||
|
{{ item.title }}
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -1,29 +1,29 @@
|
|||||||
article > * {
|
.post > * {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
max-width: 36rem;
|
max-width: 36rem;
|
||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
article > h1 {
|
.post > h1 {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
max-width: 48rem;
|
max-width: 48rem;
|
||||||
padding: 2em 1em;
|
padding: 2em 1em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
article p {
|
.post p {
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
text-indent: 1.5rem;
|
text-indent: 1.5rem;
|
||||||
text-justify: inter-word;
|
text-justify: inter-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
article p:first-of-type,
|
.post p:first-of-type,
|
||||||
article h2 + p {
|
.post h2 + p {
|
||||||
text-indent: 0;
|
text-indent: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
article img {
|
.post img {
|
||||||
margin-left: -1em;
|
margin-left: -1em;
|
||||||
display: flex;
|
display: flex;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@ -31,7 +31,7 @@ article img {
|
|||||||
margin: 2em auto;
|
margin: 2em auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
article li {
|
.post li {
|
||||||
margin-left: 1.5rem;
|
margin-left: 1.5rem;
|
||||||
margin-right: 1.5rem;
|
margin-right: 1.5rem;
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
.site-masthead h1 {
|
.site-masthead h1 {
|
||||||
font-size: 3em;
|
font-size: 3em;
|
||||||
margin-bottom: .125em;
|
margin-bottom: 0;
|
||||||
@media (min-width: $on-tablet) {
|
@media (min-width: $on-tablet) {
|
||||||
font-size: 6em;
|
font-size: 6em;
|
||||||
}
|
}
|
||||||
@ -29,10 +29,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.site-navigation {
|
.site-navigation {
|
||||||
position: absolute;
|
margin-top: 4rem;
|
||||||
bottom: .75em;
|
|
||||||
left: 2em;
|
|
||||||
right: 2em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-navigation ul {
|
.site-navigation ul {
|
||||||
@ -53,4 +50,8 @@
|
|||||||
display: block;
|
display: block;
|
||||||
padding: .25em .5em;
|
padding: .25em .5em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user