Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Increase Icon size, center mobile text, run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
PietiKinnunen committed Jan 31, 2024
1 parent 6a91985 commit fdd3d25
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 57 deletions.
115 changes: 59 additions & 56 deletions components/DropdownMenu/DropdownMenuItem.module.css
Original file line number Diff line number Diff line change
@@ -1,68 +1,71 @@
.wrapper {
display: none;
@media (--nav) {
display:block;
display: block;
}
@media (--lg-scr)
{display:initial;}

max-width: min-content;
&.moreThan {
@media (max-width:1650px) {
display:block;
}
}
&.lessThan {
@media (max-width:1250px) {
display:block;
@media (--lg-scr) {
display: initial;
}

}
max-width: min-content;
&.moreThan {
@media (max-width: 1650px) {
display: block;
}
}
&.lessThan {
@media (max-width: 1250px) {
display: block;
}
}
}

.styledLink {
cursor: pointer;
display:flex;
display: flex;
flex-direction: row;
align-items: flex-start;
align-items: center;
padding-bottom: 24px;
text-decoration: none;
color:var(--color-code);
color: var(--color-code);
max-width: unset;
@media (--nav) {
max-width: 250px;
align-items: flex-start;
}
@media (--lg-scr) {
max-width: none;
}
&:hover, &:active, &:focus{
&:hover,
&:active,
&:focus {
color: var(--color-dark-purple);
background-color: none;
}
}
.imageItem {
display:flex;
display: flex;
justify-content: flex-start;
flex-direction: row;
border: 1px solid #F0F2F4;
border: 1px solid #f0f2f4;
overflow: hidden;
min-height: 140px;
width: 100%;
min-width: unset;
box-sizing:unset;
box-sizing: unset;
@media (max-width: 1200px) {
flex-direction: column;
}
@media (max-width:1650px) {
@media (max-width: 1650px) {
flex-direction: row;
&.asColumn {
flex-direction: column;
}
}
}
.imageBox {
width:250px;
height:100%;
width: 250px;
height: 100%;
max-width: 250px;
flex-shrink: 0;
align-self: center;
Expand All @@ -79,9 +82,9 @@ max-width: min-content;
}
.item {
margin-left: 8px;
@media (--nav) {
margin-left: 16px;
}
@media (--nav) {
margin-left: 16px;
}
&.imageitemText {
margin-top: 12px;
margin-bottom: 12px;
Expand All @@ -95,45 +98,45 @@ max-width: min-content;
font-size: 14px;
line-height: 18px;
font-weight: 400;
margin:0;
margin: 0;
@media (--nav) {
font-size: 16px;
line-height: 22px;
font-weight: bold;
line-height: 22px;
font-weight: bold;
}
}
.description {
font-size: 14px;
line-height: 18px;
font-weight: 400;
margin-bottom: 0;
margin-top:4px;
color:var(--color-gray);
display:none;
@media (--nav){
display: initial;
}
font-size: 14px;
line-height: 18px;
font-weight: 400;
margin-bottom: 0;
margin-top: 4px;
color: var(--color-gray);
display: none;
@media (--nav) {
display: initial;
}
}
.dateText {
font-size: 14px;
line-height: 18px;
font-weight: 400;
color:var(--color-gray);
font-size: 14px;
line-height: 18px;
font-weight: 400;
color: var(--color-gray);
}
.imageTitle {
font-size: 20px;
line-height: 24px;
font-weight: bold;
margin-top: 0;
font-size: 20px;
line-height: 24px;
font-weight: bold;
margin-top: 0;
}
.paragraph {
font-size: 14px;
line-height: 18px;
font-weight: bold;
color: var(--color-dark-purple);
font-size: 14px;
line-height: 18px;
font-weight: bold;
color: var(--color-dark-purple);
}
.imageItemTitle {
font-size: 18px;
line-height: 22px;
font-weight: bold;
}
font-size: 18px;
line-height: 22px;
font-weight: bold;
}
2 changes: 1 addition & 1 deletion components/DropdownMenu/DropdownMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const DropdownMenuItem = ({
const { imageTitle, customImage } = imageItem || {};
return itemType !== "image" ? (
<Link className={styles.styledLink} href={link} passthrough>
<Image src={icon || ""} width={20} height={20} alt="" />
<Image src={icon || ""} width={35} height={35} alt="" />
<div className={styles.item}>
<p className={styles.itemTitle}>{title}</p>
{description && <p className={styles.description}>{description}</p>}
Expand Down

0 comments on commit fdd3d25

Please sign in to comment.