Skip to content

Commit

Permalink
Fix search modal styling (#3744)
Browse files Browse the repository at this point in the history
Search modal has too big margin. It is due to the fact that html element
`section` was styled in `custom.css` file that should style only the
landing page, therefore search modal was styled by mistake.
  • Loading branch information
blazejkustra authored and piaskowyk committed Nov 7, 2022
1 parent 57cf7fb commit c99e84d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,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 @@ -319,18 +319,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 @@ -411,7 +411,7 @@ section > .contaner > .row {
max-width: 1300px;
}

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

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

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

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

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

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

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

<main>
<section>
<section className="landing-page__section">
<div className="container">
<div className="row row--box-section">
<SectionBoxes />
Expand All @@ -174,7 +174,7 @@ function Home() {
</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 Expand Up @@ -214,7 +214,7 @@ function Home() {
</div>
</div>
</section>
<section>
<section className="landing-page__section">
<div className="container">
<div className="row row--center">
<div className="col col--7 text--center col--bottom-section">
Expand Down

0 comments on commit c99e84d

Please sign in to comment.