Center the hero copy against the planet
The copy hung from the top of the row while the planet filled it, so the buttons ended 115 px above the band with nothing under them. align-self:center makes the copy sit in the middle of the planet's height: 58 px above the H1 and 58 px below the CTA at 1534x1000, while the row keeps its 16 px to the header and 16 px to the band. Heights and the fold are unchanged on all eight viewports.
This commit is contained in:
1 parent
3c1b4fc985
commit
b28ed490a4
1 file changed
+3
-2
+3
-2
@@ -1128,8 +1128,9 @@
|
||||
row-gap: var(--step-4);
|
||||
}
|
||||
|
||||
/* Строка 1 — копия + планета. Копия сидит на общем текстовом вертикале. */
|
||||
.hero__copy { padding-inline: var(--edge) }
|
||||
/* Строка 1 — копия + планета. Копия центруется по высоте планеты: зазор до шапки
|
||||
и до полосы одинаковый, а не «прибито к верху». */
|
||||
.hero__copy { padding-inline: var(--edge); align-self: center }
|
||||
.hero__copy .h1 { margin-bottom: var(--step-4) }
|
||||
.hero__offer { font-size: 20px; line-height: 1.4; margin-bottom: var(--step-4) }
|
||||
.hero__copy .cta-row { gap: var(--step-4) }
|
||||
|
||||
Reference in new issue
Block a user