From 26765a8c4eb7ed9c86c6f6a9fc690f57920efcd4 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 23 May 2021 10:55:09 +0530 Subject: update art page --- docs/style.css | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) (limited to 'docs/style.css') diff --git a/docs/style.css b/docs/style.css index cdcb2d0..70ce31e 100644 --- a/docs/style.css +++ b/docs/style.css @@ -168,16 +168,89 @@ pre > code { color: var(--black); } +/* art stuff */ +#photos { + -webkit-column-count: 3; + -webkit-column-gap: 12px; + -moz-column-count: 3; + -moz-column-gap: 12px; + column-count: 3; + column-gap: 12px; +} + +#photos img { + /* Just in case there are inline attributes */ + width: 100% !important; + height: auto !important; + border: 0px; + border-radius: 0.4rem; + box-shadow: none; +} + +.photo-container { + position: relative; + width: 100%; + margin-bottom: 12px; +} + +.photo-overlay { + line-height: 0; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + width: 100% !important; + height: auto !important; + opacity: 0; + transition: .3s ease; + background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(255, 255, 255, 0.0)); + border-radius: 0.4rem; +} + +.photo-text { + line-height: 1; + padding: 12px; + color: white; +} + +.photo-title { + font-size: 1rem; + color: white; +} + +.photo-date { + margin-top: 0.2rem; + font-size: 0.6rem; + color: white; +} + +.photo-container:hover .photo-overlay { + opacity: 1; +} + +/* end of art stuff */ + @media only screen and (min-width: 1080px) { .posts { max-width: 650px; } + #photos { + -moz-column-count: 3; + -webkit-column-count: 3; + column-count: 3; + } } @media only screen and (min-width: 1400px) { .posts { max-width: 650px; } + #photos { + -moz-column-count: 3; + -webkit-column-count: 3; + column-count: 3; + } } .posts { -- cgit v1.2.3