Commit 4dd3d1cdb22492fb68ff36d6efb00751c806ffaf
1 parent
95684c95
Exists in
master
and in
39 other branches
Making message list responsive
Showing
3 changed files
with
29 additions
and
11 deletions
Show diff stats
src/colab/deprecated/templates/base.html
| @@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
| 2 | {% load i18n browserid conversejs %} | 2 | {% load i18n browserid conversejs %} |
| 3 | <html> | 3 | <html> |
| 4 | <head> | 4 | <head> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| 5 | 6 | ||
| 6 | <link rel="stylesheet" href="{{ STATIC_URL }}third-party/bootstrap/css/bootstrap.css" type="text/css" media="screen, projection" /> | 7 | <link rel="stylesheet" href="{{ STATIC_URL }}third-party/bootstrap/css/bootstrap.css" type="text/css" media="screen, projection" /> |
| 7 | 8 |
src/colab/static/css/screen.css
| 1 | + | ||
| 2 | + | ||
| 3 | +body { | ||
| 4 | + font-size: 15px; | ||
| 5 | +} | ||
| 6 | + | ||
| 1 | /* Header */ | 7 | /* Header */ |
| 2 | #header-searchbox { | 8 | #header-searchbox { |
| 3 | width: 280px; | 9 | width: 280px; |
| @@ -39,9 +45,10 @@ | @@ -39,9 +45,10 @@ | ||
| 39 | background-color: #2183b3; | 45 | background-color: #2183b3; |
| 40 | padding: 2px 4px; | 46 | padding: 2px 4px; |
| 41 | border-radius: 5px; | 47 | border-radius: 5px; |
| 42 | - font-size: 90%; | 48 | + font-size: 85%; |
| 43 | color: #fff; | 49 | color: #fff; |
| 44 | - margin-right: 5px; | 50 | + margin-right: 4px; |
| 51 | + margin-left: 4px; | ||
| 45 | line-height: 2; | 52 | line-height: 2; |
| 46 | white-space: nowrap; | 53 | white-space: nowrap; |
| 47 | } | 54 | } |
| @@ -120,12 +127,24 @@ form.signup div.submit { | @@ -120,12 +127,24 @@ form.signup div.submit { | ||
| 120 | vertical-align: middle; | 127 | vertical-align: middle; |
| 121 | } | 128 | } |
| 122 | 129 | ||
| 123 | -.unstyled-list ul, ul.none { | 130 | +#filters h4 { |
| 131 | + margin-top: 25px; | ||
| 132 | +} | ||
| 133 | + | ||
| 134 | +ul.unstyled-list { | ||
| 124 | list-style-type: none; | 135 | list-style-type: none; |
| 125 | padding: 3px 0; | 136 | padding: 3px 0; |
| 126 | margin: 10px 0; | 137 | margin: 10px 0; |
| 127 | } | 138 | } |
| 128 | 139 | ||
| 140 | +ul.unstyled-list li { | ||
| 141 | + min-height: 30px; | ||
| 142 | +} | ||
| 143 | + | ||
| 144 | +ul.unstyled-list .glyphicon-chevron-right { | ||
| 145 | + font-size: 85%; | ||
| 146 | +} | ||
| 147 | + | ||
| 129 | ul.indent { | 148 | ul.indent { |
| 130 | padding-left: 1.5em; | 149 | padding-left: 1.5em; |
| 131 | } | 150 | } |
src/super_archives/templates/message-list.html
| @@ -7,11 +7,11 @@ | @@ -7,11 +7,11 @@ | ||
| 7 | <hr/> | 7 | <hr/> |
| 8 | 8 | ||
| 9 | <div class="row"> | 9 | <div class="row"> |
| 10 | - <div class="col-lg-2"> | 10 | + <div id="filters" class="hidden-xs hidden-sm col-md-2 col-lg-2"> |
| 11 | <h3>{% trans "Filters" %}</h3> | 11 | <h3>{% trans "Filters" %}</h3> |
| 12 | 12 | ||
| 13 | <h4>{% trans "Sort by" %}</h4> | 13 | <h4>{% trans "Sort by" %}</h4> |
| 14 | - <ul class="none"> | 14 | + <ul class="unstyled-list"> |
| 15 | <li {% ifequal order_by "hottest" %} title="{% trans "Remove filter" %}" {% endifequal %}> | 15 | <li {% ifequal order_by "hottest" %} title="{% trans "Remove filter" %}" {% endifequal %}> |
| 16 | <span class="glyphicon glyphicon-chevron-right"></span> <a href="{% ifequal order_by "hottest" %} {% append_to_get order="",p=1 %} {% else %} {% append_to_get order='hottest',p=1 %} {% endifequal %}">{% trans "Relevance" %}</a></li> | 16 | <span class="glyphicon glyphicon-chevron-right"></span> <a href="{% ifequal order_by "hottest" %} {% append_to_get order="",p=1 %} {% else %} {% append_to_get order='hottest',p=1 %} {% endifequal %}">{% trans "Relevance" %}</a></li> |
| 17 | <li {% ifequal order_by "latest" %} title="{% trans "Remove filter" %}" {% endifequal %}> | 17 | <li {% ifequal order_by "latest" %} title="{% trans "Remove filter" %}" {% endifequal %}> |
| @@ -19,10 +19,8 @@ | @@ -19,10 +19,8 @@ | ||
| 19 | {% trans "Recent activity" %}</a></li> | 19 | {% trans "Recent activity" %}</a></li> |
| 20 | </ul> | 20 | </ul> |
| 21 | 21 | ||
| 22 | - <div class="row"> </div> | ||
| 23 | - | ||
| 24 | <h4>{% trans "Lists" %}</h4> | 22 | <h4>{% trans "Lists" %}</h4> |
| 25 | - <ul class="none"> | 23 | + <ul class="unstyled-list"> |
| 26 | {% for list in lists %} | 24 | {% for list in lists %} |
| 27 | <li {% if list.name == selected_list %} title="{% trans "Remove filter" %}" class="selected" {% endif %}> | 25 | <li {% if list.name == selected_list %} title="{% trans "Remove filter" %}" class="selected" {% endif %}> |
| 28 | <span class="glyphicon {% if list.name == selected_list %}glyphicon-remove{% else %}glyphicon-chevron-right{% endif %}"></span> <a href="{% ifnotequal list.name selected_list %} {% append_to_get list=list.name,p=1 %} {% else %} {% append_to_get list="",p=1 %} | 26 | <span class="glyphicon {% if list.name == selected_list %}glyphicon-remove{% else %}glyphicon-chevron-right{% endif %}"></span> <a href="{% ifnotequal list.name selected_list %} {% append_to_get list=list.name,p=1 %} {% else %} {% append_to_get list="",p=1 %} |
| @@ -31,8 +29,8 @@ | @@ -31,8 +29,8 @@ | ||
| 31 | </ul> | 29 | </ul> |
| 32 | </div> | 30 | </div> |
| 33 | 31 | ||
| 34 | - <div class="col-lg-10 last"> | ||
| 35 | - <ul> | 32 | + <div class="col-xs-12 col-sm-12 col-md-10 col-lg-10"> |
| 33 | + <ul class="unstyled-list"> | ||
| 36 | {% for thread in threads.object_list %} | 34 | {% for thread in threads.object_list %} |
| 37 | {% include "message-preview.html" with doc=thread.latest_message %} | 35 | {% include "message-preview.html" with doc=thread.latest_message %} |
| 38 | {% empty %} | 36 | {% empty %} |
| @@ -48,7 +46,7 @@ | @@ -48,7 +46,7 @@ | ||
| 48 | 46 | ||
| 49 | <div class="row"> | 47 | <div class="row"> |
| 50 | {% if n_results %} | 48 | {% if n_results %} |
| 51 | - <div class="col-lg-10 col-lg-offset-2 text-center"> | 49 | + <div class="col-xm-12 col-sm-12 col-md-10 col-lg-10 col-lg-offset-2 text-center"> |
| 52 | {% if threads.has_previous %} | 50 | {% if threads.has_previous %} |
| 53 | <a href="{% append_to_get p=threads.previous_page_number %}">{% trans "Previous" %}</a> | 51 | <a href="{% append_to_get p=threads.previous_page_number %}">{% trans "Previous" %}</a> |
| 54 | {% endif %} | 52 | {% endif %} |