mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
app: Make the toggle-button responsive
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
parent
1a65c88881
commit
fec995d7e0
@ -26,17 +26,21 @@
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
<div id='app-toggle-container' class="app-toggle-container">
|
||||
{% if is_enabled %}
|
||||
<button id="app-toggle-button" value="False" class="btn toggle-button toggle-button--toggled"></button>
|
||||
{% else %}
|
||||
<button id="app-toggle-button" value="True" class="btn toggle-button"></button>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<header>
|
||||
{% block pagetitle %}
|
||||
<h2>{{ name }}</h2>
|
||||
{% endblock %}
|
||||
<section class='header-bar'>
|
||||
{% block pagetitle %}
|
||||
<h2>{{ name }}</h2>
|
||||
{% endblock %}
|
||||
|
||||
<div id='app-toggle-container' class="app-toggle-container">
|
||||
{% if is_enabled %}
|
||||
<button id="app-toggle-button" value="False" class="btn toggle-button toggle-button--toggled"></button>
|
||||
{% else %}
|
||||
<button id="app-toggle-button" value="True" class="btn toggle-button"></button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% block description %}
|
||||
{% for paragraph in description %}
|
||||
@ -44,7 +48,7 @@
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
</header>
|
||||
|
||||
|
||||
{% if manual_page %}
|
||||
<p class="manual-page">
|
||||
<a href="{% url 'help:manual-page' lang='-' page=manual_page %}">
|
||||
@ -117,6 +121,6 @@
|
||||
value="{% trans "Update setup" %}"/>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
<script src="{% static 'theme/js/app.template.js' %}"></script>
|
||||
{% endblock %}
|
||||
|
||||
@ -483,7 +483,7 @@ a.menu_link_active {
|
||||
.toggle-button::before {
|
||||
content: '';
|
||||
display: block;
|
||||
height: 18px;
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
border-radius: 100%;
|
||||
background: #fff;
|
||||
@ -503,3 +503,13 @@ a.menu_link_active {
|
||||
transform: translateY(-50%) translateX(-116%)
|
||||
}
|
||||
|
||||
.header-bar {
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
justify-content: space-between;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.header-bar .app-toggle-container, .header-bar h2 {
|
||||
margin: auto 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user