css fix for mobile nav bar

master
Aevann 2023-05-11 16:06:18 +03:00
parent 811303dae7
commit 0de95fa9cd
2 changed files with 20 additions and 16 deletions

View File

@ -7429,3 +7429,7 @@ th.disable-sort-click[disabled] {
margin-bottom: 50px; margin-bottom: 50px;
} }
} }
#mobile-bottom-navigation-bar > button {
overflow: visible
}

View File

@ -2,76 +2,76 @@
<div class="row fixed-bottom bg-white border-top p-2" id="mobile-bottom-navigation-bar" <div class="row fixed-bottom bg-white border-top p-2" id="mobile-bottom-navigation-bar"
style="z-index: 1000; bottom: 0px; transition: bottom cubic-bezier(0, 0, 0.2, 1) 220ms;"> style="z-index: 1000; bottom: 0px; transition: bottom cubic-bezier(0, 0, 0.2, 1) 220ms;">
<button type="button" class="col px-0 ml-3 btn btn-dead m-0" style="background: None !important; border: None;"> <button type="button" class="nobackground border-0 col px-0 ml-3 btn btn-dead m-0">
<a href="/" class="text-decoration-none"> <a href="/" class="text-decoration-none">
<div class="text-center {% if request.path=='/' and request.full_path!='/?sort=hot&t=all' and request.full_path!='/?sort=new&t=all' %}text-primary{% else %}text-muted{% endif %}"> <div class="text-center {% if request.path=='/' and request.full_path!='/?sort=hot&t=all' and request.full_path!='/?sort=new&t=all' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-home-alt text-lg"></i> <i class="fas fa-home-alt text-lg"></i>
<div class="text-small">Home</div> <div class="text-small-extra">Home</div>
</div> </div>
</a> </a>
</button> </button>
{% if v and v.defaultsorting == 'new' %} {% if v and v.defaultsorting == 'new' %}
<button type="button" class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;"> <button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0">
<a href="/?sort=hot&t=all" class="text-decoration-none"> <a href="/?sort=hot&t=all" class="text-decoration-none">
<div class="text-center {% if request.full_path=='/?sort=hot&t=all' %}text-primary{% else %}text-muted{% endif %}"> <div class="text-center {% if request.full_path=='/?sort=hot&t=all' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-fire text-lg"></i> <i class="fas fa-fire text-lg"></i>
<div class="text-small">Hot</div> <div class="text-small-extra">Hot</div>
</div> </div>
</a> </a>
</button> </button>
{% else %} {% else %}
<button type="button" class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;"> <button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0">
<a href="/?sort=new&t=all" class="text-decoration-none"> <a href="/?sort=new&t=all" class="text-decoration-none">
<div class="text-center {% if request.full_path=='/?sort=new&t=all' %}text-primary{% else %}text-muted{% endif %}"> <div class="text-center {% if request.full_path=='/?sort=new&t=all' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-sparkles text-lg"></i> <i class="fas fa-sparkles text-lg"></i>
<div class="text-small">New</div> <div class="text-small-extra">New</div>
</div> </div>
</a> </a>
</button> </button>
{% endif %} {% endif %}
<button type="button" class="col px-2 btn btn-dead m-0" style="background: None !important; border: None;"> <button type="button" class="nobackground border-0 col px-0 mr-2 btn btn-dead m-0">
<a href="/comments" class="text-decoration-none"> <a href="/comments" class="text-decoration-none">
<div class="text-center {% if request.path=='/comments' %}text-primary{% else %}text-muted{% endif %}"> <div class="text-center {% if request.path=='/comments' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-comment-dots text-lg"></i> <i class="fas fa-comment-dots text-lg"></i>
<div class="text-small">Comments</div> <div class="text-small-extra">Comments</div>
</div> </div>
</a> </a>
</button> </button>
<button type="button" class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;"> <button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0 ml-1">
<a href="/leaderboard" class="text-decoration-none"> <a href="/leaderboard" class="text-decoration-none">
<div class="text-center {% if request.path=='/leaderboard' %}text-primary{% else %}text-muted{% endif %}"> <div class="text-center {% if request.path=='/leaderboard' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-trophy text-lg"></i> <i class="fas fa-trophy text-lg"></i>
<div class="text-small">Leaderboard</div> <div class="text-small-extra">Leaderboard</div>
</div> </div>
</a> </a>
</button> </button>
{% if v %} {% if v %}
{% if FEATURES['CHAT'] and v.admin_level >= PERMS['CHAT'] -%} {% if FEATURES['CHAT'] and v.admin_level >= PERMS['CHAT'] -%}
<button type="button" class="col px-0 btn btn-dead m-0 pt-0" style="background: None !important; border: None;"> <button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0 pt-0">
<a href="/chat" class="text-decoration-none"> <a href="/chat" class="text-decoration-none">
<div class="text-center {% if request.path=='/chat' %}text-primary{% else %}text-muted{% endif %}"> <div class="text-center {% if request.path=='/chat' %}text-primary{% else %}text-muted{% endif %}">
<b class="text-lg" style="padding-top:10px" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users in chat right now">{{loggedin_chat}}</b> <b class="text-lg" style="padding-top:10px" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users in chat right now">{{loggedin_chat}}</b>
<div class="text-small">Chat</div> <div class="text-small-extra">Chat</div>
</div> </div>
</a> </a>
</button> </button>
{%- endif %} {%- endif %}
{% if FEATURES['AWARDS'] -%} {% if FEATURES['AWARDS'] -%}
<button type="button" class="col px-0 mr-3 btn btn-dead m-0" style="background: None !important; border: None;"> <button type="button" class="nobackground border-0 col px-0 mr-3 btn btn-dead m-0">
<a href="/shop/awards" class="text-decoration-none"> <a href="/shop/awards" class="text-decoration-none">
<div class="text-center {% if request.path=='/shop/awards' %}text-primary{% else %}text-muted{% endif %}"> <div class="text-center {% if request.path=='/shop/awards' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-store text-lg"></i> <i class="fas fa-store text-lg"></i>
<div class="text-small">Shop</div> <div class="text-small-extra">Shop</div>
</div> </div>
</a> </a>
</button> </button>
{%- endif %} {%- endif %}
{% else %} {% else %}
<button type="button" class="col px-0 mr-3 btn btn-dead m-0" style="background: None !important; border: None;"> <button type="button" class="nobackground border-0 col px-0 mr-3 btn btn-dead m-0">
<a href="/signup?redirect={{request.full_path | urlencode}}" class="text-decoration-none"> <a href="/signup?redirect={{request.full_path | urlencode}}" class="text-decoration-none">
<div class="text-center text-muted"> <div class="text-center text-muted">
<i class="fas fa-user-plus text-lg"></i> <i class="fas fa-user-plus text-lg"></i>
<div class="text-small">Sign Up</div> <div class="text-small-extra">Sign Up</div>
</div> </div>
</a> </a>
</button> </button>