From 294b442a38a0b4dbf134e5d1ed03770a0648b829 Mon Sep 17 00:00:00 2001 From: Raghav Jajodia Date: Tue, 6 Jun 2017 16:02:20 +0530 Subject: [PATCH] Fix Sponsor button overlap --- website/static/css/style.css | 48 +++++++++++++++++++ website/templates/index.html | 91 +++++++++++++----------------------- 2 files changed, 80 insertions(+), 59 deletions(-) diff --git a/website/static/css/style.css b/website/static/css/style.css index 422181126c..e17352778a 100644 --- a/website/static/css/style.css +++ b/website/static/css/style.css @@ -289,4 +289,52 @@ a:hover{ .screenshot-img { border: 1px solid #d43f3a; width:90%; +} +/* INDEX PAGE */ +.ds-btn li{ + list-style:none; + float:left; + padding:10px; +} +.ds-btn li a span{ + padding-left:15px; + padding-right:5px; + width:100%; + display:inline-block; + text-align:left; +} +.ds-btn li a span small{ + width:100%; + display:inline-block; + text-align:left; +} +.huge { + overflow:auto; +} +.leaderboard-panel { + border-left: 1px solid #ccc; + border-top: 1px solid #ccc; + border-right: 1px solid #888; + border-bottom: 1px solid #888; + background-color: #ddd; + padding: 10px; +} +.leaderboard-panel .box{ + border: 3px solid #009688; + padding:7px; + margin-right:5px; + padding-top:10px; + background:white; +} +.leaderboard-name, +.leaderboard-name:hover +.leaderboard-name:active { + text-decoration: none !important; +} +.leaderboard-points { + margin-top: 15px; + margin-right: 50px; +} +.leaderboard-rank { + margin-top: -33px; } \ No newline at end of file diff --git a/website/templates/index.html b/website/templates/index.html index aeab4f8519..b441334567 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -6,18 +6,10 @@ {% providers_media_js %} {% block content %} - +
-

Win points for reporting bugs on any website! -

+

Win points for reporting bugs on any website!

@@ -25,7 +17,7 @@

Win points for reporting bugs on any website!
{% csrf_token %}
-
- - + {% if form.description.errors %} @@ -50,16 +41,15 @@

Win points for reporting bugs on any website!

- {% if request.GET.hash %}
{% else %} - +   - + {% endif %} {% if form.screenshot.errors %} @@ -68,36 +58,28 @@

Win points for reporting bugs on any website!

- - - - - -
- + + +

-
-
-

Featured Websites -

+

Featured Websites

- {% for domain in domains %}
@@ -108,9 +90,7 @@

Featured Websites

{{domain.get_name}}
- -
{% if domain.prize %}Grand Prize ${{domain.prize}}{% endif %} 
- +
{% if domain.prize %}Grand Prize ${{domain.prize}}{% endif %}
@@ -176,41 +156,33 @@

Activity

{% now "F" %} Leaderboard -
-
-
-
The 1st Place Hunter for {% now "F" %} will receive
- -
- $?? - from - - [ Your Website Here ]
- - - - - -
- +
+ The 1st Place Hunter for {% now "F" %} will receive +
+ $?? from [ Your Website Here ] +
+ + + + + +
{% if leaderboard %} {% for leader in leaderboard %} -
- {{forloop.counter|ordinal}} +
{% if leader.socialaccount_set.all.0.get_avatar_url %} {% else %} - {% gravatar leader.email 50 %} + {% endif %} - {{leader.username}} - {{leader.total_score}} points - + {{leader.username}} + {{leader.total_score}} Points + {{forloop.counter|ordinal}}
{% endfor %} {% else %} @@ -223,9 +195,11 @@

Activity

- + {% endblock %}