Browse Source

better scoreboard css

master
Aaron Parecki 7 years ago
parent
commit
7f31a3aedc
No known key found for this signature in database GPG Key ID: 276C2817346D6056
3 changed files with 30 additions and 6 deletions
  1. +16
    -1
      public/css/app.css
  2. +9
    -1
      resources/assets/sass/app.scss
  3. +5
    -4
      resources/views/scoreboard.blade.php

+ 16
- 1
public/css/app.css View File

@ -8507,7 +8507,15 @@ button.close {
} }
.team .team-icon { .team .team-icon {
display: inline-block;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 20px; border-radius: 20px;
@ -8518,10 +8526,12 @@ button.close {
border-width: 4px; border-width: 4px;
border-style: solid; border-style: solid;
margin-right: 0; margin-right: 0;
color: white;
} }
.team .team-icon.empty { .team .team-icon.empty {
background-color: transparent !important; background-color: transparent !important;
color: black;
} }
.team .team-name { .team .team-name {
@ -8725,6 +8735,11 @@ button.close {
height: 200px; height: 200px;
} }
.scoreboard th,
.scoreboard td {
font-family: Helvetica, Arial, sans-serif;
}
.scoreboard td.score, .scoreboard td.score,
.scoreboard th.score { .scoreboard th.score {
text-align: center; text-align: center;

+ 9
- 1
resources/assets/sass/app.scss View File

@ -16,7 +16,9 @@
align-items: center; align-items: center;
.team-icon { .team-icon {
display: inline-block;
display: flex;
align-items: center;
justify-content: center;
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 20px; border-radius: 20px;
@ -26,9 +28,11 @@
border-width: 4px; border-width: 4px;
border-style: solid; border-style: solid;
margin-right: 0; margin-right: 0;
color: white;
} }
.team-icon.empty { .team-icon.empty {
background-color: transparent !important; background-color: transparent !important;
color: black;
} }
.team-name { .team-name {
@ -232,6 +236,9 @@
.scoreboard { .scoreboard {
th, td {
font-family: Helvetica, Arial, sans-serif;
}
td.score, th.score { td.score, th.score {
text-align: center; text-align: center;
} }
@ -241,6 +248,7 @@
td .team-wrap { td .team-wrap {
display: inline-block; display: inline-block;
} }
} }

+ 5
- 4
resources/views/scoreboard.blade.php View File

@ -34,14 +34,15 @@
</td> </td>
@foreach($missions as $mission) @foreach($missions as $mission)
<td class="score"> <td class="score">
@if(!Auth::guest())
<div>{{ $mission->score($team) }}pts</div>
@endif
<div class="team-wrap"> <div class="team-wrap">
<div class="team"> <div class="team">
@if($mission->progress($team)[0] >= 1) @if($mission->progress($team)[0] >= 1)
<span class="team-icon outlined {{ $mission->complete($team) ? '' : 'empty' }}" <span class="team-icon outlined {{ $mission->complete($team) ? '' : 'empty' }}"
style="background-color: #{{ $team->color }}; border-color: #{{ $team->color }};"></span>
style="background-color: #{{ $team->color }}; border-color: #{{ $team->color }};">
@if(!Auth::guest())
{{ $mission->score($team) }}
@endif
</span>
@endif @endif
</div> </div>
</div> </div>

Loading…
Cancel
Save