Skip to content

Commit

Permalink
style: improve title style
Browse files Browse the repository at this point in the history
  • Loading branch information
NoeTerrier committed Mar 16, 2024
1 parent bb1b3cb commit 425b1a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function Card(
>
<DirectusImage img={img} name={title || ""} className={styles.picture} />
<div>
<p className={styles.title}>{title}</p>
<p className={styles.name}>{title}</p>
<p className={styles.description}>{description}</p>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions app/src/styles/Card.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
height: 20ch;
border-radius: 4rem;

.title {
font-size: x-large;
}

.description {
font-size: medium;
}
Expand Down Expand Up @@ -52,6 +48,10 @@
overflow: hidden;
}

.name {
font-size: larger;
}

.description {
font-size: small;
font-weight: 300;
Expand Down
10 changes: 4 additions & 6 deletions app/src/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ a {
grid-row: 1;
grid-column: 2;
width: 110%;
margin-top: 5em;

@media (max-width: 800px) {
display: none;
Expand Down Expand Up @@ -118,8 +117,6 @@ a {
text-align: center;
padding: 0 2rem;

@extend .title;

// h4 (subtitle) must be centered and slightly enlarged
+ h4 {
text-align: center;
Expand Down Expand Up @@ -200,12 +197,14 @@ a {
}
}

.title {
h1 {
color: var(--dark-title-color);

letter-spacing: 0.1em;

margin: 1rem 0 1rem 0;
margin: 0;
margin-top: 2rem;

text-align: center;

font-weight: lighter;
Expand Down Expand Up @@ -246,7 +245,6 @@ a {
}

h1 {
@extend .title;
@extend .large;
}
}
Expand Down

0 comments on commit 425b1a8

Please sign in to comment.