From a4e637b1f2a1bb5b4021cf9484efaaf89caea29c Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Tue, 21 Jan 2014 14:50:22 +0100 Subject: [PATCH] Added a little news section and slight responsive fixes. --- dpaste/static/dpaste/theme.css | 25 +++++++++++++++++++++++ dpaste/templates/dpaste/snippet_form.html | 12 +++++++++++ 2 files changed, 37 insertions(+) diff --git a/dpaste/static/dpaste/theme.css b/dpaste/static/dpaste/theme.css index 38d2d86..af8f01c 100644 --- a/dpaste/static/dpaste/theme.css +++ b/dpaste/static/dpaste/theme.css @@ -12,6 +12,23 @@ tt strong { outline: 3px solid #ffe699; } +.news { + max-width: 400px; + color: #999; + font-size: 12px; + line-height: 18px; +} + +.news h2 { + font-size: 12px; + font-weight: bold; + margin: 0; +} + +.news p { + margin: 5px 0 10px; +} + .message { margin: 0; padding: 10px 30px; @@ -199,6 +216,14 @@ ol.linenums li.marked { background-color: #4f4800; } +@media (max-width: 580px) { + .form-options-expire { + float: left; + clear: left; + margin-top: 10px; + } +} + /* ---------------------------------------------------------------------------- Pygments ---------------------------------------------------------------------------- */ diff --git a/dpaste/templates/dpaste/snippet_form.html b/dpaste/templates/dpaste/snippet_form.html index 1c2366f..4394b4f 100644 --- a/dpaste/templates/dpaste/snippet_form.html +++ b/dpaste/templates/dpaste/snippet_form.html @@ -39,3 +39,15 @@ ⌘+⏎ or Ctrl+⏎ + +{% if is_new %} +
+

Recent Changes

+

dpaste supports now one time snippets. Choose it from the + expiration dropdown. One time snippets get automatically deleted + once another person views the snippet.

+

There is an extensive API and plugins for various text editors + to post snippets directly from there. See the About + section for details.

+
+{% endif %}