From c2f324f5155da57ce3b2521b5c29c38c97ab4d5e Mon Sep 17 00:00:00 2001 From: xaralis <filip.varecha@fragaria.cz> Date: Tue, 3 May 2022 09:26:04 +0200 Subject: [PATCH] fix(candidate-detail): bad stacking order --- source/_patterns/03-templates/candidate-detail.mustache | 2 +- source/css/templates/candidate-detail.pcss | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/source/_patterns/03-templates/candidate-detail.mustache b/source/_patterns/03-templates/candidate-detail.mustache index 7c648f4..b1426aa 100644 --- a/source/_patterns/03-templates/candidate-detail.mustache +++ b/source/_patterns/03-templates/candidate-detail.mustache @@ -1,6 +1,6 @@ {{> organisms-header }} -<article class="hero hero--image pt-24 pb-24 lg:pt-40 pb-24 candidate-detail__hero {{ classes }}" style="--image-url: url({{ img.landscape-16x9-fullhd.src }})"> +<article class="hero hero--image pt-24 pb-24 lg:pt-40 pb-24 {{ classes }}" style="--image-url: url({{ img.landscape-16x9-fullhd.src }})"> <div class="container container--default text-center lg:text-left"> <h1 class="head-alt-md md:head-alt-xl max-w-2xl">{{ person.first }} {{ person.last }}</h1> <h2 class="head-xs mt-2 max-w-xl">{{ person.occupation }}</h2> diff --git a/source/css/templates/candidate-detail.pcss b/source/css/templates/candidate-detail.pcss index ae23115..48f3ef3 100644 --- a/source/css/templates/candidate-detail.pcss +++ b/source/css/templates/candidate-detail.pcss @@ -1,9 +1,5 @@ -.candidate-detail__hero { - z-index: -1; -} - .candidate-detail__sidebar { - @apply bg-white; + @apply bg-white z-10; @screen lg { margin-top: -6rem; -- GitLab