Skip to content

Commit

Permalink
Merge pull request #898 from Queen-codes/restyle-community-team-page
Browse files Browse the repository at this point in the history
restyled community team page tables
  • Loading branch information
TimidRobot authored Jan 16, 2025
2 parents 0d95515 + 6907755 commit 6f44550
Show file tree
Hide file tree
Showing 9 changed files with 14,646 additions and 11 deletions.
45 changes: 45 additions & 0 deletions assets/static/css/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "/static/vocabulary/css/vocabulary.css" layer(vocabulary);
@import "/static/vendor/datatable/datatables.css" layer(datatables);

/* Homepage Styles */

Expand Down Expand Up @@ -71,6 +72,50 @@
--underline-background-color: var(--vocabulary-brand-color-soft-turquoise);
}

/* Padding for content on mobile screen */
.body-content {
padding: 0 1rem;
}

.body-content p {
margin-bottom: 1rem; /*To override default margin-bottom of 2em by vocabulary.css */
}

/* Table Styles */
table.display {
border-collapse: collapse;
width: 100%;
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
}

table.display th {
border-bottom: 1px solid #ddd;
border-top: 1px solid #ddd;
border-width: 1px;
}

table.display thead {
background-color: rgb(216, 216, 216);
}

table.display th, table.display td {
border: 1px solid #ddd;
padding: 8px;
}

/* Code block styles */
code {
color: rgb(51, 51, 51);
background-color: rgb(245, 245, 245);
border: 0.0625rem solid rgb(216, 216, 216);
border-radius: 0.25rem;
padding: 0.125rem 0.25rem;
font-size: 0.75em;
font-weight: normal;
/*padding: 0.25em 0.5em 0.25em; */
}

@media (min-width: 1024px) {
/* Styles for screens 768px and larger go here */

Expand Down
12 changes: 12 additions & 0 deletions assets/static/js/table.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
document.addEventListener("DOMContentLoaded", function () {
document
.querySelectorAll(".datatable")
.forEach(function (tableElement) {
new DataTable(tableElement, {
paging: false, // Disable pagination
searching: false, // Disable search bar
ordering: true, // Enable column sorting
info: false, // Disable info text
});
});
});
Loading

0 comments on commit 6f44550

Please sign in to comment.