Prevent unnecessary scrollbar and adjust cell alignment in tables

This commit is contained in:
Brian Miyaji
2015-12-29 15:17:11 +11:00
parent 3ec45d51f2
commit 75afd786b6
2 changed files with 15 additions and 13 deletions

View File

@@ -8,6 +8,11 @@
margin-left: 2em;
}
/* Data Tables */
.sp-data-table .data-name {
text-align: right;
}
/* Pagination */
.sp-table-wrapper .dataTables_paginate .previous {
float: right;
@@ -25,7 +30,7 @@
.sp-player-list .data-name .player-photo,
.sp-player-list .data-name .player-flag {
margin-right: 0;
margin-left: 0.25em;
margin-left: 0.5em;
float: right;
}

View File

@@ -44,7 +44,6 @@
width: 100%;
overflow: hidden;
overflow-x: auto;
position: relative;
}
.sp-data-table {
width: 100%;
@@ -85,6 +84,9 @@
content: "\f140";
position: absolute;
}
.sp-data-table .data-name {
text-align: left;
}
.sp-data-table .data-number,
.sp-data-table .data-rank {
width: 1px;
@@ -130,7 +132,7 @@
.sp-league-table .data-name .team-logo {
width: 2em;
height: 2em;
margin-right: 0.25em;
margin-right: 0.5em;
display: block;
float: left;
text-align: center;
@@ -150,7 +152,7 @@
.sp-player-list .data-name .player-flag {
width: 2em;
height: 2em;
margin-right: 0.25em;
margin-right: 0.5em;
display: block;
float: left;
text-align: center;
@@ -194,11 +196,7 @@
.sp-event-logos .sp-team-logo .sp-team-result {
display: block;
margin: 0 0 1em;
}
.sp-event-logos .sp-team-logo:last-child .sp-team-result {
margin-bottom: 0;
margin: 0.5em 0;
}
/* Event Venue */
@@ -288,8 +286,7 @@
.sp-event-blocks .sp-event-title {
text-align: center;
display: block;
margin: 10px 20%;
padding: 0 20px;
margin: 10px 0;
clear: none;
}
.sp-event-blocks .sp-event-league,
@@ -300,9 +297,9 @@
padding: 0 20px;
}
.sp-event-blocks .team-logo {
width: 20%;
height: auto;
margin: 10px;
width: 20%;
height: 4em;
max-width: 6em;
}
.sp-event-blocks .logo-odd {