<p>Patrick Rudolph has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/26263">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Documentation: Add static CSS file to fix tables<br><br>Add a static CSS file to remove annoying scrollbars on rst code tables.<br><br>Change-Id: I436b36fb7ee9856c7d6ad8534cd0610b7f071b17<br>Signed-off-by: Patrick Rudolph <siro@das-labor.org><br>---<br>A Documentation/_static/theme_overrides.css<br>M Documentation/conf.py<br>2 files changed, 26 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/63/26263/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Documentation/_static/theme_overrides.css b/Documentation/_static/theme_overrides.css</span><br><span>new file mode 100644</span><br><span>index 0000000..e73518b</span><br><span>--- /dev/null</span><br><span>+++ b/Documentation/_static/theme_overrides.css</span><br><span>@@ -0,0 +1,19 @@</span><br><span style="color: hsl(120, 100%, 40%);">+/*</span><br><span style="color: hsl(120, 100%, 40%);">+ * Copyright 2018 Patrick Rudolph <siro@das-labor.org></span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * licensed under CC-by 4.0</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/* override table width restrictions */</span><br><span style="color: hsl(120, 100%, 40%);">+@media screen and (min-width: 767px) {</span><br><span style="color: hsl(120, 100%, 40%);">+   .wy-table-responsive table td {</span><br><span style="color: hsl(120, 100%, 40%);">+      /* !important prevents the common CSS stylesheets from overriding</span><br><span style="color: hsl(120, 100%, 40%);">+         this as on RTD they are loaded after this stylesheet */</span><br><span style="color: hsl(120, 100%, 40%);">+      white-space: normal !important;</span><br><span style="color: hsl(120, 100%, 40%);">+   }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   .wy-table-responsive {</span><br><span style="color: hsl(120, 100%, 40%);">+      overflow: visible !important;</span><br><span style="color: hsl(120, 100%, 40%);">+   }</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>diff --git a/Documentation/conf.py b/Documentation/conf.py</span><br><span>index 85e0438..f108d77 100644</span><br><span>--- a/Documentation/conf.py</span><br><span>+++ b/Documentation/conf.py</span><br><span>@@ -58,7 +58,13 @@</span><br><span> # Add any paths that contain custom static files (such as style sheets) here,</span><br><span> # relative to this directory. They are copied after the builtin static files,</span><br><span> # so a file named "default.css" will overwrite the builtin "default.css".</span><br><span style="color: hsl(0, 100%, 40%);">-#html_static_path = ['_static']</span><br><span style="color: hsl(120, 100%, 40%);">+html_static_path = ['_static']</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+html_context = {</span><br><span style="color: hsl(120, 100%, 40%);">+      'css_files': [</span><br><span style="color: hsl(120, 100%, 40%);">+        '_static/theme_overrides.css',  # override wide tables in RTD theme</span><br><span style="color: hsl(120, 100%, 40%);">+      ],</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span> </span><br><span> # Output file base name for HTML help builder.</span><br><span> htmlhelp_basename = 'corebootdoc'</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26263">change 26263</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/26263"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I436b36fb7ee9856c7d6ad8534cd0610b7f071b17 </div>
<div style="display:none"> Gerrit-Change-Number: 26263 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> </div>