From 68f5f1fa2cd1c0f05a848c1f3289779aafcfbd30 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Fri, 19 Nov 2021 17:02:59 +1100 Subject: [PATCH] Move sub-menus to RHS and re-enable on mobile. --- www/conservancy/static/activities/index.html | 40 +++++++++---------- www/conservancy/static/css/conservancy.css | 32 +++++++-------- www/conservancy/templates/base_about.html | 3 +- www/conservancy/templates/base_blog.html | 3 +- .../templates/base_compliance.html | 3 +- .../templates/base_conservancy.html | 6 +-- www/conservancy/templates/base_learn.html | 3 +- www/conservancy/templates/base_press.html | 4 +- www/conservancy/templates/base_projects.html | 3 +- www/conservancy/templates/base_vizio.html | 3 +- www/conservancy/templates/frontpage.html | 2 +- .../templates/news/pressrelease_list.html | 28 ++++++------- 12 files changed, 57 insertions(+), 73 deletions(-) diff --git a/www/conservancy/static/activities/index.html b/www/conservancy/static/activities/index.html index 0cc0eb3d..1c5d5e17 100644 --- a/www/conservancy/static/activities/index.html +++ b/www/conservancy/static/activities/index.html @@ -11,23 +11,6 @@ {% block outercontent %}
-
{% block content %}

What We Do

@@ -67,9 +50,24 @@ the Outreachy initiative that offers paid internships in FOSS for contributors who have faced systemic bias in their efforts to join the FOSS community.

- - {% endblock %} -

+
+
- {% endblock %} +{% endblock %} diff --git a/www/conservancy/static/css/conservancy.css b/www/conservancy/static/css/conservancy.css index b155e729..f65932aa 100644 --- a/www/conservancy/static/css/conservancy.css +++ b/www/conservancy/static/css/conservancy.css @@ -136,7 +136,7 @@ text-decoration: none; color: #557733; bottom: 0; width: auto; padding: 0.5rem 1rem; - margin: 2rem -0.5rem 0; + margin: 0 -1rem; border-radius: 8px 8px 0 0; border: 1px solid #90d468; } @@ -145,18 +145,6 @@ text-decoration: none; color: #557733; background: #a0d870; } -@media screen and (min-width: 30em) { - .donate-sidebar { - margin: 2rem -1rem 0; - } -} - -@media screen and (max-width: 52em) { - #sidebar { - display: none; - } -} - p.footnote { font-size: 85%; } @@ -340,15 +328,16 @@ body > header { #container #mainContent { max-width: 50em; - margin: 0; + margin: 0 0 2rem; padding: 0; background: #ffffff; flex: 1 1 auto; } + #container #sidebar { background-color: #e6eae1; - padding: 1px 0.5rem 0.25rem; - margin-bottom: 1rem; + padding: 1px 0.5rem 2rem; + margin: 1rem -1rem 0; } @media screen and (min-width: 30em) { @@ -356,8 +345,8 @@ body > header { display: flex; } #container #sidebar { - flex: 1 0 15em; - margin-right: 1rem; + flex: 1 0 15em; + margin: 1rem 0rem 1rem 2rem; } } @@ -437,6 +426,13 @@ body > header { border-top: 1px solid #ccc; text-align: center; overflow: auto; + margin: 0; +} + +@media screen and (min-width: 30em) { + #conservancyfooter { + margin: 0; + } } .continued { diff --git a/www/conservancy/templates/base_about.html b/www/conservancy/templates/base_about.html index 61d1a13a..c84f838a 100644 --- a/www/conservancy/templates/base_about.html +++ b/www/conservancy/templates/base_about.html @@ -2,11 +2,10 @@ {% block category %}WhoWeAre{% endblock %} {% block outercontent %}
+
{% block content %}{% endblock %}
-
{% block content %}{% endblock %} -
{% endblock %} diff --git a/www/conservancy/templates/base_blog.html b/www/conservancy/templates/base_blog.html index d42828db..71d90a40 100644 --- a/www/conservancy/templates/base_blog.html +++ b/www/conservancy/templates/base_blog.html @@ -8,6 +8,7 @@ {% block outercontent %}
+
{% block content %}{% endblock %}
-
{% block content %}{% endblock %} -
{% endblock %} diff --git a/www/conservancy/templates/base_compliance.html b/www/conservancy/templates/base_compliance.html index d1c2ad67..60a18b55 100644 --- a/www/conservancy/templates/base_compliance.html +++ b/www/conservancy/templates/base_compliance.html @@ -11,6 +11,7 @@ {% block outercontent %}
+
{% block content %}{% endblock %}
-
{% block content %}{% endblock %} -