Files
NHL-Scoreboard/app/static/styles.css

358 lines
6.5 KiB
CSS

body {
background-color: #121212;
font-family: Arial, sans-serif;
color: #fff;
margin: 0;
width: 100vw;
height: 100vh;
}
h1 {
text-align: center;
margin-top: 15px;
margin-bottom: 25px;
color: #f2f2f2;
}
.scoreboard {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin-top: 20px;
}
.game-box {
background-color: #333;
border-radius: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 1%;
width: 16%;
max-width: 300px;
position: relative;
margin-left: 1%;
margin-right: 1%;
margin-bottom: 1.15%;
}
.team-info {
display: flex;
align-items: center;
margin-bottom: 2%;
margin-top: 9%;
}
.team-info-column {
display: flex;
flex-direction: column;
}
.team-logo {
width: 18%;
height: auto;
margin-right: 2.25%;
}
.team-name {
font-size: 90%;
font-weight: bold;
}
/* Add a media query for screens between 769px and 900px */
@media only screen and (max-width: 950px) and (min-width: 769px) {
.team-name {
font-size: 0.55rem; /* Adjusted font size for screens between 769px and 900px */
}
}
.team-score {
font-size: 130%;
font-weight: bold;
margin-left: auto;
}
.team-record {
font-size: 0.75rem;
font-weight: bold;
margin-left: auto;
}
/* Add a media query for screens between 769px and 900px */
@media only screen and (max-width: 950px) and (min-width: 769px) {
.team-record {
font-size: 0.45rem; /* Adjusted font size for screens between 769px and 900px */
}
}
.team-sog {
font-size: 65%;
color: #ddd;
}
.team-power-play {
font-size: 12px;
color: red;
margin-left: 10px;
}
.game-info {
margin-top: 12px;
color: #aaa;
text-align: center;
font-size: 80%;
}
.game-info strong {
margin-right: 5px;
}
.live-dot {
position: absolute;
top: 5px;
right: 5px;
width: 10px;
height: 10px;
background-color: red;
border-radius: 50%;
}
.pre-state {
position: absolute;
top: 5%;
left: 3%;
background-color: #444;
padding: 1.5%;
border-radius: 5px;
font-size: 0.65rem;
color: #fff;
font-weight: bolder;
z-index: 1;
width: auto;
height: 10%;
display: flex;
justify-content: space-evenly;
align-items: center;
}
/* Add a media query for screens between 769px and 900px */
@media only screen and (max-width: 950px) and (min-width: 769px) {
.pre-state {
font-size: 0.55rem; /* Adjusted font size for screens between 769px and 900px */
}
}
.final-state {
position: absolute;
top: 5%;
left: 3%;
background-color: #444;
padding: 1.5%;
border-radius: 5px;
font-size: 65%;
color: #ddd;
z-index: 1;
font-weight: bold;
width: auto;
height: 7.5%;
}
.live-state {
position: absolute;
top: 4%;
left: 4%;
background-color: #0b6e31;
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
color: #fff;
font-weight: bolder;
z-index: 1;
width: 7.2%;
height: 7.5%;
}
.live-time {
position: absolute;
top: 4%;
left: 16%;
background-color: #444;
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
color: #ddd;
z-index: 1;
display: flex;
justify-content: space-evenly;
align-items: center;
width: 12.5%;
height: 7.5%;
}
.live-state-intermission {
position: absolute;
top: 5%;
left: 4%;
background-color: #444;
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
color: #fff;
font-weight: bolder;
z-index: 1;
width: 15.5%;
height: 7.5%;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.live-time-intermission {
position: absolute;
top: 5%;
left: 24%;
background-color: #444;
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
color: #ddd;
z-index: 1;
width: 12.5%;
height: 7.5%;
display: flex;
justify-content: space-evenly;
align-items: center;
}
#live-games-section {
display: flex;
align-items: start;
flex-wrap: wrap;
justify-content: flex-start;
}
#pre-games-section {
display: flex;
align-items: start;
flex-wrap: wrap;
justify-content: flex-start;
}
#final-games-section {
display: flex;
align-items: start;
flex-wrap: wrap;
justify-content: flex-start;
}
/* Add media query for smaller screens */
@media only screen and (max-width: 768px) {
.scoreboard {
flex-direction: column; /* Change direction to column for smaller screens */
align-items: center; /* Center align items */
}
.game-box {
width: 90%;
padding: 4%;
margin-bottom: 4%;
margin-left: 2%;
margin-right: 2%;
max-width: 1000px;
}
.team-info {
align-items: center;
margin-top: 10%;
margin-bottom: 2%;
}
.team-logo {
width: 12%;
height: auto;
}
.team-name {
font-size: 100%;
font-weight: bold;
}
.team-score {
font-size: 140%;
font-weight: bold;
}
.team-sog {
font-size: 70%;
}
.game-info {
font-size: 90%;
}
.live-state {
top: 5%;
left: 3.5%;
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
width: 5.5%;
height: 7.2%;
}
.live-time {
top: 5%;
left: 13%;
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
display: flex;
justify-content: space-evenly;
align-items: center;
width: 7%;
height: 7.2%;
}
.live-state-intermission {
top: 5%;
left: 3.5%;
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
width: 15.5%;
height: 7.5%;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.live-time-intermission {
top: 5%;
left: 24%;
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
width: 12.5%;
height: 7.5%;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.final-state {
top: 5%;
left: 3.5%;
padding: 1.5%;
border-radius: 5px;
font-size: 72%;
width: auto;
height: 7.5%;
}
.pre-state {
top: 5%;
left: 3.5%;
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
}
}