mirror of
https://github.com/rvtr/wiki.git
synced 2025-06-18 19:15:35 -04:00
Improve table and inline code on mobile
This commit is contained in:
parent
4eaae4e884
commit
0e01415ec8
@ -53,8 +53,9 @@ layout: compress
|
|||||||
<h1 class="mb-1">{{ page.long_title | default: page.title }}</h1>
|
<h1 class="mb-1">{{ page.long_title | default: page.title }}</h1>
|
||||||
<hr class="mt-0">
|
<hr class="mt-0">
|
||||||
{% if page.layout == "faq" %}
|
{% if page.layout == "faq" %}
|
||||||
{{ content }}
|
{{ content | replace: "<table>", '<div class="table-responsive"><table class="table">' | replace: "</table>", "</table></div>" }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% assign content = content | replace: "<table>", '<div class="table-responsive"><table class="table">' | replace: "</table>", "</table></div>" %}
|
||||||
{% include anchor-headings.html html=content anchorBody="<small>#</small>" anchorClass="header-anchor" %}
|
{% include anchor-headings.html html=content anchorBody="<small>#</small>" anchorClass="header-anchor" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="alert alert-secondary small-alert" role="alert">
|
<div class="alert alert-secondary small-alert" role="alert">
|
||||||
|
@ -45,7 +45,12 @@ blockquote {
|
|||||||
|
|
||||||
&:not(.wrap) {
|
&:not(.wrap) {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
|
@media screen and (max-width: 576px) {
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|
Loading…
Reference in New Issue
Block a user