Files
directus/docs/home.css
Bryant Gillespie afdc48eb82 fix hero background showing over content (#19046)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-07-03 08:28:59 +00:00

211 lines
2.7 KiB
CSS

.paddingBox {
padding: 0 32px;
}
.sectionContainer {
max-width: calc(var(--vp-layout-max-width) - 64px);
margin-inline: auto;
}
.sectionContainerHero {
position: relative;
}
.sectionPaddingHero {
padding-block: 108px;
}
.sectionPaddingMd {
padding-block: 60px;
}
.sectionPaddingLg {
padding-block: 120px;
}
.hero {
background: var(--vp-docs-section-bg);
color: white;
position: relative;
overflow: hidden;
}
.heroPattern {
position: absolute;
top: 40%;
left: 50%;
translate: -50% -50%;
pointer-events: none;
}
.heroPattern svg {
width: 1600px;
height: 1000px;
opacity: 0.5;
}
.heroBadge {
color: #fe97dc;
font-size: 14px;
font-weight: 700;
text-transform: uppercase;
}
.heroContent {
max-width: 580px;
}
.heroContent h1 {
font-size: 60px;
font-weight: 700;
line-height: 1;
margin: 20px 0;
}
.heroContent p {
max-inline-size: 50ch;
margin: 20px 0;
}
.heroButtons {
margin: 48px 0;
}
.heroToggler {
border-radius: 12px;
width: 100%;
max-width: 590px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 0 100px 24px rgba(255, 255, 255, 0.3);
backdrop-filter: blur(4px);
margin-left: 20px;
}
.flex {
display: flex;
align-items: center;
justify-content: space-between;
}
.whiteBg {
background: var(--vp-c-bg);
}
.grayBg {
background: var(--vp-c-bg-soft);
}
.header {
text-align: center;
max-width: 680px;
margin: 0 auto;
}
.header h2 {
border-top: 0;
margin: 0;
line-height: 1.2;
font-size: 38px;
}
.header p {
font-size: 20px;
line-height: 1.5;
color: var(--vp-c-text-2);
margin: 20px 0;
}
.m60 {
margin: 60px 0;
}
.grid2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}
.grid3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.buttonGroup {
display: inline-flex;
gap: 32px;
}
.sectionContainerSelfHosted {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 48px;
}
.headerSelfHosted {
max-width: 420px;
}
@media only screen and (min-width: 768px) {
.headerSelfHosted {
align-self: center;
text-align: unset;
}
.headingSelfHosted {
max-width: 10ch;
}
}
@media only screen and (max-width: 1200px) {
.heroToggler {
display: none;
}
}
@media only screen and (max-width: 768px) {
.hero {
min-height: unset;
}
.flex {
flex-direction: column;
align-items: stretch;
}
.header h2 {
font-size: 28px;
}
.header p {
font-size: 18px;
}
.grid2,
.grid3 {
grid-template-columns: 1fr;
}
.sectionContainerSelfHosted {
display: block;
}
.headerSelfHosted {
text-align: center;
max-width: 680px;
margin: 0 auto;
}
.heroContent h1 {
font-size: 42px;
}
.sectionPaddingHero {
padding-block: 32px;
}
}
@media only screen and (max-width: 380px) {
.heroContent h1 {
font-size: 36px;
}
}