Skip to content

Commit 6e1be9d

Browse files
Fix some style issues.
1 parent edc2ca2 commit 6e1be9d

File tree

6 files changed

+26
-41
lines changed

6 files changed

+26
-41
lines changed

src/components/about/LargePortraitCard.tsx

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,14 @@ import Avatar from "./Avatar";
77

88
export function Distinction({ person }) {
99
if (person.distinctionTitle.length !== 0) {
10-
return (
11-
<ul>
12-
{person.distinctionTitle.map((distinction, index) => (
13-
<li className="cards-list" key={index}>
14-
<div>
15-
<div>
16-
<Link href={person.distinctionLink[index]}>
17-
<DistinctionIcon />
18-
{distinction}
19-
</Link>
20-
</div>
21-
</div>
22-
</li>
23-
))}
24-
</ul>
25-
);
10+
return person.distinctionTitle.map((distinction, index) => (
11+
<div>
12+
<Link href={person.distinctionLink[index]}>
13+
<DistinctionIcon className={styles.distinction_icon} />
14+
{distinction}
15+
</Link>
16+
</div>
17+
));
2618
} else return <div></div>;
2719
}
2820
export default function LargePortraitCard({ person }) {
@@ -31,20 +23,10 @@ export default function LargePortraitCard({ person }) {
3123
<div className={"container"}>
3224
<div className={"row padding-none"}>
3325
<div className="col col--12 col--offset-1">
34-
<div
35-
className={
36-
styles.large_card_complete_name
37-
}
38-
>
26+
<div className={styles.large_card_complete_name}>
3927
{person.completeName}
4028
</div>
41-
<div
42-
className={
43-
styles.large_card_position
44-
}
45-
>
46-
{person.position}
47-
</div>
29+
<div className={styles.large_card_position}>{person.position}</div>
4830
</div>
4931
</div>
5032
<div className="row">

src/components/about/styles.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ div .join_the_team_text {
128128
width: 160px;
129129
}
130130

131+
.distinction_icon {
132+
vertical-align: middle;
133+
padding-right: 5px;
134+
}
135+
131136
@media only screen and (max-width: 996px) {
132137
/*Mobile*/
133138
.value_card {

src/components/home/Hero/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
}
77
.hero_container {
88
background-color: var(--ifm-color-primary-p0);
9+
padding-bottom: var(--ifm-spacing-3xl);
910
}
1011

1112
.table_with_8_customers {

src/components/home/WhatWeDo/styles.module.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ div .topics_header {
3636
}
3737

3838
@media only screen and (min-width: 996px) {
39-
4039
.header {
41-
color: var(--ifm-color-blue-jupyter);
40+
color: var(--ifm-color-primary-p2);
4241
}
4342

4443
.projects_link{
@@ -51,9 +50,8 @@ div .topics_header {
5150

5251
.whatwedo_container {
5352
background-color: var(--ifm-color-primary-p1);
54-
padding: var(--ifm-spacing-4xl) var(--ifm-spacing-2xl) 0
53+
padding: var(--ifm-spacing-3xl) var(--ifm-spacing-2xl) 0
5554
var(--ifm-spacing-2xl);
56-
/*margin-top: var(--ifm-spacing-3xl);*/
5755
}
5856

5957
.topics_card {

src/components/projects/AllProjects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function AllProjects() {
88
<ul className="row">
99
{projectsDetails.map((project, index) => {
1010
return(
11-
<li className="cards-list" key={index}>
11+
<li className="projects-list" key={index}>
1212
<div className="col">
1313
<ProjectCard project={project}/>
1414
</div>

src/css/custom.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
--ifm-color-grey-condaforge: #7a7865;
1212
--ifm-color-orange-light: #fef9ec;
1313
--ifm-color-indigo-i1: rgb(79, 82, 255);
14-
--ifm-color-primary-p0: #FFFBD7;
14+
--ifm-color-primary-p0: #fffbd7;
1515
--ifm-color-primary-p1: #f6f195;
1616
--ifm-color-primary-p2: #1c1c16;
1717
--ifm-text-color-on-primary-p1: #1e1c00;
@@ -161,13 +161,6 @@ ul {
161161
}
162162
}
163163

164-
/*@media (min-width: 1880px) {
165-
.row {
166-
width: 1600px;
167-
}
168-
}*/
169-
170-
171164
/****** Class that are specific for smaller screens*/
172165
@media (max-width: 996px) {
173166
.main-container-with-margins {
@@ -646,3 +639,9 @@ a.menu__link:active {
646639
list-style-type: none;
647640
padding: none;
648641
}
642+
643+
.projects-list {
644+
list-style-type: none;
645+
padding: none;
646+
width: 100%;
647+
}

0 commit comments

Comments
 (0)