diff --git a/db.sqlite3 b/db.sqlite3 index 9821825..12e22cd 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/news/__pycache__/models.cpython-37.pyc b/news/__pycache__/models.cpython-37.pyc index 1307b32..eb3878e 100644 Binary files a/news/__pycache__/models.cpython-37.pyc and b/news/__pycache__/models.cpython-37.pyc differ diff --git a/news/models.py b/news/models.py index 524e02d..4419503 100644 --- a/news/models.py +++ b/news/models.py @@ -7,7 +7,7 @@ from enum import Enum class PostState(Enum): DRAFT = 0 PUBLISHED = 1 - PROGRAMMED = 2 + WAITING_LIST = 2 USER_SUBMITTED = 3 class Post(models.Model): diff --git a/news/static/news/css/app.css b/news/static/news/css/app.css index 654ada8..1684c21 100644 --- a/news/static/news/css/app.css +++ b/news/static/news/css/app.css @@ -7,6 +7,35 @@ src: url("../LibreBaskerville-Bold.otf") format("opentype"); } + +header { + /* width: 100%; */ + margin-top: 10px; + text-align: center; +} + +header a { + text-decoration: none; + /* color: #fff; */ +} + +header h1 { + margin-bottom: 0; + font-family: 'LibreBaskervilleBold'; + font-size: 28px; +} + +header h2 { + margin: 0; + padding: 0; + font-size: 18px; +} + +nav { + font-size: 14px; + margin-bottom: 24px; +} + body { background-color:#fff; font-size:20px; @@ -33,6 +62,25 @@ article h1 { } } +.post_padding { + padding: 8px; +} +@media print, screen and (min-width: 40em) { + .post_padding { + padding: 0px; + } +} + +.lat_padding { + padding: 0px 8px; +} +/* @media print, screen and (min-width: 40em) { + .lat_padding { + padding: 0px 12px; + } +} */ + + .inside_image_top { position: absolute; top: 12px; @@ -45,6 +93,12 @@ article h1 { left: 12px; } +.postintro { + /* font-family: 'LibreBaskerville'; */ + font-size: 14px; + color: #999; +} + /* @media print, screen and (min-width: 40em) { .inside_image { bottom: 8px; @@ -115,12 +169,10 @@ article { } } -/* .content h1 { +.content h1 { font-family: 'LibreBaskervilleBold'; font-size: 28px; - margin: 10px 0px 0px 0px; - padding: 0px; -} */ +} .imgcontainer { position: relative; @@ -182,6 +234,7 @@ article { } .info { + width: 100%; font-size: 14px; border-bottom: 1px solid #ccc; /* margin-bottom: 6px; */ @@ -191,31 +244,56 @@ article { font-size: 14px; } -header { - /* width: 100%; */ - text-align: center; +li a { + color: red; } -header a { - text-decoration: none; - color: #fff; +.inline { + display: inline-block; } -header h1 { - margin-bottom: 0; +input[type=text] { + padding:5px; + border:2px solid #ccc; + -webkit-border-radius: 5px; + border-radius: 5px; } -header { - padding: 8px; - background-color: #333; - color: #fff; - /* font-size: 16px; */ +/* input[type=submit] { + font-size: 14px; + padding:5px 15px; + background:#FFD540; + border:0 none; + cursor:pointer; + -webkit-border-radius: 8px; + border-radius: 8px; +} */ + +form .primary_button { + font-size: 14px; + padding:5px 15px; + background:#FFD540; + border:0 none; + cursor:pointer; + -webkit-border-radius: 8px; + border-radius: 8px; } -li a { - color: red; +form .secondary_button { + -webkit-border-radius: 8px; + border-radius: 8px; } -.inline { - display: inline-block; +.secondary_button { + font-size: 14px; + padding:5px 15px; + background:#e8e8e8; + border:0 none; + cursor:pointer; + -webkit-border-radius: 8px; + border-radius: 8px; +} + +.reply_form { + margin-top: 8px; } diff --git a/news/templates/base.html b/news/templates/base.html index 7d1d37c..41a3baf 100644 --- a/news/templates/base.html +++ b/news/templates/base.html @@ -18,30 +18,35 @@ -->
{{ post.title }}
+{{ post.title }}
{{ post.body }}
-+ + {% for comment in comments %} -
{% for n in comment.level %}
{% endfor %} {{ comment.author.username }} - {{ comment.date }} - score = {{ comment.score }}
{% if comment.upvoted == False %}
{% endif %}
{% if comment.is_deletable %}
{% endif %}
-
+
-
{% for n in comment.level %}{% endfor %}
-
-
-
{% endfor %}
+
{{ comment.body }} -
+