diff --git a/static/nryg.less b/static/nryg.less index b0d0ec92..8b739974 100644 --- a/static/nryg.less +++ b/static/nryg.less @@ -18,10 +18,12 @@ h1, h2, h3, h4, h5, h6 { a { color: @link-color; + text-decoration: none; } -a:active { +a:hover, a:active { color: @link-color; + text-decoration: underline; } a:visited { @@ -32,14 +34,13 @@ blockquote { border-left: 3px solid @quote-color; color: @quote-color; background-color: rgba(red(@quote-color), green(@quote-color), blue(@quote-color), 0.1); - padding-left: 8px; + padding: 2px 4px 2px 8px; margin-left: 8px; } blockquote p { - padding-top: 4px; - padding-bottom: 2px; - margin: 6px 0; + padding-top: 2px; + margin: 4px 0; } blockquote.spoiler { @@ -171,13 +172,13 @@ nav { } @media (min-width:600px) { - .desktop-only { + .mobile-only { display: none; } } @media (max-width:600px) { - .mobile-only { + .desktop-only { display: none; } } @@ -570,6 +571,28 @@ nav { } } +.diario blockquote { + display: grid; + + .left { + grid-column: 1; + } + + .right { + grid-column: 2; + text-align: right; + margin-top: auto; + } + + cite { + font-size: smaller; + } + + .entry-id { + text-align: right; + } +} + #edit-css { font-size: medium; } \ No newline at end of file diff --git a/templates/components/diarioentry.html b/templates/components/diarioentry.html new file mode 100644 index 00000000..5b3e999b --- /dev/null +++ b/templates/components/diarioentry.html @@ -0,0 +1,13 @@ +
+\ No newline at end of file diff --git a/templates/diario.html b/templates/diario.html new file mode 100644 index 00000000..353dfed8 --- /dev/null +++ b/templates/diario.html @@ -0,0 +1,16 @@ +{% extends 'base.html' %} + +{% block pagetitle %} + Diario +{% endblock %} + +{% block body %} ++++ {{ entry.text }} +
++ — {% if entry.author is not none %}{{ entry.author.royal.username }}{% else %} {% endif %}, {% if entry.saver is not none and entry.saver != entry.author %}(salvato da {{ entry.saver.royal.username }}){% endif %} +
++ #{{ entry.id }} ++