Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix padding and margins issues. #139

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const config: Config = {

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "/QuantStack/", // Usually your GitHub org/user name.
organizationName: "/HaudinFlorence/", // Usually your GitHub org/user name.
projectName: "quantstack.github.io", // Usually your repo name.

onBrokenLinks: "throw",
Expand Down
2 changes: 1 addition & 1 deletion src/components/projects/AllProjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function AllProjects() {
{projectsDetails.map((project, index) => {
return(
<li className="projects-list" key={index}>
<div className="col">
<div className="col" style={{padding:"0 0"}}>
<ProjectCard project={project}/>
</div>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/components/projects/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function ProjectCard({ project }): JSX.Element {
const base = `${prefix}${project.name}`
return (
<div className="container">
<div className="row row--no-gutters horizontally-centered">
<div className="row row--no-gutters">
<div
className={"col col--6 col" + " " + styles.project_text}
>
Expand Down
8 changes: 6 additions & 2 deletions src/components/projects/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ div .project_title {
}

.project_description {
padding: var(--ifm-spacing-md) var(--ifm-spacing-xl);
text-align: center;
}

Expand Down Expand Up @@ -46,7 +45,7 @@ div .project_title {
letter-spacing: 0.25px;
text-align: center;
margin-bottom: var(--ifm-spacing-lg);
padding: var(--ifm-spacing-lg) var(--ifm-spacing-2xl);
padding: var(--ifm-spacing-lg) var(--ifm-spacing-xl);
}

.col_project_text p {
Expand All @@ -73,6 +72,11 @@ div .project_title {
border: none;
margin-bottom: var(--ifm-spacing-xl);
}

li .project_ {
padding-left: 0;
margin-left: 0;
}
}

@media only screen and (min-width: 996px) {
Expand Down
9 changes: 6 additions & 3 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@

ul {
padding-left: 0;
margin-left:0;
}

.container {
Expand Down Expand Up @@ -212,6 +213,7 @@ ul {
line-height: 20px;
letter-spacing: 0.25px;
text-align: center;
padding: var(--ifm-spacing-lg)
}

li {
Expand Down Expand Up @@ -641,6 +643,7 @@ a.menu__link:active {

.projects-list {
list-style-type: none;
padding: none;
width: 100%;
}
padding-left: 0;
margin-left: 0;
/* width: 100%;*/
}