Style: création du shortcode table
`{% table() %}` […] `{% end %}` pour entourer les tableaux dans une div scrollable sur écran étroit
This commit is contained in:
parent
c119829cb4
commit
f6dda602a3
2 changed files with 7 additions and 0 deletions
|
@ -10,4 +10,8 @@
|
|||
|
||||
.box-shadow {
|
||||
box-shadow: 0 2px 10px 2px #ddd;
|
||||
}
|
||||
|
||||
.overflow-scroll {
|
||||
overflow: scroll;
|
||||
}
|
3
templates/shortcodes/table.md
Normal file
3
templates/shortcodes/table.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div {% if class %} class="{{class}}"{% else %} class="overflow-scroll" {% endif %} >
|
||||
{{ body | safe | markdown }}
|
||||
</div>
|
Loading…
Reference in a new issue