mirror of
https://github.com/rolfiee/wiki.git
synced 2025-06-18 11:15:33 -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">
|
||||||
|
@ -42,10 +42,15 @@ blockquote {
|
|||||||
background-color: $code-bg;
|
background-color: $code-bg;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
|
|
||||||
&: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