This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scoreList.scss
125 lines (95 loc) · 2.25 KB
/
scoreList.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
@import "const";
@import "header";
body {
overflow: hidden;
}
.scoreList-container {
z-index: 1;
}
$scoreListHeight: 55%;
@mixin scoreList-hidden-props {
height: 0;
opacity: 0;
margin-bottom: $scoreListHeight;
}
@mixin scoreList-shown-props {
height: $scoreListHeight;
margin-bottom: 0;
opacity: 1;
}
.scoreList-wrapper {
width: 50%;
align-items: center;
@include scoreList-hidden-props;
}
.scoreList {
background-color: rgba($lineupBGColor, 0.8);
border-radius: $lineupBorderRadius;
padding: $lineupBorderRadius * 2;
font-size: $fontSize;
position: relative;
top: 50px;
table {
color: $textColor;
tr {
border-bottom: 1px solid #157380;
opacity: 0;
transition: opacity 400ms;
height: 150px;
td {
width: 33%;
text-align: center;
}
}
tr.shown { opacity: 1; }
tr#table-header-team2 { opacity: 1; }
tr#table-header-team1 { opacity: 1; }
tr th {
padding-bottom: $height / 3;
}
tr:last-child td {
border: none;
}
}
}
.scoreList-title {
text-align: center;
border-bottom: 50px solid rgba($bgColor, 0.8);
border-left: $titleInset/2 solid transparent;
border-right: $titleInset/2 solid transparent;
height: 0;
width: 20%;
float: right;
position: relative;
right: 10px;
}
.scoreList-title-text {
color: white;
font-size: $titleInset/3;
padding-top: 10px;
}
body.hidden div.container div.scoreList-wrapper {
animation: lineup-hide;
animation-duration: 500ms;
animation-fill-mode: forwards;
}
body.shown div.container div.scoreList-wrapper {
@include scoreList-hidden-props;
animation: scoreList-show;
animation-duration: 500ms;
animation-delay: 500ms;
animation-fill-mode: forwards;
}
@keyframes scoreList-show {
0% { @include scoreList-hidden-props; }
100% { @include scoreList-shown-props;}
}
@keyframes scoreList-hide {
0% { @include scoreList-shown-props; }
99% {
height: $scoreListHeight;
margin-bottom: 0;
opacity: 0;
}
100% { @include scoreList-hidden-props; }
}