about summary refs log tree commit diff
path: root/wpisy
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-15 00:18:46 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-15 00:18:46 +0100
commit1761bc8a19e1da18bc9a6733185785d13aef6261 (patch)
tree212e326fd64fe4c8068535a189f130722688fadb /wpisy
parent7703c4d8ecf321a046f95ee47167b7f6bff35f90 (diff)
downloadkronika-1761bc8a19e1da18bc9a6733185785d13aef6261.tar.gz
kronika-1761bc8a19e1da18bc9a6733185785d13aef6261.zip
Add more styling
Diffstat (limited to 'wpisy')
-rw-r--r--wpisy/assets/default_tree.jpgbin0 -> 197221 bytes
-rw-r--r--wpisy/assets/naszywka.pngbin0 -> 60591 bytes
-rw-r--r--wpisy/kronika.css55
-rw-r--r--wpisy/style.css10
4 files changed, 63 insertions, 2 deletions
diff --git a/wpisy/assets/default_tree.jpg b/wpisy/assets/default_tree.jpg
new file mode 100644
index 0000000..5aebb47
--- /dev/null
+++ b/wpisy/assets/default_tree.jpg
Binary files differdiff --git a/wpisy/assets/naszywka.png b/wpisy/assets/naszywka.png
new file mode 100644
index 0000000..8547407
--- /dev/null
+++ b/wpisy/assets/naszywka.png
Binary files differdiff --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;