css-team: correct list commands

git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@66 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
britea 2018-11-08 19:47:03 +00:00
parent 73bbc26981
commit f321427165
5 changed files with 8 additions and 8 deletions

View File

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

View File

@ -1,12 +1,12 @@
ol {
list-style: none;
counter-reset: command;
background-color: #bdbdbd;
border-radius: 50px;
width: 50%;
}
.list-commands {
border-radius: 50px;
background-color: #bdbdbd;
counter-increment: command;
margin-bottom: 5px;
@ -32,7 +32,7 @@ ol {
display: inline-block;
}
ol:hover{
.list-commands:hover{
background-color: #646464;
}

View File

@ -1,5 +1,5 @@
---
layout: topic
category: advanced
category-page: advanced
title: Advanced Commands
---

View File

@ -1,7 +1,7 @@
---
layout: topic
category: basic
category-page: basic
title: Basic Commands
---
<p class="boh">Here we will learn some basic commands...</p>
<p>Here we will learn some basic commands...</p>

View File

@ -1,5 +1,5 @@
---
layout: topic
category: intermediate
category-page: intermediate
title: Intermediate Commands
---