From 6f61bdf959fdb11dcf44a14d0cee4b886ed86298 Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Thu, 14 Dec 2023 16:21:59 -0800 Subject: [PATCH 1/2] Add 2023 survey --- _static/css/custom2.css | 19 +++++++++++++++++++ _templates/layout.html | 10 +++++++++- conf.py | 3 ++- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 _static/css/custom2.css diff --git a/_static/css/custom2.css b/_static/css/custom2.css new file mode 100644 index 00000000000..4e263b67759 --- /dev/null +++ b/_static/css/custom2.css @@ -0,0 +1,19 @@ +/* Survey banner .css */ + +.survey-banner { + margin-top: 10px; + background-color: #f3f4f7; + padding-top: 15px; + padding-left: 10px; + padding-bottom: 1px; +} + +@media screen and (max-width: 600px) { + .survey-banner { + padding-top: 5px; + padding-left: 5px; + padding-bottom: -1px; + font-size: 12px; + margin-bottom: 5px; + } +} diff --git a/_templates/layout.html b/_templates/layout.html index 0d643d0b25d..44026575538 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -1,6 +1,5 @@ {% extends "!layout.html" %} - {%- block content %} {{ super() }} + + {% endblock %} diff --git a/conf.py b/conf.py index 23c4fb1d7df..d9c0c7534d1 100644 --- a/conf.py +++ b/conf.py @@ -285,7 +285,8 @@ def reset_seeds(gallery_conf, fname): html_css_files = [ 'https://cdn.jsdelivr.net/npm/katex@0.10.0-beta/dist/katex.min.css', - 'css/custom.css' + 'css/custom.css', + 'css/custom2.css' ] def setup(app): From 911cd187a37643978d25e5e86a08f6ab3fbbe5fc Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Fri, 15 Dec 2023 09:30:48 -0800 Subject: [PATCH 2/2] add a note --- _templates/layout.html | 1 + 1 file changed, 1 insertion(+) diff --git a/_templates/layout.html b/_templates/layout.html index 44026575538..4ff6d7c899a 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -113,6 +113,7 @@ +//temporarily add a link to survey