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:
parent
75c070594c
commit
de0293b326
2 changed files with 9 additions and 11 deletions
site
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue