Skip to content

Commit

Permalink
Merge pull request #98 from Raistlfiren/leaderboard-fix
Browse files Browse the repository at this point in the history
Made leaderboards more responsive.
  • Loading branch information
Raistlfiren authored Jun 12, 2017
2 parents f3a13a5 + 1d02194 commit 145faa9
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 30 deletions.
52 changes: 49 additions & 3 deletions public/styles/site/leaderboards.sass
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,55 @@
div.awesomplete
display: block

.pagination :last-child
margin-left: 10px
padding-left: 12px
.btn-spacing
margin-left: 12px

.btn-top
margin-bottom: 10px
margin-top: 10px
display: inline

@media (max-width: 400px)
.btn-top .btn
font-size: 10px

.stats
width: 0px

.nopadding
padding: 0 !important
margin: 0 !important

.featurette
display: table
width: 100%
height: 30%
vertical-align: middle

.featurette-inner
display: table-cell
vertical-align: middle

.featurette .search
padding: 3%
max-width: 980px
margin: 0 auto

.no-margin-top
margin-top: 0

.featurette .search.has-button .btn
margin-top: 5px
width: 100%

@media (min-width: 480px)
.featurette .search.has-button .form-group
position: relative
padding-right: 99px

.featurette .search.has-button .btn
position: absolute
top: 0
right: 0
width: auto
margin: 0
51 changes: 24 additions & 27 deletions templates/views/leaderboards.pug
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
extends competitive_nav

mixin pagination
.row
.col-md-2.text-left.pagination
button(class="btn btn-primary first") First
button(class="btn btn-primary previous") Previous
.col-md-8
.col-md-2.text-right.pagination
button(class="btn btn-primary next") Next
button(class="btn btn-primary last") Last
.row.btn-top
.col-md-3.btn-top.pull-left.text-left.nopadding
button(class="btn btn-primary") First
button(class="btn btn-primary btn-spacing previous") Previous
.col-md-3.col-md-offset-6.btn-top.pull-right.text-right.nopadding
button(class="btn btn-primary") Next
button(class="btn btn-primary btn-spacing last") Last

block cContent

Expand All @@ -18,30 +17,28 @@ block cContent

br

.row
.col-md-2
.col-md-6
input(type="text" class="form-control" placeholder="Player name...")#searchbar
.col-md-2
button(class="btn btn-default" type="button" id="forget-search") Forget Search
.col-md-2
.featurette
.featurette-inner.text-center
form(role="form").search.has-button
.form-group
input(type="text" class="form-control" placeholder="Player name...")#searchbar
button(class="btn btn-default" type="button" id="forget-search") Forget Search

br
br

#stats

+pagination

table.table.table-striped.table-hover
thead
tr
th #
th Player
th Rating
th Games
th Stats
tbody#players

.table-responsive
table.table.table-striped.table-hover
thead
tr
th #
th Player
th Rating
th Games
th Stats
tbody#players

+pagination

Expand Down

0 comments on commit 145faa9

Please sign in to comment.