diff --git a/src/GergelyPolonkai/FrontBundle/Resources/public/css/front.css b/src/GergelyPolonkai/FrontBundle/Resources/public/css/front.css index c13deac..91c9f62 100644 --- a/src/GergelyPolonkai/FrontBundle/Resources/public/css/front.css +++ b/src/GergelyPolonkai/FrontBundle/Resources/public/css/front.css @@ -71,21 +71,28 @@ body { } #menu { - background-color: #b5b5b5; + background-color: #f18137; height: 39px; + margin-top: 15px; +} + +#tagcloud-button { + float: left; + padding-top: 2px; + padding-left: 6px; + cursor: pointer; } #menu ul { margin: 8px; padding: 0; list-style-type: none; - text-align: right; - vertical-align: middle; + float: right; } #menu ul li { float: right; - margin-top: 10px; + margin-top: 1px; margin-bottom: 10px; margin-left: 1em; height: 30px; @@ -186,6 +193,17 @@ dd p { text-align: right; } +#tag-cloud { + position: absolute; + width: 600px; + padding: 8px; + border: 1px solid black; + background-color: #303030; + margin-left: 5px; + margin-top: 2px; + display: none; +} + #tag-cloud a { color: #b3b3b3; text-decoration: none; diff --git a/src/GergelyPolonkai/FrontBundle/Resources/public/images/tagcloud.png b/src/GergelyPolonkai/FrontBundle/Resources/public/images/tagcloud.png new file mode 100644 index 0000000..a58e4e9 Binary files /dev/null and b/src/GergelyPolonkai/FrontBundle/Resources/public/images/tagcloud.png differ diff --git a/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig b/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig index 30e9fb6..370aced 100644 --- a/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig +++ b/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig @@ -33,14 +33,8 @@
-{% if tagCloud|length > 0 %} -
-{% for cloudItem in tagCloud %} - {{ cloudItem.name }}{% if not loop.last %} | {% endif %} -{% endfor %} -
-{% endif %} +{% if tagCloud|length > 0 %} +
+{% for cloudItem in tagCloud %} + {{ cloudItem.name }}{% if not loop.last %} | {% endif %} +{% endfor %} +
+{% endif %}
{% block content %}{% endblock content %}
@@ -59,7 +60,13 @@