Skip to content

Instantly share code, notes, and snippets.

@aharshac
Last active April 25, 2017 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aharshac/37d267d8cf457ea24525c19085b808cd to your computer and use it in GitHub Desktop.
Save aharshac/37d267d8cf457ea24525c19085b808cd to your computer and use it in GitHub Desktop.
collaborizm-community-fix-1
table
{
background-color: #fff;
width: 100%;
max-width: 100%;
margin-top: 20px !important;
margin-bottom: 20px !important;
border-collapse: collapse;
}
table > thead > tr > th
{
padding: 8px;
line-height: 1.4285714;
border-top: 1px solid #ddd;
}
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td,
table > tfoot > tr > th,
table > tfoot > tr > td
{
padding: 8px;
line-height: 1.4285714;
vertical-align: top;
border-top: 1px solid #ddd;
text-align: left;
}
table > thead > tr > th
{
vertical-align: bottom;
border-bottom: 2px solid #ddd;
font-weight: bold;
}
table > caption + thead > tr:first-child > th,
table > caption + thead > tr:first-child > td,
table > colgroup + thead > tr:first-child > th,
table > colgroup + thead > tr:first-child > td,
table > thead:first-child > tr:first-child > th,
table > thead:first-child > tr:first-child > td
{
border-top: 0;
}
table > tbody + tbody
{
border-top: 2px solid #ddd;
}
/* Condensed */
table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td,
table > tfoot > tr > th,
table > tfoot > tr > td
{
padding: 5px;
}
/* Bordered */
table,
table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td,
table > tfoot > tr > th,
table > tfoot > tr > td
{
border: 1px solid #ddd;
}
table > thead > tr > th,
table > thead > tr > td
{
border-bottom-width: 2px;
}
/* Striped */
table > tbody > tr:nth-child(odd) > td,
table > tbody > tr:nth-child(odd) > th
{
background-color: #f9f9f9;
}
/* Hover */
table > tbody > tr:hover > td,
table > tbody > tr:hover > th
{
background-color: #f5f5f5;
}
/* code */
*:not(pre) > code {
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
border-radius: 3px;
color: #dd1144;
padding: 2px 4px;
overflow-wrap: break-word;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment