diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-15 00:18:46 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-15 00:18:46 +0100 |
commit | 1761bc8a19e1da18bc9a6733185785d13aef6261 (patch) | |
tree | 212e326fd64fe4c8068535a189f130722688fadb /wpisy/kronika.css | |
parent | 7703c4d8ecf321a046f95ee47167b7f6bff35f90 (diff) | |
download | kronika-1761bc8a19e1da18bc9a6733185785d13aef6261.tar.gz kronika-1761bc8a19e1da18bc9a6733185785d13aef6261.zip |
Add more styling
Diffstat (limited to 'wpisy/kronika.css')
-rw-r--r-- | wpisy/kronika.css | 55 |
1 files changed, 55 insertions, 0 deletions
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; + } +} |