Skip to content

Commit

Permalink
fix: fix css dark theme build error
Browse files Browse the repository at this point in the history
  • Loading branch information
thuankg1752 committed Oct 25, 2024
1 parent b3970ec commit 7c8f70c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion repos/laravel-like-docs
2 changes: 1 addition & 1 deletion src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function HomepageFeatures(): JSX.Element {
return (
<section className={styles.features}>
<div className={`container`}>
<div className={`${styles.main_docs__flex_container}`}>
<div className={styles.main_docs__grid_container}>
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
Expand Down
21 changes: 9 additions & 12 deletions src/components/HomepageFeatures/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,17 @@
transition: all 0.5s;
background: #fff;
}
[data-theme="dark"] {
.main_docs__features {
background: #444950;
}
}

/*.main_docs__features:hover {*/
/* scale: 1.1;*/
/*}*/
[data-theme="dark"] .main_docs__features {
background: #444950;
}

.main_docs__flex_container {
.main_docs__grid_container {
gap: 15px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}

.main_docs__content_block {
display: flex;
flex-direction: column;
Expand All @@ -50,18 +46,19 @@
}

@media only screen and (max-width: 1279.98px) {
.main_docs__flex_container {
.main_docs__grid_container {
grid-template-columns: 1fr 1fr;
}
}

@media only screen and (max-width: 767.98px) {
.main_docs__flex_container {
.main_docs__grid_container {
grid-template-columns: 1fr 1fr;
}
}

@media only screen and (max-width: 575.98px) {
.main_docs__flex_container {
.main_docs__grid_container {
grid-template-columns: 1fr;
}
}

0 comments on commit 7c8f70c

Please sign in to comment.