From 1761bc8a19e1da18bc9a6733185785d13aef6261 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 15 Mar 2021 00:18:46 +0100 Subject: Add more styling --- wpisy/assets/default_tree.jpg | Bin 0 -> 197221 bytes wpisy/assets/naszywka.png | Bin 0 -> 60591 bytes wpisy/kronika.css | 55 ++++++++++++++++++++++++++++++++++++++++++ wpisy/style.css | 10 ++++++-- 4 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 wpisy/assets/default_tree.jpg create mode 100644 wpisy/assets/naszywka.png create mode 100644 wpisy/kronika.css (limited to 'wpisy') diff --git a/wpisy/assets/default_tree.jpg b/wpisy/assets/default_tree.jpg new file mode 100644 index 0000000..5aebb47 Binary files /dev/null and b/wpisy/assets/default_tree.jpg differ diff --git a/wpisy/assets/naszywka.png b/wpisy/assets/naszywka.png new file mode 100644 index 0000000..8547407 Binary files /dev/null and b/wpisy/assets/naszywka.png differ diff --git a/wpisy/kronika.css b/wpisy/kronika.css new file mode 100644 index 0000000..32f7860 --- /dev/null +++ b/wpisy/kronika.css @@ -0,0 +1,55 @@ +.post-link { + margin: 20px; + box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25); + background: #ffffff; + text-align: left; + transition: all 300ms ease-in-out; +} + +.post-link > a > div { + display: grid; + grid-template-columns: 1fr 2fr; +} + +.post-link:hover { + box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); + transform: scale(1.02); +} + +.post-link > a { + text-decoration: none; +} + +.post-link .post-container { + padding: 20px; + padding-top: 0; +} + +.post-link .post-title { + color: #181818; + font-size: 1.3em; +} + +.post-link .post-description { + color: #484848; + font-size: 0.9em; +} + +.post-link .image { + background-repeat: no-repeat; + background-size: cover; + background-position: center; + box-shadow: inset 0px 0px 100px rgba(0, 0, 0, 0.25); +} + +.post-list { + width: 100%; + margin: 15px auto; +} + +@media (max-width: 550px) { + .post-link > a > div { + grid-template-columns: 1fr; + grid-template-rows: 1fr 1fr; + } +} diff --git a/wpisy/style.css b/wpisy/style.css index 91a590a..905b566 100644 --- a/wpisy/style.css +++ b/wpisy/style.css @@ -74,12 +74,18 @@ main img { width: 100%; } -article { +article.kronika { text-align: left; } +article, +.content { + max-width: 80ex; + line-height: 1.5em; +} + header > *, -main, +article, footer > * { max-width: 80ex; margin: 0 auto; -- cgit 1.4.1