From b36800e0784fa6541fcbdb0949c3dd74793fe3fd 2021-10-15 10:43:43 From: Ben Sturmfels Date: 2021-10-15 10:43:43 Subject: [PATCH] Apply max widths and margins to all pages. Due to the varying types of layouts used and the short time-frame the best option seems to set a max-width etc. around the "outercontent" block. For now this means we can't do "full bleed" body content, but that's not currently used anyway. --- diff --git a/www/conservancy/static/css/conservancy.css b/www/conservancy/static/css/conservancy.css index 8357d1080bc0cf5936ea43a7b24b6c0cab0996ef..1078c763d87883427451704bb59ba916934cb2bc 100644 --- a/www/conservancy/static/css/conservancy.css +++ b/www/conservancy/static/css/conservancy.css @@ -147,7 +147,7 @@ p.footnote { } h1 { margin-top: .75em; margin-bottom: .5em; } -/* h2 { margin-top: .75em; margin-bottom: .5em; } */ +h2 { margin-top: .75em; margin-bottom: .5em; } h3 { margin-top: .6em; margin-bottom: .4em; } #mainContent ul, #mainContent ol { padding-left: 1.5em; } @@ -233,16 +233,16 @@ body > header { #navbar li:hover ul { display: block; } -#navbar li:last-child ul { +/* Right-align the second last and last sub-menus. */ +#navbar li:nth-last-child(2) ul, #navbar li:nth-last-child(1) ul { left: auto; right: 0; text-align: right; } - #mainContent { - margin: 0 auto; + overflow: auto; } #sidebar + #mainContent { float: left; diff --git a/www/conservancy/static/error/401/index.html b/www/conservancy/static/error/401/index.html index 672f339f28f39b29b66bbb78868caf53fd52c4cc..518eaff15605a4afad4ac7e5d9ec72db0b362755 100644 --- a/www/conservancy/static/error/401/index.html +++ b/www/conservancy/static/error/401/index.html @@ -3,7 +3,7 @@

401 Error

-

The page you request at sfconservancy.org +

The page you requested at sfconservancy.org requires authorization. Please use the navigation items to find a page that you are authorized to see.

diff --git a/www/conservancy/static/error/403/index.html b/www/conservancy/static/error/403/index.html index 936dff5f703e49a901f682beb8ffca4e9d4e51c6..42a783a93b5b42deccfb6f9c2b1213587e347a3e 100644 --- a/www/conservancy/static/error/403/index.html +++ b/www/conservancy/static/error/403/index.html @@ -3,7 +3,7 @@

403 Error

-

The page you request at sfconservancy.org +

The page you requested at sfconservancy.org does not have read permission. Please use the navigation items to find a page that you are authorized to see.

diff --git a/www/conservancy/static/error/404/index.html b/www/conservancy/static/error/404/index.html index 952f852ce108a8b8250113cd08ee9293fed24ab2..a9e3b15bd84e32ee819e162299e76e35b111afa7 100644 --- a/www/conservancy/static/error/404/index.html +++ b/www/conservancy/static/error/404/index.html @@ -3,8 +3,7 @@

404 Error

-

The page you request at sfconservancy.org +

The page you requested at sfconservancy.org was not found. Please use the navigation items to find a page that is available.

- {% endblock %} diff --git a/www/conservancy/templates/500.html b/www/conservancy/templates/500.html index 42098007e912f7dca64e0f0327b04d4577d4bba8..66fb0d23da43d6639bdb59631cc92f7a3b4262e6 100644 --- a/www/conservancy/templates/500.html +++ b/www/conservancy/templates/500.html @@ -3,7 +3,7 @@

500 Error

-

The page you request at sfconservancy.org is +

The page you requested at sfconservancy.org is unavailable due to an internal server error.

{% endblock %} diff --git a/www/conservancy/templates/base_conservancy.html b/www/conservancy/templates/base_conservancy.html index b679fa27292e6d6e41afa35754eb988af0a1300d..24f2d127ea159c2b17b7b8bc3a07187164ce3a77 100644 --- a/www/conservancy/templates/base_conservancy.html +++ b/www/conservancy/templates/base_conservancy.html @@ -46,7 +46,7 @@ -