Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions helios/media/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,40 @@ table.pretty th, td {
padding: 0.3em;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
body {
overflow-x: hidden;
}

#content {
position: relative;
width: 100%;
margin-left: 0;
padding: 10px 15px;
box-sizing: border-box;
border-left: none;
border-right: none;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}

#header, #footer {
position: sticky;
left: 0;
width: 100%;
background: #eee;
}

/* Keep table as normal table, let content scroll */
table.pretty {
width: auto;
min-width: 100%;
}

table.pretty th,
table.pretty td {
white-space: nowrap;
}
}

1 change: 1 addition & 0 deletions helios/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
xml:lang="{% firstof LANGUAGE_CODE 'en' %}"
lang="{% firstof LANGUAGE_CODE 'en' %}">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{% endblock %} - Helios</title>
{% block css %}
<!--
Expand Down
26 changes: 26 additions & 0 deletions helios_auth/media/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,30 @@ body {

#election_info {
font-size: 16pt;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
body {
overflow-x: hidden;
}

#content {
position: relative;
width: 100%;
margin-left: 0;
padding: 10px 15px;
box-sizing: border-box;
border-left: none;
border-right: none;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}

#header, #footer {
position: sticky;
left: 0;
width: 100%;
background: #eee;
}
}
1 change: 1 addition & 0 deletions helios_auth/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
xml:lang="{% firstof LANGUAGE_CODE 'en' %}"
lang="{% firstof LANGUAGE_CODE 'en' %}">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Authentication{% endblock %} - Helios</title>
{% block css %}
<!--
Expand Down