File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed
Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 5050 < h1 class ="page-header "> Monthly Leaderboard</ h1 >
5151 </ div >
5252</ div >
53- < div class ="row ">
53+ < div class ="row " style =" display: flex;justify-content: center; align-items: center; " >
5454 < div class ="col-lg-9 ">
5555 < div class ="list-group ">
5656 {%if not leaderboard%}
@@ -67,9 +67,9 @@ <h1 class="page-header">Monthly Leaderboard</h1>
6767 {% if month.user.userprofile.avatar %}
6868 < img src ="{{ month.user.userprofile.avatar }} " class ="img-responsive img-thumbnail profileimage ">
6969 {% elif user.socialaccount_set.all.0.get_avatar_url %}
70- < img src ="{{ month.user.socialaccount_set.all.0.get_avatar_url }} " class ="profileimage ">
70+ < img src ="{{ month.user.socialaccount_set.all.0.get_avatar_url }} " class ="img-responsive img-thumbnail profileimage ">
7171 {% else %}
72- < img src ="{% gravatar_url month.user.email 50 %} " class ="profileimage ">
72+ < img src ="{% gravatar_url month.user.email 50 %} " class ="img-responsive img-thumbnail profileimage ">
7373 {% endif %}
7474 < a href ="/profile/{{ month.user.username }} "> {{ month.user.username }}</ a >
7575 < span class ="pull-right badge "> {{ month.user.total_score }} Points</ span >
Original file line number Diff line number Diff line change 2020 margin-left : 10px ;
2121 }
2222
23+ @media (min-height : 800px ) and (min-width : 992px ) {
24+ .col-md-8 {
25+ width : 66.66666667% ;
26+ }}
27+ @media (min-height : 800px ) and (min-width : 360px ) {
28+ .col-md-8 {
29+ width : 90% ;
30+ font-size : small;
31+ }}
32+
2333 .silver {
2434 background-color : lightblue;
2535 color : # 333 ;
4858{% endblock %}
4959
5060{% block content %}
51- < div class ="row container-min-height ">
61+ < div class ="row container-min-height " style =" display:flex;justify-content:center " >
5262 < div class ="col-lg-6 " style ="display: flex; justify-content: center; align-items: center; ">
5363 < h1 class ="page-header "> Global Leaderboard</ h1 >
5464 </ div >
5565</ div >
56- < div class ="row ">
57- < div class ="col-lg-9 ">
66+ < div class ="row " style =" display:flex;justify-content:center " >
67+ < div class ="col-md-8 ">
5868 < div class ="list-group ">
5969 {%if not leaderboard%}
6070 < p style ="color: red; "> No data for this month</ p >
@@ -64,9 +74,9 @@ <h1 class="page-header">Global Leaderboard</h1>
6474 {% if leader.userprofile.avatar %}
6575 < img src ="{{ leader.userprofile.avatar }} " class ="img-responsive img-thumbnail profileimage ">
6676 {% elif leader.socialaccount_set.all.0.get_avatar_url %}
67- < img src ="{{ leader.socialaccount_set.all.0.get_avatar_url }} " class ="profileimage ">
77+ < img src ="{{ leader.socialaccount_set.all.0.get_avatar_url }} " class ="img-responsive img-thumbnail profileimage ">
6878 {% else %}
69- < img src ="{% gravatar_url leader.email 50 %} " class ="profileimage ">
79+ < img src ="{% gravatar_url leader.email 50 %} " class ="img-responsive img-thumbnail profileimage ">
7080 {% endif %}
7181 < a href ="/profile/{{ leader.username }} "> {{ leader.username }}</ a >
7282 < span class ="pull-right badge "> {{ leader.total_score }} Points</ span >
You can’t perform that action at this time.
0 commit comments