299 lines
4.9 KiB
CSS
299 lines
4.9 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Set a background color */
|
|
body {
|
|
background-color: #b8b8ba;
|
|
font-family: Helvetica, sans-serif;
|
|
}
|
|
|
|
.btn {
|
|
width: -webkit-fill-available;
|
|
}
|
|
.col {
|
|
width: 100%;
|
|
} .scoreboard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 800px;
|
|
margin: 0 auto;
|
|
background-color: #e0e0e0;
|
|
color: #333;
|
|
padding: 10px;
|
|
border: 4px solid #800080;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.timer-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
position: relative;
|
|
width: 120px;
|
|
height: 120px;
|
|
background-color: #fff;
|
|
border: 4px solid #800080;
|
|
border-radius: 50%;
|
|
margin: 10px;
|
|
}
|
|
|
|
.timer {
|
|
font-size: 38px;
|
|
color: #333;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.half-indicator {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #800080;
|
|
position: absolute;
|
|
bottom: 10px;
|
|
}
|
|
|
|
.kickoff-indicator {
|
|
font-size: 25px;
|
|
font-weight: bold;
|
|
color: #800080;
|
|
margin-top:auto;
|
|
margin-bottom:auto;
|
|
}
|
|
.finalscore-indicator {
|
|
font-size: 25px;
|
|
font-weight: bold;
|
|
color: #800080;
|
|
margin-top:auto;
|
|
margin-bottom:auto;
|
|
}
|
|
|
|
.border {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.team-details {
|
|
font-size: 48px;
|
|
color: white;
|
|
background-color: #000;
|
|
padding: 0px;
|
|
text-align: center;
|
|
max-height: 100px;
|
|
border-radius: 0px 0px 30px 30px;
|
|
}
|
|
|
|
.team {
|
|
flex: 1;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 10px 10px 10px 10px;
|
|
background-color: dimgrey;
|
|
}
|
|
|
|
.team-info {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.team-logo {
|
|
margin: 10px;
|
|
}
|
|
|
|
.team-logo svg {
|
|
max-width: 60px;
|
|
max-height: 60px;
|
|
background-color: #800080;
|
|
padding: 5px;
|
|
margin-right:auto;
|
|
margin-left:auto;
|
|
}
|
|
|
|
.team-name {
|
|
font-weight: bold;
|
|
font-size: 20px;
|
|
color: white;
|
|
margin-bottom: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.team-score {
|
|
font-size: 48px;
|
|
color: white;
|
|
background-color: #000;
|
|
padding: 10px;
|
|
text-align: center;
|
|
max-height: 100px;
|
|
border-radius: 0 0 10px 10px;
|
|
}
|
|
|
|
.score-history {
|
|
font-size: 14px;
|
|
width: 100%;
|
|
text-align: center;
|
|
padding: 10px;
|
|
}
|
|
|
|
/* Uckfield RFC's background color */
|
|
#home-team {
|
|
background-color: #ff0000;
|
|
}
|
|
|
|
/* Away Team's background color */
|
|
#away-team {
|
|
background-color: #0000ff;
|
|
}
|
|
|
|
/*
|
|
eventList
|
|
*/
|
|
.timeline {
|
|
position: relative;
|
|
padding: 20px;
|
|
width: 50%;
|
|
margin-top: 10px;
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.timeline-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
margin-bottom: 40px;
|
|
position: relative;
|
|
}
|
|
|
|
.timeline-content {
|
|
background-color: #f9f9f9;
|
|
padding: 20px;
|
|
position: relative;
|
|
border-radius: 8px;
|
|
border: 1px solid black;
|
|
}
|
|
|
|
.timeline-content-match {
|
|
background-color: rgb(69, 69, 69);
|
|
color: white;
|
|
min-width: 100px;
|
|
padding-top: 5px;
|
|
padding-bottom: 5px;
|
|
padding-left: 30px;
|
|
padding-right: 30px;
|
|
position: relative;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
border-radius: 8px;
|
|
border: 1px solid purple;
|
|
text-align: center;
|
|
}
|
|
|
|
.match:first-child {
|
|
margin-top: -20px;
|
|
}
|
|
|
|
.match:last-child {
|
|
margin-bottom: -20px;
|
|
}
|
|
|
|
.score-panel {
|
|
font-size: 20px;
|
|
color: white;
|
|
background-color: gray;
|
|
padding: 5px 10px 5px 10px;
|
|
position: absolute;
|
|
left: 50.1%;
|
|
border-radius: 8px;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 1;
|
|
}
|
|
|
|
.delete-btn {
|
|
position: absolute;
|
|
float: right;
|
|
top: 10px;
|
|
right: 10px;
|
|
background-color: #f00;
|
|
/* background-color: #ff6347; */
|
|
color: white;
|
|
border: none;
|
|
padding: 5px 10px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.icon {
|
|
position: absolute;
|
|
left: 50.1%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: black;
|
|
/* Set the color of the icon */
|
|
z-index: 1;
|
|
/* Ensure the icon appears above the panel */
|
|
}
|
|
|
|
.yc {
|
|
color: yellow;
|
|
text-shadow: 0 0 5px #000;
|
|
}
|
|
|
|
.rc {
|
|
color: red;
|
|
text-shadow: 0 0 5px #000;
|
|
}
|
|
|
|
.away {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.timeline:before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 50%;
|
|
border-left: 2px solid black;
|
|
}
|
|
|
|
@media screen and (min-width: 1500px) {
|
|
.timeline-item {
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.timeline-content {
|
|
width: 40%;
|
|
}
|
|
}
|
|
@media screen and (max-width: 1499px) {
|
|
.timeline {
|
|
width: 80%;
|
|
}
|
|
.timeline-item {
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.timeline-content {
|
|
width: 40%;
|
|
}
|
|
}
|
|
|
|
.noMatch {
|
|
text-align: center;
|
|
}
|
|
|
|
.summary-team-label {
|
|
margin-top: 15px;
|
|
margin-bottom: 15px;
|
|
font-size: 25px;
|
|
} |