Skip to content
Snippets Groups Projects
Commit 94f2aaf9 authored by Silvio Giebl's avatar Silvio Giebl
Browse files

Added table wrappers, fixed anchor headings

parent 03e23458
No related branches found
No related tags found
No related merge requests found
---
layout: vendor/compress
---
{% include vendor/anchor_headings.html html=content anchorBody="#" anchorClass="anchor_heading" %}
\ No newline at end of file
---
layout: anchor_headings
layout: table_wrappers
---
<!DOCTYPE html>
......@@ -57,7 +57,8 @@ layout: anchor_headings
{% endif %}
{% endunless %}
<div id="main-content" class="page-content" role="main">
{{ content }}
{% include vendor/anchor_headings.html html=content anchorBody="#" anchorClass="anchor_heading" %}
{% if page.has_children == true and page.has_toc != false %}
<hr>
......
---
layout: vendor/compress
---
{% assign content_ = content | replace: '<table', '<div class="table-wrapper"><table' %}
{% assign content_ = content_ | replace: '</table>', '</table></div>' %}
{{ content_ }}
\ No newline at end of file
......@@ -3,18 +3,19 @@
//
// stylelint-disable max-nesting-depth, selector-no-type, selector-max-type
table {
.table-wrapper {
display: block;
width: 100%;
max-width: 100%;
margin-bottom: $sp-5;
overflow-x: auto;
border-collapse: separate;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 14px rgba(0, 0, 0, 0.05);
}
@include mq(sm) {
display: table;
}
table {
display: table;
min-width: 100%;
border-collapse: separate;
}
th,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment