Files
ScoreSpot/ProjectSourceCode/src/resources/css/league-pages/league-page.css

119 lines
3.3 KiB
CSS
Raw Normal View History

2024-04-14 19:52:42 -06:00
/*
==============================================================
OVERALL PAGE STYLES
==============================================================
*/
#league-page-body
{
2024-04-14 19:58:19 -06:00
/* --- SIZE CONTAINER --- */
2024-04-14 19:52:42 -06:00
width: 100%; /* Set the width to the full width of screen */
padding: 30px; /* Create some distance between page boundries and elements */
2024-04-14 19:58:19 -06:00
/* --- FORMAT CHILD ITEMS --- */
display: flex; /* Enable flexbox layout */
flex-direction: column; /* Arrange child elements vertically */
2024-04-11 06:07:35 -06:00
}
2024-04-14 19:52:42 -06:00
/*
=================================
LEAGUE INFORMATION HEADER
=================================
*/
/* Stylization for League Information Header Card */
#league-information-container
{
2024-04-14 19:58:19 -06:00
/* --- POSITION CONTAINER --- */
align-items: center; /* Center content vertically */
margin: 20px;
2024-04-14 19:52:42 -06:00
2024-04-14 19:58:19 -06:00
/* --- SIZE CONTAINER --- */
2024-04-11 06:07:35 -06:00
height: 100px;
width: fit-content;
padding: 10px 20px; /* Adjust padding as needed */
2024-04-14 19:58:19 -06:00
/* --- STYLE CONTAINER --- */
background: linear-gradient(to right, white, rgb(245, 245, 245), rgb(227, 227, 227)); /* Gradient from white to gray */
2024-04-13 17:11:28 -06:00
transform: skewX(-20deg); /* Skew the banner to create a triangular side */
2024-04-14 16:46:48 -06:00
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.4);
2024-04-13 17:11:28 -06:00
2024-04-14 19:58:19 -06:00
/* --- FORMAT CHILD ITEMS --- */
display: flex; /* Enable flexbox layout */
flex-direction: row; /* Arrange child elements horizontally */
2024-04-11 06:07:35 -06:00
}
2024-04-14 19:58:19 -06:00
/*
===========================
LEAGUE INFORMATION CHILD ITEMS
===========================
*/
2024-04-14 19:52:42 -06:00
/* Adds Red Diagonal Strip at the end of the #league-information-container */
#league-information-container::after
{
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 8px; /* Width of the red strip */
background-color: red; /* Red color */
}
2024-04-13 17:11:28 -06:00
2024-04-14 19:52:42 -06:00
/* Styling for League Logo in League Information Header */
#league-logo
{
margin: 0px 30px;
transform: skewX(20deg); /* Skew the banner to create a triangular side */
height: 80%;
}
2024-04-13 18:45:55 -06:00
2024-04-14 19:52:42 -06:00
/* Styling for League Title in League Information Header */
#league-title
{
transform: skewX(20deg); /* Skew the banner to create a triangular side */
margin-right: 20px;
}
2024-04-13 18:45:55 -06:00
2024-04-14 19:52:42 -06:00
/* Styling for FLag in League Information Header */
#league-flag
{
transform: skewX(20deg); /* Skew the banner to create a triangular side */
height: 20px;
margin-right: 200px;
}
2024-04-13 17:11:28 -06:00
2024-04-14 19:52:42 -06:00
/*
=============================================
CARDS IN PAGE BODY
=============================================
*/
2024-04-13 19:48:25 -06:00
2024-04-14 19:52:42 -06:00
/* Styling for Standings and Top Scorers Cards */
2024-04-14 16:46:48 -06:00
#table-stats-container, #top-scorers-stats-container {
2024-04-13 19:48:25 -06:00
margin: 0 10px;
2024-04-14 15:47:07 -06:00
margin-bottom: 20px;
padding: 15px;
2024-04-13 19:48:25 -06:00
2024-04-14 15:47:07 -06:00
background-color: #ffffff; /* Example background color */
2024-04-13 19:48:25 -06:00
border: 1px solid gray;
border-radius: 8px;
2024-04-14 16:46:48 -06:00
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.5);
2024-04-13 19:48:25 -06:00
/* Add any other styling you need for the league table container */
}
2024-04-14 16:46:48 -06:00
#table-stats-container:hover, #top-scorers-stats-container:hover {
transform: scale(1.01); /* Scale the row by 1.1 on hover */
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
}
2024-04-14 17:30:20 -06:00
@media (max-width: 950px) {
#league-stats-containers {
flex-direction: column; /* Change flex direction to column */
2024-04-14 17:30:20 -06:00
}
}
2024-04-14 17:30:20 -06:00