Skip to content

Commit e6312e6

Browse files
authored
Merge pull request #7 from supportingami/style/card-sizes
style: card sizes
2 parents 4a2f45b + 74d3971 commit e6312e6

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/app/app.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ h1 {
1414
}
1515

1616
.main-content {
17-
max-width: 1080px;
17+
max-width: 1200px;
1818
flex: 1;
1919
margin: auto;
2020
width: 100%;

src/app/components/playing-card/playing-card.component.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
:host {
22
display: block;
33
}
4-
5-
$cardHeight: 420px;
6-
$cardWidth: calc($cardHeight/3 * 2);
4+
// png 2230 x 3300
5+
$cardWidth: 370px;
6+
$cardHeight: calc($cardWidth * 1.5);
77

88
.playing-card {
99
cursor: pointer;
1010
width: $cardWidth;
11+
max-width: 100vw;
1112
height: $cardHeight;
1213
// background: white;
1314
border: 2px solid #ccc;
@@ -42,7 +43,7 @@ $cardWidth: calc($cardHeight/3 * 2);
4243
}
4344

4445
.card-statement {
45-
overflow: auto;
46+
@apply overflow-auto px-1 sm:px-4;
4647
}
4748

4849
.playing-card[data-suit="heart"],

src/app/pages/home/home.page.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
text-align: center;
1212
overflow: hidden;
1313
text-overflow: ellipsis;
14-
max-width: 240px;
14+
max-width: 370px;
15+
margin-bottom: 8px;
1516
}
1617

1718
app-playing-card {

0 commit comments

Comments
 (0)