diff website/www/_static/style.css @ 7362:527cad3a860c

color and full width example pre; change way to do max width Color pre blocks light yellow so they stand out from background. The white background wasn't enough contrast to make them scannable. Also try to make pre blocks full bleed to the right to use all available screen space without overflowing the screen. This makes viewing, cut/paste etc. the examples easier. When pre extends past edge of screen, pre will overflow and scrolling will kick in. I still have an issue with pre inside tables. They cause the table to overflow. Hence the page needs to be x-scrolled. I can change the restructured text to insert a div/container and set the conteiner to scroll on overflow, but I don't have another good answer at the moment.
author John Rouillard <rouilj@ieee.org>
date Tue, 16 May 2023 19:37:13 -0400
parents ff5a50069822
children 8811f1934a79
line wrap: on
line diff
--- a/website/www/_static/style.css	Tue May 16 11:58:56 2023 -0400
+++ b/website/www/_static/style.css	Tue May 16 19:37:13 2023 -0400
@@ -108,13 +108,15 @@
 body > .header > #searchbox { position: absolute; right: 1em; top: 1em;}
 body > .content > #subnav    { position: absolute; right: 1.5em; top: 6em;}
 
-/* limit width of main column to 65 characters. On wider screens can
-   be 100+ chars: too wide */
 main {
-  max-width: 65ch;
   line-height: calc(1.5 * 1em);
 }
 
+/* limit width of items in main column to 65 characters. On
+   wider screens can be 100+ chars: too wide */
+main p, main:is(H1, H2, H3, H4, H5, H6), {max-width: 65ch;}
+main table { width: 65ch; }
+
 /* style */
 
 :link { color: rgb(220,0,0); text-decoration: none;}
@@ -361,8 +363,8 @@
     /* Shadows */
     background-image:
        /* Shadow covers */
-       linear-gradient(to right, white, white),
-       linear-gradient(to right, white, white),
+       linear-gradient(to right, #f5f4d8, #f5f4d8),
+       linear-gradient(to right, #f5f4d8, #f5f4d8),
        /* Shadow */
        radial-gradient(farthest-side at 0px 50%,
 		       rgba(0, 0, 20, 0.5), rgba(255, 255, 255, 0)),
@@ -376,7 +378,7 @@
     background-position: left center, right center,
                          left center, right center;
     background-repeat: no-repeat;
-    background-color: white;
+    background-color: #f5f4d8;
     background-size: 20px 100%, 20px 100%, 16px 100%, 16px 100%;
     background-attachment: local, local, scroll, scroll;
 }

Roundup Issue Tracker: http://roundup-tracker.org/