Smaller boxes for services drop-down menu #62

Merged
meaz merged 2 commits from screen_height into master 2022-03-21 21:58:33 +01:00
2 changed files with 9 additions and 1 deletions

View File

@ -4,8 +4,15 @@ Disroot Media Queries
29-01-2019
------------------------------------*/
/* screenheight less than 800px
------------------------------------*/
@media only screen and (max-height: 800px) {
ul#nav li.dropdown {
height: 20px;
}
}
/* screenwidth less than 1000px
/* screenwidth less than 1150px
------------------------------------*/
@media only screen and (max-width: 1150px) {

View File

@ -4,6 +4,7 @@
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
<li class="dropdown {{ current_page }}">
<a href="{{ p.url }}">{{ p.menu }}</a>
{# The following if section is to get a dropdown menu based on content #}
{% if p.children.count > 0 %}
<ul class="dropdown-content">
{{ _self.loop(p) }}