// /tr
$parsedContent = Regex::compile('\[/tr\](?:\s|<br />)*', Regex::CASE_INSENSITIVE)->replace($parsedContent, '</tr>');
- return '<div class="container bbcodeTable"><table class="table"><tbody>'.$parsedContent.'</tbody></table></div>';
+ return '<div class="container bbcodeTable"><table class="table responsiveTable"><tbody>'.$parsedContent.'</tbody></table></div>';
}
else if ($parser->getOutputType() == 'text/simplified-html') {
// remove table tags
}
}
+@media screen and (max-width: 800px) {
+ .responsiveTable {
+ display: block;
+
+ thread, tbody, th, td, tr {
+ display: block;
+ }
+
+ thread tr {
+ display: none;
+ }
+
+ tr {
+ border: 1px solid @wcfContainerBorderColor;
+ border-top-width: 0;
+
+ &:last-child {
+ border-bottom-width: 0;
+ }
+ }
+ }
+}
+
/* ### definition lists ### */
dl.statsDataList {
> dt {