Change the name of the CSS class 'element' to 'plugins-box' and centering the text

This commit is contained in:
Nels885 2019-12-05 11:49:34 +01:00
parent 2ae48a2ef2
commit 7693e42aa1
2 changed files with 3 additions and 2 deletions
pwnagotchi/ui/web
static/css
templates

@ -72,10 +72,11 @@ li.navitem {
justify-content: space-around; justify-content: space-around;
} }
.element { .plugins-box {
margin: 0.5rem; margin: 0.5rem;
padding: 0.2rem; padding: 0.2rem;
border-style: groove; border-style: groove;
border-radius: 0.5rem; border-radius: 0.5rem;
background-color: lightgrey; background-color: lightgrey;
text-align: center;
} }

@ -28,7 +28,7 @@ $(function(){
{% block content %} {% block content %}
<div id="container"> <div id="container">
{% for name in database.keys() %} {% for name in database.keys() %}
<div class="element"> <div class="plugins-box">
<h4> <h4>
<a {% if name in loaded and loaded[name].on_webhook is defined %} href="/plugins/{{name}}" {% endif %}>{{name}}</a> <a {% if name in loaded and loaded[name].on_webhook is defined %} href="/plugins/{{name}}" {% endif %}>{{name}}</a>
</h4> </h4>