From 96ce74ee6f11d8802b9e3581e9a16131d9494de3 Mon Sep 17 00:00:00 2001 From: samaradel Date: Sun, 29 Nov 2020 16:12:45 +0200 Subject: [PATCH] Redo..People, Project pages --- src/assets/scss/main.scss | 55 +++++++++++++------------------------- src/pages/Blog.vue | 10 ++++++- src/templates/People.vue | 20 +++++--------- src/templates/Projects.vue | 25 +++++------------ 4 files changed, 40 insertions(+), 70 deletions(-) diff --git a/src/assets/scss/main.scss b/src/assets/scss/main.scss index b8f022f6d..81e6feee3 100644 --- a/src/assets/scss/main.scss +++ b/src/assets/scss/main.scss @@ -103,26 +103,25 @@ button:focus { } @media (min-width: 768px) { - // .with-large>.flex-post:nth-child(5n), - .with-large>.flex-post:nth-child(6n + 1) { - @apply flex-100; - @apply flex-row; + .with-large>.flex-post:nth-child(5n), + .with-large>.flex-post:nth-child(5n-1) { + // @apply flex-100; + flex: 1 1 50%; + @apply flex-col; .post-card-image-link { - // @apply flex-auto; - flex: 1 1 100%; @apply relative; - min-height: 380px; - @apply mr-6; + min-height: 400px; } .post-card-image { @apply absolute; - @apply h-auto; + @apply h-full; @apply w-full; @apply object-cover; @apply rounded-lg; } .post-card-content { - @apply flex-post-large-content; + // @apply flex-post-large-content; + flex: 0 1 auto; @apply self-center; } .post-card-title { @@ -132,33 +131,15 @@ button:focus { @apply text-xl; } } - // .with-large>.flex-overview:nth-child(6n + 1) { - // @apply flex-100; - // @apply flex-row; - // .post-card-image-link { - // @apply flex-auto; - // @apply relative; - // min-height: 380px; - // @apply mr-6; - // } - // .post-card-image { - // @apply absolute; - // @apply h-full; - // @apply w-full; - // @apply object-cover; - // @apply rounded-lg; - // } - // .post-card-content { - // @apply flex-post-large-content; - // @apply self-center; - // } - // .post-card-title { - // @apply text-4xl; - // } - // .post-card-excerpt { - // @apply text-xl; - // } - // } + .projects>.flex-post:nth-child(5n), + .projects>.flex-post:nth-child(5n-1) { + .post-card-image-link { + min-height: 300px; + } + .post-card-image { + @apply h-auto; + } + } } body[data-theme="dark"] { diff --git a/src/pages/Blog.vue b/src/pages/Blog.vue index cb91237d1..4c524675a 100644 --- a/src/pages/Blog.vue +++ b/src/pages/Blog.vue @@ -1,6 +1,9 @@