1
0
Fork 0

Center video section positioning

master
Emil Miler 2 years ago
parent cbda8a2291
commit 6b588f5a7a

@ -30,6 +30,7 @@
</header> </header>
<section class="wrap"> <section class="wrap">
<div class="grid">
<div class="text"> <div class="text">
<div class="title">To, co se děje u&nbsp;nich doma, nevidíte&nbsp;&hellip;</div> <div class="title">To, co se děje u&nbsp;nich doma, nevidíte&nbsp;&hellip;</div>
<p>&hellip;&nbsp;ale mají kolem sebe jiné svědky, kteří to bohužel vidí.</p> <p>&hellip;&nbsp;ale mají kolem sebe jiné svědky, kteří to bohužel vidí.</p>
@ -45,6 +46,7 @@
<img src="/static/vid/samozivitel.jpg" alt="Samoživitel" data-video="/static/vid/samozivitel.mp4"> <img src="/static/vid/samozivitel.jpg" alt="Samoživitel" data-video="/static/vid/samozivitel.mp4">
</div> </div>
<a href="" class="button">Vyhledat pomoc</a> <a href="" class="button">Vyhledat pomoc</a>
</div>
</section> </section>
</div> </div>
<section class="wrap facts"> <section class="wrap facts">

@ -30,7 +30,7 @@ body {
.wrap { .wrap {
max-width: 90rem; max-width: 90rem;
margin: 0 auto; margin: 0 auto;
padding: 0 1rem; padding: 0 2rem;
} }
.narrow { .narrow {
@ -72,6 +72,8 @@ body.noscroll {
.intro { .intro {
min-height: 100vh; min-height: 100vh;
display: flex;
flex-direction: column;
header { header {
position: relative; position: relative;
@ -157,11 +159,18 @@ body.noscroll {
} }
section { section {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
.grid {
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: 1fr;
grid-column-gap: 2rem; grid-column-gap: 2rem;
grid-row-gap: 2rem; grid-row-gap: 2rem;
align-items: center; align-items: center;
}
.text { .text {
max-width: 25rem; max-width: 25rem;
@ -492,7 +501,10 @@ footer {
@media only screen and (min-width: $size-mobile) { @media only screen and (min-width: $size-mobile) {
.intro section { .intro section {
.grid {
grid-template-columns: 2fr 3fr; grid-template-columns: 2fr 3fr;
}
.text { .text {
text-align: left; text-align: left;

Loading…
Cancel
Save