Files
NHL-Scoreboard/app/static/styles.css
2024-02-20 00:41:49 -05:00

348 lines
8.3 KiB
CSS

body {
background-color: #121212; /* Dark background color */
font-family: Arial, sans-serif; /* Use a common sans-serif font */
color: #fff; /* White text color */
margin: 0;
width: 100vw;
height: 100vh;
}
h1 {
text-align: center;
margin-top: 15px;
margin-bottom: 25px;
color: #f2f2f2; /* Lighten the text color */
}
.scoreboard {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin-top: 20px;
}
.game-box {
background-color: #333; /* Dark background color for game boxes */
border-radius: 12px; /* Rounded corners */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
padding: 1%;
width: 16%;
max-width: 300px;
position: relative; /* Position relative for absolute positioning */
margin-left: 1%;
margin-right: 1%;
margin-bottom: 1%;
}
.team-info {
display: flex;
align-items: center;
margin-bottom: 2%;
margin-top: 10%; /* Added margin-top */
}
.team-info-column {
display: flex;
flex-direction: column;
}
.team-logo {
width: 20%;
height: auto;
margin-right: 2.25%;
}
.team-name {
font-size: 80%;
font-weight: bold;
}
/* Add a media query for screens between 769px and 900px */
@media only screen and (max-width: 900px) and (min-width: 769px) {
.team-name {
font-size: 75%; /* Adjusted font size for screens between 769px and 900px */
}
}
.team-score {
font-size: 120%;
font-weight: bold;
margin-left: auto;
}
.team-record {
font-size: 70%;
margin-left: auto;
font-weight: bold;
}
.team-sog {
font-size: 55%; /* Adjust font size as needed */
color: #ddd; /* Lighter text color */
}
.team-power-play {
font-size: 12px; /* Adjust font size as needed */
color: red; /* Set color to red */
margin-left: 10px; /* Add some margin for spacing */
}
.game-info {
margin-top: 12px;
color: #aaa; /* Lighten the text color */
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: 4%;
left: 4%; /* Adjusted left position */
background-color: #444; /* Darker background color for pre state */
padding: 1.5%;
border-radius: 5px;
font-size: 65%;
color: #fff; /* White text color for live state */
font-weight: bolder; /* Bold text for live state */
z-index: 1; /* Ensure the live state box is above other content */
width: auto;
height: 10%;
display: flex; /* Use flexbox */
justify-content: space-evenly; /* Center content horizontally */
align-items: center; /* Center content vertically */
}
.final-state {
position: absolute;
top: 4%;
left: 4%; /* Adjusted left position */
background-color: #444; /* Darker background color for final state */
padding: 1.5%;
border-radius: 5px;
font-size: 65%;
color: #ddd; /* Lighter text color for final state */
z-index: 1; /* Ensure the final state box is above other content */
font-weight: bold;
width: auto;
height: 7.5%;
}
.live-state {
position: absolute;
top: 4%;
left: 4%; /* Adjusted left position */
background-color: #0b6e31; /* Darker green background color for live state */
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
color: #fff; /* White text color for live state */
font-weight: bolder; /* Bold text for live state */
z-index: 1; /* Ensure the live state box is above other content */
width: 7.2%;
height: 7.5%;
}
.live-time {
position: absolute;
top: 4%;
left: 16%; /* Adjusted left position */
background-color: #444; /* Darker background color for time box */
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
color: #ddd; /* Lighter text color for time box */
z-index: 1; /* Ensure the time box is above other content */
display: flex; /* Use flexbox */
justify-content: space-evenly; /* Center content horizontally */
align-items: center; /* Center content vertically */
width: 12.5%;
height: 7.5%;
}
.live-state-intermission {
position: absolute;
top: 5%;
left: 4%; /* Adjusted left position */
background-color: #444; /* Darker green background color for live state */
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
color: #fff; /* White text color for live state */
font-weight: bolder; /* Bold text for live state */
z-index: 1; /* Ensure the live state box is above other content */
width: 15.5%;
height: 7.5%;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.live-time-intermission {
position: absolute;
top: 5%;
left: 24%; /* Adjusted left position */
background-color: #444; /* Darker background color for time box */
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
color: #ddd; /* Lighter text color for time box */
z-index: 1; /* Ensure the time box is above other content */
width: 12.5%;
height: 7.5%;
display: flex; /* Use flexbox */
justify-content: space-evenly; /* Center content horizontally */
align-items: center; /* Center content vertically */
}
#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;
}
/* Existing CSS styles */
/* 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; /* Center align items */
margin-top: 10%; /* Adjust top margin */
margin-bottom: 2%; /* Adjust bottom margin */
}
.team-logo {
width: 12%; /* Adjust logo size */
height: auto;
}
.team-name {
font-size: 100%; /* Decrease font size for better readability */
font-weight: bold;
}
.team-score {
font-size: 140%; /* Decrease font size for better readability */
font-weight: bold;
}
.team-sog {
font-size: 70%;
}
.game-info {
font-size: 90%; /* Decrease font size for better readability */
}
.live-state {
top: 4%;
left: 3%; /* Adjusted left position */
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
width: 5.5%;
height: 7.2%;
}
.live-time {
top: 4%;
left: 13%; /* Adjusted left position */
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
display: flex; /* Use flexbox */
justify-content: space-evenly; /* Center content horizontally */
align-items: center; /* Center content vertically */
width: 7%;
height: 7.2%;
}
.live-state-intermission {
top: 5%;
left: 4%; /* Adjusted left position */
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%; /* Adjusted left position */
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
width: 12.5%;
height: 7.5%;
display: flex; /* Use flexbox */
justify-content: space-evenly; /* Center content horizontally */
align-items: center; /* Center content vertically */
}
.final-state {
top: 5%;
left: 4%; /* Adjusted left position */
padding: 1.5%;
border-radius: 5px;
font-size: 72%;
width: auto;
height: 7.5%;
}
.pre-state {
top: 4%;
left: 4%; /* Adjusted left position */
padding: 1.5%;
border-radius: 5px;
font-size: 80%;
}
}