More comments added to league-page.css
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
width: 100%; /* Set the width to the full width of screen */
|
width: 100%; /* Set the width to the full width of screen */
|
||||||
padding: 30px; /* Create some distance between page boundries and elements */
|
padding: 30px; /* Create some distance between page boundries and elements */
|
||||||
|
|
||||||
/* --- FORMAT CHILD ITEMS --- */
|
/* --- FORMAT CHILD ITEMS (Table and Leading Scorers Cards) --- */
|
||||||
display: flex; /* Enable flexbox layout */
|
display: flex; /* Enable flexbox layout */
|
||||||
flex-direction: column; /* Arrange child elements vertically */
|
flex-direction: column; /* Arrange child elements vertically */
|
||||||
}
|
}
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
transform: skewX(-20deg); /* Skew the banner to create a triangular side */
|
transform: skewX(-20deg); /* Skew the banner to create a triangular side */
|
||||||
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.4);
|
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.4);
|
||||||
|
|
||||||
/* --- FORMAT CHILD ITEMS --- */
|
/* --- FORMAT CHILD ITEMS (logo, league name, flag) --- */
|
||||||
display: flex; /* Enable flexbox layout */
|
display: flex; /* Enable flexbox layout */
|
||||||
flex-direction: row; /* Arrange child elements horizontally */
|
flex-direction: row; /* Arrange child elements horizontally */
|
||||||
}
|
}
|
||||||
@@ -91,29 +91,39 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Styling for Standings and Top Scorers Cards */
|
/* Styling for Standings and Top Scorers Cards */
|
||||||
#table-stats-container, #top-scorers-stats-container {
|
#table-stats-container, #top-scorers-stats-container
|
||||||
|
{
|
||||||
|
/* --- POSITION CONTAINER --- */
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
/* --- SIZE CONTAINER --- */
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
|
|
||||||
|
/* --- STYLE CONTAINER --- */
|
||||||
background-color: #ffffff; /* Example background color */
|
background-color: #ffffff; /* Example background color */
|
||||||
|
|
||||||
border: 1px solid gray;
|
border: 1px solid gray;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
||||||
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.5);
|
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.5);
|
||||||
/* Add any other styling you need for the league table container */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#table-stats-container:hover, #top-scorers-stats-container:hover {
|
/* Hover Styling for Standings and Top Scorers Cards */
|
||||||
transform: scale(1.01); /* Scale the row by 1.1 on hover */
|
#table-stats-container:hover, #top-scorers-stats-container:hover
|
||||||
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
|
{
|
||||||
}
|
transform: scale(1.01); /* Scale the row by 1.1 on hover */
|
||||||
|
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
|
||||||
@media (max-width: 950px) {
|
|
||||||
#league-stats-containers {
|
|
||||||
flex-direction: column; /* Change flex direction to column */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
==============================================================
|
||||||
|
DYNAMIC PAGE WIDTH STYLES
|
||||||
|
==============================================================
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Width of Screen is Less Than 950px */
|
||||||
|
@media (max-width: 950px)
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="page-container" id="league-page-body">
|
<div id="league-page-body" class="page-container">
|
||||||
|
|
||||||
<!-- Container for all league information (logo, name, country, etc. ) <- top 100px -->
|
<!-- Container for all league information (logo, name, country, etc. ) <- top 100px -->
|
||||||
<div class="container" id="league-information-container">
|
<div id="league-information-container" class="information-container">
|
||||||
<img id="league-logo" src="{{league.competition.league_emblem}}" alt="{{league.competition.league_name}} Emblem">
|
<img id="league-logo" src="{{league.competition.league_emblem}}" alt="{{league.competition.league_name}} Emblem">
|
||||||
<h1 id="league-title">{{league.competition.league_name}}</h2>
|
<h1 id="league-title">{{league.competition.league_name}}</h2>
|
||||||
<img id="league-flag" src="{{league.area.league_flag}}" alt="{{league.competition.league_name}} Flag">
|
<img id="league-flag" src="{{league.area.league_flag}}" alt="{{league.competition.league_name}} Flag">
|
||||||
|
|||||||
Reference in New Issue
Block a user