diff --git a/news/static/news/css/app.css b/news/static/news/css/app.css index 7d8c360..9a5a5ee 100644 --- a/news/static/news/css/app.css +++ b/news/static/news/css/app.css @@ -35,24 +35,28 @@ body { .imgcontainer { position: relative; - /* text-align: center; */ color: white; } -/* Bottom left text */ -.bottom-left { - width: 800px; - position: absolute; - bottom: 8px; - left: 16px; -} +/* @media print, screen and (min-width: 40em) { + .imgcontainer { + position: relative; + color: white; + } +} */ .crop { width: 1000px; /* width: 1000px; */ height: 200px; overflow: hidden; - border-radius: 20px;/*0px 20px 20px 0px;*/ + border-radius: 0px;/*0px 20px 20px 0px;*/ +} + +@media print, screen and (min-width: 40em) { + .crop { + border-radius: 20px; + } } .crop img { @@ -67,17 +71,26 @@ body { margin-top: 20px; } -.content { - /* background-color: #eee; */ - padding: 16px; +/* .content { + padding: 0px; +} */ + +article { + margin-bottom: 20px; +} + +@media print, screen and (min-width: 40em) { + article { + padding: 16px; + } } -.content h1 { +/* .content h1 { font-family: 'LibreBaskervilleBold'; font-size: 28px; margin: 10px 0px 0px 0px; padding: 0px; -} +} */ .imgcontainer a { color: #fff; @@ -87,16 +100,55 @@ body { color: #aaa; } -.contentbody { - font-family: 'LibreBaskerville'; +/* .content { padding: 12px 12px 0px 12px; } +.content p { + font-family: 'LibreBaskerville'; +} */ + +.body { + padding: 0px 12px; +} + +.body p { + font-family: 'LibreBaskerville'; +} + .post { padding: 10px 0px; margin-bottom: 10px; } +/* +.bottom-left { + position: absolute; + top: 8px; + left: 16px; +} +@media print, screen and (min-width: 32em) { + .bottom-left { + width: 24em; + } +} */ + +article h1 { + font-family: 'LibreBaskervilleBold'; + font-size: 18px; + position: absolute; + top: 12px; + left: 12px; +} +@media print, screen and (min-width: 40em) { + article h1 { + font-size: 28px; + width: 24em; + bottom: 8px; + top: auto; + } +} + .padded { padding: 8px; } diff --git a/news/templates/news/index.html b/news/templates/news/index.html index 97a782f..e9cb2b2 100644 --- a/news/templates/news/index.html +++ b/news/templates/news/index.html @@ -14,29 +14,33 @@ {% if post.style == 0 %} -
- {% endfor %} + +
+ {{ post.body }} +
++ {% endfor %} +