Commit c443db84024d6924d5e631947804b2b85df54213
1 parent
45086d05
Exists in
master
and in
39 other branches
Adjusting home for mobile devices
Showing
2 changed files
with
31 additions
and
25 deletions
Show diff stats
src/colab/deprecated/templates/home.html
@@ -6,28 +6,27 @@ | @@ -6,28 +6,27 @@ | ||
6 | {% endblock %} | 6 | {% endblock %} |
7 | 7 | ||
8 | {% block header %} | 8 | {% block header %} |
9 | - <div class="row"> | 9 | + <div class="row hidden-xs hidden-sm"> |
10 | <div class="col-lg-2 col-lg-offset-5 text-center"> | 10 | <div class="col-lg-2 col-lg-offset-5 text-center"> |
11 | <img src="{{ STATIC_URL }}img/logo.png" /> | 11 | <img src="{{ STATIC_URL }}img/logo.png" /> |
12 | </div> | 12 | </div> |
13 | </div> | 13 | </div> |
14 | 14 | ||
15 | - <h3 class="text-center">{% trans "INTERLEGIS COMMUNITIES" %}</h3> | 15 | + <h3 class="text-center hidden-xs hidden-sm">{% trans "INTERLEGIS COMMUNITIES" %}</h3> |
16 | {% endblock %} | 16 | {% endblock %} |
17 | 17 | ||
18 | {% block main-content %} | 18 | {% block main-content %} |
19 | 19 | ||
20 | <div class="row"> | 20 | <div class="row"> |
21 | - <div class="col-lg-6"> | 21 | + <div class="col-lg-6 col-md-6"> |
22 | <h3 class="column-align"> | 22 | <h3 class="column-align"> |
23 | - {% trans "Latest collaborations" %} | 23 | + {% trans "Latest Collaborations" %} |
24 | </h3> | 24 | </h3> |
25 | - <a class="pull-right" target="_blank" | 25 | + <a class="rss-icon" target="_blank" |
26 | href="{% url 'rss_latest_colab' %}" | 26 | href="{% url 'rss_latest_colab' %}" |
27 | title="{% trans 'RSS - Latest collaborations' %}"> | 27 | title="{% trans 'RSS - Latest collaborations' %}"> |
28 | - <div class="rss-icon"></div> | ||
29 | </a> | 28 | </a> |
30 | - <ul> | 29 | + <ul class="message-list"> |
31 | {% for doc in latest_docs %} | 30 | {% for doc in latest_docs %} |
32 | {% include "message-preview.html" %} | 31 | {% include "message-preview.html" %} |
33 | {% endfor %} | 32 | {% endfor %} |
@@ -40,23 +39,22 @@ | @@ -40,23 +39,22 @@ | ||
40 | </div> | 39 | </div> |
41 | 40 | ||
42 | 41 | ||
43 | - <div class="col-lg-6"> | 42 | + <div class="col-lg-6 col-md-6"> |
44 | <h3 class="column-align">{% trans "Distribution of Collaborations" %}</h3> | 43 | <h3 class="column-align">{% trans "Distribution of Collaborations" %}</h3> |
45 | <div> </div> | 44 | <div> </div> |
46 | </div> | 45 | </div> |
47 | </div> | 46 | </div> |
48 | 47 | ||
49 | <div class="row"> | 48 | <div class="row"> |
50 | - <div class="col-lg-6"> | 49 | + <div class="col-lg-6 col-md-6"> |
51 | <h3 class="column-align"> | 50 | <h3 class="column-align"> |
52 | - {% trans "Discussions Most Relevance" %} | 51 | + {% trans "Most Relevant Discussions" %} |
53 | </h3> | 52 | </h3> |
54 | - <a class="pull-right" target="_blank" | 53 | + <a class="rss-icon" target="_blank" |
55 | href="{% url 'rss_hottest_threads' %}" | 54 | href="{% url 'rss_hottest_threads' %}" |
56 | title="{% trans "RSS - Discussions Most Relevance" %}"> | 55 | title="{% trans "RSS - Discussions Most Relevance" %}"> |
57 | - <div class="rss-icon"></div> | ||
58 | </a> | 56 | </a> |
59 | - <ul> | 57 | + <ul class="message-list"> |
60 | {% for thread in hottest_threads %} | 58 | {% for thread in hottest_threads %} |
61 | {% include "message-preview.html" with doc=thread.latest_message %} | 59 | {% include "message-preview.html" with doc=thread.latest_message %} |
62 | {% endfor %} | 60 | {% endfor %} |
@@ -68,16 +66,15 @@ | @@ -68,16 +66,15 @@ | ||
68 | <div> </div> | 66 | <div> </div> |
69 | </div> | 67 | </div> |
70 | 68 | ||
71 | - <div class="col-lg-6"> | 69 | + <div class="col-lg-6 col-md-6"> |
72 | <h3 class="column-align"> | 70 | <h3 class="column-align"> |
73 | {% trans "Latest Discussions" %} | 71 | {% trans "Latest Discussions" %} |
74 | </h3> | 72 | </h3> |
75 | - <a class="pull-right" target="_blank" | 73 | + <a class="rss-icon" target="_blank" |
76 | href="{% url 'rss_latest_threads' %}" | 74 | href="{% url 'rss_latest_threads' %}" |
77 | title="{% trans "RSS - Latest Discussions" %}"> | 75 | title="{% trans "RSS - Latest Discussions" %}"> |
78 | - <div class="rss-icon"></div> | ||
79 | </a> | 76 | </a> |
80 | - <ul> | 77 | + <ul class="message-list"> |
81 | {% for thread in latest_threads %} | 78 | {% for thread in latest_threads %} |
82 | {% include "message-preview.html" with doc=thread.latest_message %} | 79 | {% include "message-preview.html" with doc=thread.latest_message %} |
83 | {% endfor %} | 80 | {% endfor %} |
src/colab/static/css/screen.css
@@ -4,6 +4,11 @@ body { | @@ -4,6 +4,11 @@ body { | ||
4 | padding-top: 70px; | 4 | padding-top: 70px; |
5 | } | 5 | } |
6 | 6 | ||
7 | +/* better fit for xm and sm screens */ | ||
8 | +h3 { | ||
9 | + font-size: 160%; | ||
10 | +} | ||
11 | + | ||
7 | /* Header */ | 12 | /* Header */ |
8 | 13 | ||
9 | 14 | ||
@@ -120,13 +125,18 @@ body { | @@ -120,13 +125,18 @@ body { | ||
120 | .subject img { | 125 | .subject img { |
121 | margin-right: 5px; | 126 | margin-right: 5px; |
122 | } | 127 | } |
123 | -/* End of message-preview.html */ | ||
124 | 128 | ||
125 | -.container { | ||
126 | - /* Overwritting max-width for better web responsive */ | ||
127 | - /* max-width: 95% !important; */ | 129 | +/* message-list (ul wrapping preview-message) */ |
130 | + | ||
131 | +ul.message-list { | ||
132 | + padding: 0; | ||
128 | } | 133 | } |
129 | 134 | ||
135 | +/* End of message-preview.html */ | ||
136 | + | ||
137 | + | ||
138 | + | ||
139 | + | ||
130 | /* Forms */ | 140 | /* Forms */ |
131 | .required label:before { | 141 | .required label:before { |
132 | color: #f00; | 142 | color: #f00; |
@@ -151,14 +161,13 @@ form.signup div.submit { | @@ -151,14 +161,13 @@ form.signup div.submit { | ||
151 | background-image: url(../img/rss.png); | 161 | background-image: url(../img/rss.png); |
152 | width: 16px; | 162 | width: 16px; |
153 | height: 16px; | 163 | height: 16px; |
164 | + display: inline-block; | ||
165 | + margin-left: 3px; | ||
154 | } | 166 | } |
155 | 167 | ||
156 | .column-align { | 168 | .column-align { |
157 | display: inline-block; | 169 | display: inline-block; |
158 | - margin-left: 20px; | ||
159 | - margin-top: 0; | ||
160 | - margin-bottom: 10px; | ||
161 | - vertical-align: middle; | 170 | + margin-bottom: 20px; |
162 | } | 171 | } |
163 | 172 | ||
164 | #filters h4 { | 173 | #filters h4 { |