From 2b3b80a55b920fc10989fcba0d27475882133a65 Mon Sep 17 00:00:00 2001 From: ktyl Date: Fri, 31 Dec 2021 17:59:18 +0000 Subject: [PATCH] responsive gallery --- src/inc_css/gallery.css | 43 ++++++++++++++++++++++++++++++----------- src/inc_css/nav.css | 10 ++++++---- src/inc_css/page.css | 2 +- src/root/gallery.html | 42 ++++++++++++++++++++-------------------- todo.md | 4 ++-- 5 files changed, 62 insertions(+), 39 deletions(-) diff --git a/src/inc_css/gallery.css b/src/inc_css/gallery.css index 985b0a9..d3cba34 100644 --- a/src/inc_css/gallery.css +++ b/src/inc_css/gallery.css @@ -1,14 +1,3 @@ -.tileCover { - width: 100%; - height: 100%; - opacity: 0.0; - transition: opacity 0.3s; -} - -.tileCover:hover { - opacity: 1.0; -} - .page.portfolio { padding-top: 0; width: 50%; @@ -134,3 +123,35 @@ filter: saturate(20) brightness(.5) blur(2px); } + +.icon-link { +} + +@media only screen and (max-width: 600px) { + .page.portfolio { + width: 100%; + } + + .wrapper .imgHolder { + overflow: hidden; + } + .wrapper .imgHolder span { + position: absolute; + top:0; + left:0; + width:100%; + height:100%; + transform: none; + } + .wrapper .imgHolder span a { + position: absolute; + left:0; + width:100%; + height:100%; + } + .icon-link { + display: none; + } + .wrapper .imgHolder span i { + /*display: none;*/ + } diff --git a/src/inc_css/nav.css b/src/inc_css/nav.css index bcb3beb..3ed9c07 100644 --- a/src/inc_css/nav.css +++ b/src/inc_css/nav.css @@ -59,21 +59,23 @@ ul.nav-links { padding: 0; z-index: 1; top: 0; - height: 2em; + height: 3em; } .nav .title { - padding-top: .5em; - padding-left: .5em; + padding-top: .6em; + padding-left: .6em; + height: 2em; } .nav .nav-links { position: absolute; top: 0; right: 0; - padding: .5em .5em 0 0; + padding: .6em .6em 0 0; float: right; text-align: right; + width: auto; } .nav .nav-links li { diff --git a/src/inc_css/page.css b/src/inc_css/page.css index 22c4d7c..42f5ba4 100644 --- a/src/inc_css/page.css +++ b/src/inc_css/page.css @@ -64,7 +64,7 @@ @media only screen and (max-width: 600px) { .page { - margin-top: 2em; + margin-top: 2.5em; width: 100%; padding: 0; diff --git a/src/root/gallery.html b/src/root/gallery.html index aaf685b..f5d4345 100644 --- a/src/root/gallery.html +++ b/src/root/gallery.html @@ -28,7 +28,7 @@ relativity

- +

@@ -40,7 +40,7 @@ relativity

- +

@@ -52,7 +52,7 @@ relativity

- +

@@ -85,7 +85,7 @@ open

- +

@@ -95,8 +95,8 @@

weekend

- - + +

@@ -113,7 +113,7 @@

ecollapse 2030

- +

@@ -123,8 +123,8 @@

squingle

- - + +

@@ -141,9 +141,9 @@

lsd

- - - + + +

@@ -153,9 +153,9 @@

stopnt

- - - + + +

@@ -172,8 +172,8 @@

gitch

- - + +

@@ -183,9 +183,9 @@

membrain

- - - + + +

@@ -195,7 +195,7 @@

make yourself at home

- +

diff --git a/todo.md b/todo.md index 3d03f60..161798b 100644 --- a/todo.md +++ b/todo.md @@ -14,8 +14,8 @@ * [ ] hope -> use * [x] solar system * [x] smaller - * [ ] gallery - * [ ] column too thin + * [x] gallery + * [x] column too thin * [ ] features * [ ] header * [ ] sticky slidy from middle to side with scroll