More CSS clean-up to remove redundant styling and streamline elements

This commit is contained in:
Lucas Patenaude
2024-04-16 14:56:22 -06:00
parent 80c1dca846
commit ae054ed60a
8 changed files with 98 additions and 177 deletions

View File

@@ -1,6 +1,6 @@
/*
=================================
TABLE AND HEADER CONTAINER
LEAGUE TABLE CONTAINER
=================================
*/
@@ -8,102 +8,40 @@
#league-table-container
{
width: 60%;
justify-content: center;
align-items: center;
margin-right: 30px;
transition: transform 0.3s ease; /* Add smooth transition effect */
}
/*
=================================
TABLE CONTAINER
=================================
============================================
LEAGUE TABLE COLUMNS STYLE
============================================
*/
/* Table that holds all the standing information */
#league-standings-table
{
width: 100%;
padding: 15px;
/* Club Logo Column in Table Style */
#league-table-club-logo-column {
width: 25px;
/* Table Header Styling */
th
{
border-bottom: 3px solid red; /* Add red bottom border */
}
/* Data in Row Style */
td
{
padding: 5px;
}
/* Every Odd Row in Table Style */
tbody tr:nth-child(odd)
{
background-color: #d2d2d2; /* Light gray for odd rows */
}
}
/*
===========================
TABLE COLUMNS STYLE
===========================
*/
/* Club Logo Column in Table Style */
#league-table-club-logo-column {
width: 25px;
/* Club Logo Style */
#league-table-club-logo
{
width: 25px;
margin-right: 5px;
cursor: pointer;
}
}
/* Club Name Column in Table Style */
#league-table-club-name-column
{
font-weight: 500;
/* Club Logo Style */
#league-table-club-logo
{
width: 25px;
margin-right: 5px;
cursor: pointer;
}
/* Points Column in Table Style */
#league-table-points-column
{
font-weight: bolder;
}
}
/*
==============================================================
HOVER STYLES
==============================================================
*/
/* Add hover effect to table rows */
#league-standings-table tbody tr:hover
/* Club Name Column in Table Style */
#league-table-club-name-column
{
/* Create border around row on hover */
border: 1px solid lightgray;
border-radius: 10px;
font-weight: 500;
cursor: pointer;
}
/* Make club logo larger on hover */
#league-table-club-logo
{
width: 32px;
}
/* Undeline club name on hover */
#league-table-club-name-column
{
text-decoration: underline; /* Add underline effect */
}
/* Points Column in Table Style */
#league-table-points-column
{
font-weight: bolder;
}
/*

View File

@@ -9,58 +9,38 @@
width: 40%;
}
#league-top-scorers-stats-container {
/*
===========================
TABLE COLUMNS STYLE
===========================
*/
/* Table Header Styling */
th
{
border-bottom: 3px solid red; /* Add red bottom border */
}
tr
{
padding: 3px;
}
/* Data in Row Style */
td
{
padding: 5px;
}
#league-top-scorers-goals-column
{
text-align: center;
font-size: 20px;
font-weight: bolder;
}
/*
===========================
TABLE COLUMNS STYLE
===========================
*/
#league-top-scorers-logo
{
width: 25px;
margin: 0 15px;
cursor: pointer;
}
#league-top-scorers-goals-column
{
text-align: center;
font-size: 20px;
font-weight: bolder;
}
#league-top-scorers-player-name-column
{
#league-top-scorers-logo
{
width: 25px;
margin: 0 15px;
cursor: pointer;
}
font-size: 14px;
font-weight: bold;
padding-right: 15px;
}
#league-top-scorers-player-name-column
{
font-size: 14px;
font-weight: bold;
padding-right: 15px;
}
#league-top-scorers-club-name-column
{
padding-right: 15px;
}
#league-top-scorers-club-name-column
{
padding-right: 15px;
}
/*
==============================================================