Skip to content

Commit

Permalink
Fix CSS conflict with swiper
Browse files Browse the repository at this point in the history
Related to #113
  • Loading branch information
sebastienbarbier committed Jun 28, 2023
1 parent 5e5dd0b commit 1182e9b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/components/Transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default function Transactions(props) {
<div className="indicators hideModalSize">
<swiper-container
space-between="0"
class="metrics"
class="metrics transactions_swiper"
slides-per-view="auto"
style={{ padding: "0 40vw 0 24px" }}
>
Expand Down
16 changes: 13 additions & 3 deletions src/app/components/Transactions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ div.layout, form.layout {
}
}

swiper-slide {
.transactions_swiper swiper-slide {
font-size: 12px;
max-width: 180px;
max-width: 200px;
}

.transactions_two_columns {
Expand All @@ -48,7 +48,17 @@ div.layout, form.layout {
h2 {
font-size: 30px;
}

.metrics {
display: flex;
justify-content: center;
background: rgba(170, 170, 170, 0.1);
padding-bottom: 10px;
.incomes_expenses {
p {
margin-right: 10px;
}
}
}
}

@media screen and (min-width: $smallScreen) {
Expand Down

0 comments on commit 1182e9b

Please sign in to comment.