Skip to content

Commit

Permalink
Fix search modal styling in the docs (#2309)
Browse files Browse the repository at this point in the history
## Description

This PR applies the same changes as
software-mansion/react-native-reanimated#3744,
thanks @blazejkustra!

Before:
<img width="569" alt="Screenshot 2022-11-07 at 09 18 06"
src="https://user-images.githubusercontent.com/21055725/200260032-65bb1b5d-4b7f-4c21-a914-6ebf434d0cf9.png">

After:
<img width="569" alt="Screenshot 2022-11-07 at 09 17 40"
src="https://user-images.githubusercontent.com/21055725/200260056-648c39bb-6fb7-46bc-b04c-65a98c002d3e.png">
  • Loading branch information
j-piasecki authored Nov 7, 2022
1 parent 5f29311 commit b2d0873
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ header > .container {
max-width: var(--ifm-container-width);
}

section > .container {
.landing-page__section > .container {
margin-left: 0;
margin-right: 0;
padding: 0 60px;
Expand Down Expand Up @@ -321,18 +321,18 @@ section > .container {
background-repeat: no-repeat;
}

section {
.landing-page__section {
display: flex;
justify-content: center;
padding: 3rem 0;
background-color: var(--swm-color-bright);
}

section:nth-child(2) {
.landing-page__section:nth-child(2) {
background-color: var(--ifm-color-white);
}

section > .contaner > .row {
.landing-page__section > .contaner > .row {
display: flex;
align-items: flex-start;
}
Expand Down Expand Up @@ -413,7 +413,7 @@ section > .contaner > .row {
max-width: 1300px;
}

section > .container {
.landing-page__section > .container {
max-width: 1300px;
}
}
Expand All @@ -434,7 +434,7 @@ section > .contaner > .row {
max-width: 1300px;
}

section > .container {
.landing-page__section > .container {
max-width: 1300px;
}

Expand Down Expand Up @@ -473,7 +473,7 @@ section > .contaner > .row {
max-width: 1140px;
}

section > .container {
.landing-page__section > .container {
max-width: 1140px;
}
}
Expand Down Expand Up @@ -504,7 +504,7 @@ section > .contaner > .row {
max-width: 1300px;
}

section > .container {
.landing-page__section > .container {
max-width: 1300px;
}

Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function SectionBoxes() {

function BannerSection() {
return (
<section>
<section className="landing-page__section">
<div className="container">
<div className="row">
<div
Expand Down Expand Up @@ -180,15 +180,15 @@ function Home() {
<Hero />

<main>
<section>
<section className="landing-page__section">
<div className="container">
<div className="row row--box-section">
<SectionBoxes />
</div>
</div>
</section>
{/* <BannerSection /> */}
<section>
<section className="landing-page__section">
<div className="container container--center">
<div className="row row--center">
<div className="col col--7 text--center col--bottom-section">
Expand Down

0 comments on commit b2d0873

Please sign in to comment.