diff --git a/formspree/static/css/main.css b/formspree/static/css/main.css index b80b792..dc6bef7 100644 --- a/formspree/static/css/main.css +++ b/formspree/static/css/main.css @@ -211,7 +211,6 @@ table { height: 0; } .container { - width: 100%; max-width: 950px; margin: 0 auto; } .container:after { @@ -221,8 +220,9 @@ table { visibility: hidden; line-height: 0; height: 0; } - .container.narrow { - max-width: 600px; } + @media (min-width: 760px) { + .container.narrow { + max-width: 600px; } } @media (max-width: 760px) { .container { max-width: 100% !important; } } @@ -717,7 +717,6 @@ a.alert-box.success:hover { border-bottom: 5px solid #ddd; } .dashboard table.responsive tr td { display: block; - text-align: center; font-size: 13px; border-bottom: 1px dotted #ccc; margin: 10px auto; @@ -727,7 +726,6 @@ a.alert-box.success:hover { .dashboard table.responsive tr td:before { content: attr(data-label); display: block; - text-align: center; text-transform: uppercase; font-weight: bold; } } .dashboard table.submissions { @@ -738,8 +736,7 @@ a.alert-box.success:hover { .dashboard table.submissions tr:first-child td { padding-top: 10px; } .dashboard table.submissions td { - padding: 3px 1px; - border: 1px ridge; } + padding: 3px 1px; } .dashboard table.submissions pre { font-family: inherit; margin: 0; @@ -919,6 +916,12 @@ a.alert-box.success:hover { .html-highlight .comment { color: #696969; } +a.button.export { + width: 11em; + text-align: center; + display: inline-block; + margin: 0 0 20px 20px; } + .slicknav_btn { position: relative; display: block; @@ -1303,9 +1306,6 @@ body#card { text-align: center; } body#card.dashboard { padding-top: 0; } - @media screen and (max-width: 40em) { - body#card { - padding-top: 0; } } .tooltip { font-weight: 600; @@ -1349,21 +1349,24 @@ body#card { padding-bottom: 1em; } @media (max-width: 760px) { .container { - padding-bottom: 0 !important; - padding-top: 0 !important; } } + padding-bottom: 0 !important; } } .container.block { padding-bottom: 1.5em; padding-top: 1.5em; } @media (max-width: 760px) { .container.block { - padding-top: 0 !important; padding-bottom: 0 !important; } } .container.block:first-child { padding-top: 0; } .container.block:last-child { padding-bottom: 0; } - .container.card { - max-width: 500px; } + @media (min-width: 760px) { + .container.card { + max-width: 500px; } } + @media (max-width: 760px) { + .container.card { + margin-right: 20px; + margin-left: 20px; } } .container.index-card { max-width: 950px; } diff --git a/formspree/static/scss/dashboard.scss b/formspree/static/scss/dashboard.scss index eb7ffd9..c1b1a2e 100644 --- a/formspree/static/scss/dashboard.scss +++ b/formspree/static/scss/dashboard.scss @@ -72,7 +72,6 @@ td { display: block; - text-align: center; font-size: 13px; border-bottom: 1px dotted #ccc; margin: 10px auto; @@ -86,7 +85,6 @@ td:before { content: attr(data-label); display: block; - text-align: center; text-transform: uppercase; font-weight: bold; } @@ -104,7 +102,6 @@ tr:first-child td { padding-top: 10px; } td { padding: 3px 1px; - border: 1px ridge; } pre { font-family: inherit; @@ -351,3 +348,10 @@ .attrvalue { color: #0000e6 } .comment { color: #696969 } } + +a.button.export { + width: 11em; + text-align: center; + display: inline-block; + margin: 0 0 20px 20px; +} diff --git a/formspree/static/scss/grid.scss b/formspree/static/scss/grid.scss index 7a36b9f..157f7e5 100644 --- a/formspree/static/scss/grid.scss +++ b/formspree/static/scss/grid.scss @@ -11,7 +11,6 @@ } .container { - width: 100%; max-width: 950px; margin: 0 auto; @@ -25,7 +24,9 @@ } &.narrow { - max-width: 600px; + @media (min-width: 760px) { + max-width: 600px; + } } @media (max-width: 760px) { diff --git a/formspree/static/scss/main.scss b/formspree/static/scss/main.scss index 6b90d15..a708289 100644 --- a/formspree/static/scss/main.scss +++ b/formspree/static/scss/main.scss @@ -40,9 +40,6 @@ body#card { padding-top: 0; } - @media screen and (max-width: 40em) { - padding-top: 0; - } } .tooltip { @@ -117,7 +114,6 @@ body#card { @media (max-width: 760px) { padding-bottom: 0 !important; - padding-top: 0 !important; } &.block { @@ -125,7 +121,6 @@ body#card { padding-top: 1.5em; @media (max-width: 760px) { - padding-top: 0 !important; padding-bottom: 0 !important; } @@ -138,7 +133,15 @@ body#card { } &.card { - max-width: 500px; + @media (min-width: 760px) { + max-width: 500px; + } + + @media (max-width: 760px) { + margin-right: 20px; + margin-left: 20px; + } + } &.index-card { diff --git a/formspree/templates/forms/captcha.html b/formspree/templates/forms/captcha.html index 9ca9c9f..a154a5a 100644 --- a/formspree/templates/forms/captcha.html +++ b/formspree/templates/forms/captcha.html @@ -36,7 +36,8 @@ grecaptcha.render('recaptcha', { 'sitekey' : {{ config.RECAPTCHA_KEY|tojson|safe }}, - 'callback' : success + 'callback' : success, + 'size': window.innerWidth < 400 ? 'compact' : 'normal' }); }; diff --git a/formspree/templates/forms/confirmation_sent.html b/formspree/templates/forms/confirmation_sent.html index 24c2c6a..d06f328 100644 --- a/formspree/templates/forms/confirmation_sent.html +++ b/formspree/templates/forms/confirmation_sent.html @@ -9,7 +9,8 @@ 'sitekey' : {{ config.RECAPTCHA_KEY|tojson|safe }}, 'callback' : function () { document.querySelector('form').submit() - } + }, + 'size': window.innerWidth < 400 ? 'compact' : 'normal' }); } diff --git a/formspree/templates/forms/submissions.html b/formspree/templates/forms/submissions.html index a64ffc2..a9fbd34 100644 --- a/formspree/templates/forms/submissions.html +++ b/formspree/templates/forms/submissions.html @@ -59,8 +59,8 @@
- Export as CSV - Export as JSON + Export as CSV + Export as JSON
{% endblock %} diff --git a/formspree/templates/forms/unblock_email.html b/formspree/templates/forms/unblock_email.html index d31baae..aef7c2b 100644 --- a/formspree/templates/forms/unblock_email.html +++ b/formspree/templates/forms/unblock_email.html @@ -7,7 +7,8 @@ 'sitekey' : {{ config.RECAPTCHA_KEY|tojson|safe }}, 'callback' : function () { document.querySelector('form').submit() - } + }, + 'size': window.innerWidth < 400 ? 'compact' : 'normal' }); } diff --git a/formspree/templates/layouts/base.html b/formspree/templates/layouts/base.html index 7ec0ac1..88796dc 100644 --- a/formspree/templates/layouts/base.html +++ b/formspree/templates/layouts/base.html @@ -40,6 +40,7 @@ ga('send', 'pageview'); {% endwith %} + {% block nav %} + {% endblock %}
{% block base %} diff --git a/formspree/templates/layouts/message.html b/formspree/templates/layouts/message.html index 60e9182..d66b923 100644 --- a/formspree/templates/layouts/message.html +++ b/formspree/templates/layouts/message.html @@ -1,5 +1,7 @@ {% extends 'layouts/base.html' %} +{% block nav %}{% endblock %} + {% block footer %}
diff --git a/web/test2.html b/web/test2.html new file mode 100644 index 0000000..4ead06b --- /dev/null +++ b/web/test2.html @@ -0,0 +1,8 @@ + +
+ + + + +
+