Skip to content

Commit 5f89b2f

Browse files
feat: narrow style with border (#694)
* feat: update catchphrase and description Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> * feat: narrow style with border Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> --------- Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent cb70f0c commit 5f89b2f

15 files changed

Lines changed: 129 additions & 19 deletions

File tree

src/components/Build/styles.module.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
align-items: center;
1414
gap: 1rem;
1515
padding: 0.75rem 0 4rem;
16-
margin: 0 0 4rem;
1716
}
1817

1918
.sub {

src/components/Changelog/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type { Props } from "@theme/BlogLayout";
77
import BlogSidebar from "@theme/BlogSidebar";
88
import Layout from "@theme/Layout";
99
import clsx from "clsx";
10+
import styles from "./styles.module.scss";
1011

1112
export default function Changelog(
1213
props: Props & { releases: GitHubRelease[] }
@@ -30,7 +31,7 @@ export default function Changelog(
3031

3132
return (
3233
<Layout {...layoutProps}>
33-
<div className="container margin-vert--lg">
34+
<div className={`container ${styles.section}`}>
3435
<div className="row">
3536
<BlogSidebar sidebar={sidebar} />
3637
<main
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@use "../../mixins/section";
2+
3+
.section {
4+
margin: 0 auto;
5+
6+
@include section.standalone;
7+
}

src/components/Hero/styles.module.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../../mixins/section";
2+
13
.heroBanner {
24
z-index: 1;
35
background: transparent;

src/components/Newsletter/styles.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../../mixins/fonts";
2+
@use "../../mixins/section";
23

34
.sub {
45
margin: 1rem 0 0.75rem;

src/components/Testimonials/styles.module.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
.grid {
88
--grid-gap: 3rem;
9-
margin: 0 0 4rem;
109
padding: 0;
1110
list-style: none;
1211
@include grid.columns;

src/css/blog.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@use "../mixins/section";
2+
3+
:root {
4+
&.blog-wrapper {
5+
.main-wrapper {
6+
div.container {
7+
margin-bottom: unset !important;
8+
margin-top: unset !important;
9+
10+
@include section.standalone;
11+
12+
padding: 3rem var(--ifm-spacing-horizontal) 0;
13+
14+
@media screen and (min-width: 1140px) {
15+
padding: 3rem 3rem 0;
16+
}
17+
18+
main {
19+
padding-bottom: 3rem;
20+
}
21+
}
22+
}
23+
}
24+
}

src/css/custom.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@use "hr";
77
@use "selection";
88
@use "navbar";
9+
@use "blog";
910
@use "search";
1011
@use "table";
1112
@use "a11y";

src/css/docusaurus.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
--ifm-menu-link-padding-vertical: 0.3rem;
77
--ifm-toc-padding-vertical: 0.3rem;
88

9+
--ifm-container-width: 1078px;
10+
911
&[data-theme] {
1012
--doc-sidebar-width: 18vw;
1113
}
@@ -19,12 +21,6 @@ nav {
1921
font-size: var(--font-size-navbar);
2022
}
2123

22-
.container {
23-
@media (min-width: 1440px) {
24-
max-width: 1640px;
25-
}
26-
}
27-
2824
.main-wrapper {
2925
position: relative;
3026
}

src/css/navbar.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../mixins/section";
2+
13
:root {
24
.navbar {
35
border-bottom: 1px solid transparent;
@@ -8,6 +10,23 @@
810
border-bottom: 1px solid var(--ifm-toc-border-color);
911
}
1012
}
13+
14+
&:not(.docs-wrapper) {
15+
@media screen and (min-width: 1140px) {
16+
.navbar {
17+
width: var(--ifm-container-width);
18+
margin: 0 auto;
19+
20+
@include section.section(true);
21+
}
22+
}
23+
24+
@media screen and (min-width: 1440px) {
25+
.navbar {
26+
width: var(--ifm-container-width-xl);
27+
}
28+
}
29+
}
1130
}
1231

1332
.navbar {

0 commit comments

Comments
 (0)