css-team: correct lists topics commands

git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@79 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
britea 2018-11-09 23:57:21 +00:00
parent cdf5bdf43e
commit 960730cc7b
2 changed files with 9 additions and 11 deletions

View File

@ -9,13 +9,13 @@ layout: main
<div class="post-content">
{{ content }}
<ol>
<ul>
{% for item in site.pages %}
{% if item.category-page == page.category-page and item.layout != "topic" %}
<li class="list-commands"><a href="{{ item.url }}"><span>{{ item.title }}</span></a></li>
{% if item.category-page == page.category-page and item.layout == "page" %}
<li class="list-commands"><a href="{{ item.url }}">{{ item.title }}</a></li>
{% endif %}
{% endfor %}
</ol>
</ul>
</div>
</article>

View File

@ -1,14 +1,12 @@
ol {
ul {
list-style: none;
counter-reset: command;
width: 50%;
}
.list-commands {
border-radius: 50px;
background-color: #bdbdbd;
counter-increment: command;
margin-bottom: 5px;
transition:500ms;
a{
height:29px;
@ -22,11 +20,11 @@ ol {
}
.list-commands:before {
content: counter(command);
content: '>';
background: #6a6;
border-radius: 100%;
padding: 7px 11px;
font-size: 1.8vh;
padding: 4px 11px;
font-size: 2.8vh;
text-align: center;
display: inline-block;
}