Files
JellySport/ProjectSourceCode/src/resources/css/league-pages/league-table.css

130 lines
2.5 KiB
CSS
Raw Normal View History

2024-04-14 23:35:54 -06:00
/*
=================================
TABLE ADN HEADER CONTAINER
2024-04-14 23:35:54 -06:00
=================================
*/
/* Container for table and header */
#league-table-container
{
width: 60%;
justify-content: center;
align-items: center;
2024-04-14 16:46:48 -06:00
2024-04-15 02:09:31 -06:00
margin-right: 30px;
2024-04-14 21:55:37 -06:00
2024-04-14 16:46:48 -06:00
transition: transform 0.3s ease; /* Add smooth transition effect */
2024-04-13 18:26:14 -06:00
}
/*
=================================
TABLE CONTAINER
=================================
*/
2024-04-14 21:52:31 -06:00
/* Container for Table */
#league-table-stats-container
{
width: 100%;
2024-04-14 18:46:32 -06:00
}
2024-04-14 23:37:22 -06:00
/* Table that holds all the standing information */
#league-standings-table
{
2024-04-14 21:52:31 -06:00
width: 100%;
padding: 15px;
/* Table Header Styling */
th
{
border-bottom: 3px solid red; /* Add red bottom border */
}
2024-04-15 01:27:04 -06:00
/* Data in Row Style */
td
{
2024-04-15 16:02:19 -06:00
padding: 5px;
}
2024-04-15 01:27:04 -06:00
/* Every Odd Row in Table Style */
2024-04-15 02:09:31 -06:00
tbody tr:nth-child(odd)
2024-04-15 01:27:04 -06:00
{
2024-04-15 02:09:31 -06:00
background-color: #d2d2d2; /* Light gray for odd rows */
2024-04-15 01:27:04 -06:00
}
2024-04-14 21:52:31 -06:00
}
/*
===========================
TABLE COLUMNS STYLE
===========================
*/
2024-04-14 16:46:48 -06:00
2024-04-15 01:27:04 -06:00
/* Club Logo Column in Table Style */
#league-table-club-logo-column {
width: 25px;
2024-04-14 15:47:07 -06:00
/* Club Logo Style */
#league-table-club-logo
{
width: 25px;
margin-right: 5px;
cursor: pointer;
}
}
2024-04-13 18:26:14 -06:00
2024-04-15 01:27:04 -06:00
/* Club Name Column in Table Style */
#league-table-club-name-column
{
2024-04-15 02:09:31 -06:00
font-weight: 500;
cursor: pointer;
}
2024-04-15 01:27:04 -06:00
/* Points Column in Table Style */
#league-table-points-column
{
font-weight: bolder;
}
2024-04-13 18:26:14 -06:00
2024-04-15 01:27:04 -06:00
/*
==============================================================
HOVER STYLES
==============================================================
*/
2024-04-14 16:46:48 -06:00
/* Add hover effect to table rows */
#league-standings-table tbody tr:hover
{
2024-04-15 01:27:04 -06:00
/* Create border around row on hover */
2024-04-14 16:46:48 -06:00
border: 1px solid lightgray;
border-radius: 10px;
2024-04-15 01:27:04 -06:00
/* Make club logo larger on hover */
#league-table-club-logo
{
width: 32px;
}
2024-04-15 01:27:04 -06:00
/* Undeline club name on hover */
#league-table-club-name-column
{
text-decoration: underline; /* Add underline effect */
}
2024-04-14 16:46:48 -06:00
}
/*
==============================================================
DYNAMIC PAGE WIDTH STYLES
==============================================================
*/
2024-04-15 01:27:04 -06:00
/* Stlye for Screens Smaller than 1230px */
@media (max-width: 1230px)
{
#league-table-container
{
2024-04-14 21:52:31 -06:00
align-items: center;
width: 75%;
2024-04-14 23:35:54 -06:00
min-width: 580px;
2024-04-14 21:52:31 -06:00
}
}