Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix: alignment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinos-Gk committed Sep 22, 2023
1 parent de46c1b commit fa66789
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
24 changes: 4 additions & 20 deletions src/pages/regulatory/_document_accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,11 @@ const FlexText = styled(LinkText)`
@media ${device.laptopM} {
width: 40%;
}
@media ${device.tabletS} {
@media (max-width: 685px) {
width: 80%;
justify-content: flex-start;
padding-left: 15rem;
}
@media (max-width: 500px) {
padding-left: 8.5rem;
}
@media ${device.mobileM} {
padding-left: 6rem;
}
@media ${device.mobileS} {
padding-left: 4.5rem;
padding-left: 0;
margin-inline: 0;
}
`

Expand All @@ -49,21 +41,13 @@ const FlexText_Pillar = styled(LinkText)`
const EdgeFlex = styled(Flex)`
flex-wrap: wrap;
justify-content: flex-start;
margin-left: 5%;
/* Edge does not support space-evenly */
@supports (-ms-ime-align: auto) {
justify-content: space-around;
}
@media ${device.laptopM} {
margin-left: 9%;
}
@media ${device.tabletL} {
margin-left: 18%;
}
@media ${device.tabletS} {
flex-direction: column;
margin-left: 10%;
}
`

Expand Down Expand Up @@ -170,7 +154,7 @@ const DocumentAccordion = (locale: DocumentAccordionProps) => {
? selected_language + '/'
: ''
}${data.ref}`}
m="1.6rem 2.4rem"
m="1.6rem 1.4rem"
>
<img src={PDFIcon} alt="pdf icon black" />
<span>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/regulatory/_eu-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@ const Country = styled.div`
font-size: var(--text-size-s);
color: var(--color-grey-3);
align-items: center;
inline-size: 20rem;
& a {
display: inline;
font-size: 1rem;
line-height: 1rem;
color: var(--color-grey-3);
}
@media (max-width: 425px) {
font-size: var(--text-size-xs);
inline-size: 16rem;
}
`
const Order = styled.div`
display: inline-block;
Expand Down

0 comments on commit fa66789

Please sign in to comment.