Skip to content

Commit 61d4234

Browse files
authored
Merge pull request danskernesdigitalebibliotek#240 from itk-dev/feature/mobile-view-of-group-modal-buttons
itkdev: mobile view of group modal buttons
2 parents fa7b440 + c7e4103 commit 61d4234

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

src/stories/Library/Modals/modal-loan/modal-loan.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,24 @@ $MODAL_LOAN_CONTAINER_WIDTH: 1000px;
4444
.modal-loan__buttons {
4545
background-color: $c-global-primary;
4646
display: flex;
47-
grid-gap: 24px;
4847
justify-content: flex-end;
49-
align-items: center;
5048
margin-top: 40px;
49+
flex-direction: column;
50+
margin-bottom: 10px;
51+
52+
@include breakpoint-s {
53+
align-items: center;
54+
flex-direction: row;
55+
}
5156
}
5257

5358
.modal-loan__buttons--bottom {
5459
position: fixed;
5560
right: 0;
5661
bottom: 0;
62+
left: 0;
5763
padding: $s-md;
64+
margin-bottom: 0px;
5865

5966
@include breakpoint-s {
6067
padding: $s-lg $s-7xl $s-lg 0;

src/stories/Library/card-list-page/result-pager.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}
88

99
.result-pager--margin-bottom {
10-
margin-bottom: 80px;
10+
margin-bottom: 100px;
1111
margin-top: 0px;
1212
}
1313
// Override button css (Center + Width)
@@ -19,3 +19,9 @@
1919
max-width: 253px;
2020
}
2121
}
22+
23+
.result-pager--margin-bottom > .btn-primary {
24+
@include breakpoint-s {
25+
margin-bottom: 90px;
26+
}
27+
}

0 commit comments

Comments
 (0)