Skip to content

Commit 6f44550

Browse files
authored
Merge pull request #898 from Queen-codes/restyle-community-team-page
restyled community team page tables
2 parents 0d95515 + 6907755 commit 6f44550

File tree

9 files changed

+14646
-11
lines changed

9 files changed

+14646
-11
lines changed

assets/static/css/style.css

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "/static/vocabulary/css/vocabulary.css" layer(vocabulary);
2+
@import "/static/vendor/datatable/datatables.css" layer(datatables);
23

34
/* Homepage Styles */
45

@@ -71,6 +72,50 @@
7172
--underline-background-color: var(--vocabulary-brand-color-soft-turquoise);
7273
}
7374

75+
/* Padding for content on mobile screen */
76+
.body-content {
77+
padding: 0 1rem;
78+
}
79+
80+
.body-content p {
81+
margin-bottom: 1rem; /*To override default margin-bottom of 2em by vocabulary.css */
82+
}
83+
84+
/* Table Styles */
85+
table.display {
86+
border-collapse: collapse;
87+
width: 100%;
88+
border-left: 1px solid #ddd;
89+
border-right: 1px solid #ddd;
90+
}
91+
92+
table.display th {
93+
border-bottom: 1px solid #ddd;
94+
border-top: 1px solid #ddd;
95+
border-width: 1px;
96+
}
97+
98+
table.display thead {
99+
background-color: rgb(216, 216, 216);
100+
}
101+
102+
table.display th, table.display td {
103+
border: 1px solid #ddd;
104+
padding: 8px;
105+
}
106+
107+
/* Code block styles */
108+
code {
109+
color: rgb(51, 51, 51);
110+
background-color: rgb(245, 245, 245);
111+
border: 0.0625rem solid rgb(216, 216, 216);
112+
border-radius: 0.25rem;
113+
padding: 0.125rem 0.25rem;
114+
font-size: 0.75em;
115+
font-weight: normal;
116+
/*padding: 0.25em 0.5em 0.25em; */
117+
}
118+
74119
@media (min-width: 1024px) {
75120
/* Styles for screens 768px and larger go here */
76121

assets/static/js/table.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
document.addEventListener("DOMContentLoaded", function () {
2+
document
3+
.querySelectorAll(".datatable")
4+
.forEach(function (tableElement) {
5+
new DataTable(tableElement, {
6+
paging: false, // Disable pagination
7+
searching: false, // Disable search bar
8+
ordering: true, // Enable column sorting
9+
info: false, // Disable info text
10+
});
11+
});
12+
});

0 commit comments

Comments
 (0)