ensl.org/app/assets/stylesheets/pages/_matches.scss
Luke Barratt ac0b47eca9 Improved styling for contests and referee admin pages
Fixes deleting maps form contests
2014-04-25 23:15:15 +01:00

324 lines
4.6 KiB
SCSS

/*
Matches Listing
*/
table#matches {
width: 100%;
display: table;
table-layout: auto;
margin-bottom: em(20);
.opponent {
width: 30%;
}
.date,
.maps {
width: 20%;
}
.score {
width: 10%;
text-align: right;
}
}
/*
Match Page
*/
div#match {
@include span-columns(12);
border-bottom: em(3) solid $light-gray;
.contesters,
.details,
.referee,
.predictions,
.report {
@include span-columns(12);
}
.contesters {
margin-bottom: em(20);
.vs {
margin: 0 auto;
display: block;
font: 50px $montserrat;
border-radius: 50px;
background: $blue;
width: 100px;
height: 100px;
text-align: center;
line-height: 100px;
color: white;
font-style: italic;
text-transform: uppercase;
padding-right: 10px;
font-weight: bold;
}
.team-1,
.team-2 {
max-height: 100px;
overflow: hidden;
}
.team-1 {
@include span-columns(5);
line-height: 100px;
text-align: right;
}
.team-2 {
@include span-columns(5);
line-height: 100px;
text-align: left;
}
.versus {
@include span-columns(2);
position: relative;
font-weight: bold;
&.split:before {
content: "";
display: block;
position: absolute;
background: white;
width: 1px;
height: 100px;
margin: 0 auto;
left: 50%;
top: 0;
}
.score-1,
.score-2 {
font: 50px $montserrat;
color: white;
width: 50%;
position: absolute;
top: 0;
text-align: center;
line-height: 100px;
font-weight: bold;
}
.score-1 {
padding-left: 15px;
left: 0;
}
.score-2 {
padding-right: 15px;
right: 0;
}
}
}
.details {
margin-bottom: em(20);
text-align: center;
.contest,
.date {
text-align: center;
}
.date {
font-style: italic;
font-weight: normal;
}
.contest {
margin-bottom: em(10);
}
}
.lineups {
@include span-columns(12);
margin: em(20) 0 em(40);
h3 {
text-align: center;
margin-bottom: 1em;
}
i {
color: $gold;
}
.team-1,
.team-2 {
position: relative;
.player {
@include span-columns(12);
line-height: em(40);
margin-bottom: em(10);
}
.players {
position: relative;
}
.controls {
top: 0;
position: absolute;
z-index: 100;
input {
margin: 0;
}
}
form {
label.checkbox {
padding: 0;
}
}
}
.team-1 {
@include span-columns(6);
text-align: right;
.flag {
margin: 0 0 0 em(10);
}
.controls {
left: 0;
}
form {
label.checkbox {
float: right;
margin-left: 1em;
}
}
}
.team-2 {
@include span-columns(6);
@include omega;
.controls {
right: 0;
}
form {
label.checkbox {
float: left;
margin-right: 1em;
}
}
}
&.shift .team-2 {
@include shift(6);
}
.mercenaries {
@include span-columns(12);
input {
margin: 0;
}
}
}
.scoring {
@include span-columns(12);
border-top: em(3) solid $light-gray;
h3 {
margin-bottom: 1em;
}
.scores input {
width: auto;
margin-left: 0;
text-align: center;
width: em(40);
}
}
.predictions {
text-align: center;
h4 {
margin-bottom: 1em;
}
input {
text-align: center;
}
.add {
@include span-columns(12);
text-align: center;
input {
float: none;
margin: em(20) 0 0 0;
}
}
.team-1 {
@include span-columns(6);
text-align: right;
.highlight {
margin-left: em(10);
}
}
.team-2 {
@include span-columns(6);
@include omega;
text-align: left;
.highlight {
margin-right: em(10);
}
}
}
.report {
margin: em(20) 0;
padding-top: em(20);
border-top: em(3) solid $light-gray;
textarea {
margin: em(20) 0;
width: 100%;
height: em(600);
}
.mceLayout {
margin: em(20) 0;
}
}
}
/*
Map Page
*/
div#map {
.preview {
@include span-columns(12);
text-align: center;
img {
margin: em(20) 0;
}
}
}