Skip to content

Commit 2007ae2

Browse files
author
Jesse Pollak
committed
Merge branch 'master' of https://github.com/MasterOfMalt/card into MasterOfMalt-master
2 parents 35bbee5 + e40f95a commit 2007ae2

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

src/coffee/card.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Card
1111
'<div class="jp-card-front">' +
1212
'<div class="jp-card-logo jp-card-visa">visa</div>' +
1313
'<div class="jp-card-logo jp-card-mastercard">MasterCard</div>' +
14+
'<div class="jp-card-logo jp-card-maestro">Maestro</div>' +
1415
'<div class="jp-card-logo jp-card-amex"></div>' +
1516
'<div class="jp-card-logo jp-card-discover">discover</div>' +
1617
'<div class="jp-card-logo jp-card-dankort"><div class="dk"><div class="d"></div><div class="k"></div></div></div>' +

src/scss/card.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@import "cards/discover";
1010
@import "cards/visa";
1111
@import "cards/mastercard";
12+
@import "cards/maestro";
1213
@import "cards/dankort";
1314

1415
.jp-card-container {

src/scss/cards/_maestro.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@import "card";
2+
@import "../logos/maestro";
3+
4+
$fill-color: #0B2C5F;
5+
6+
.jp-card.jp-card-maestro {
7+
&.jp-card-identified {
8+
.jp-card-front, .jp-card-back {
9+
.jp-card-logo.jp-card-maestro {
10+
box-shadow: none;
11+
}
12+
&:before {
13+
background-color: $fill-color;
14+
}
15+
}
16+
.jp-card-logo.jp-card-maestro {
17+
opacity: 1;
18+
}
19+
}
20+
}

src/scss/logos/_maestro.scss

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@import "logo";
2+
3+
.jp-card-logo.jp-card-maestro {
4+
// display: none;
5+
$blue: #0064CB;
6+
$red: #CC0000;
7+
$offset: 0;
8+
color: white;
9+
font-weight: bold;
10+
text-align: center;
11+
font-size: 14px;
12+
line-height: $logo-height;
13+
z-index: 1;
14+
text-shadow: 1px 1px rgba(0, 0, 0, .6);
15+
&:before, &:after {
16+
content: " ";
17+
display: block;
18+
width: $logo-height;
19+
top: 0;
20+
position: absolute;
21+
height: $logo-height;
22+
border-radius: $logo-height / 2;
23+
}
24+
25+
&:before {
26+
left: $offset;
27+
background: $blue;
28+
z-index: -1;
29+
}
30+
31+
&:after {
32+
right: $offset;
33+
background: $red;
34+
z-index: -2;
35+
}
36+
}

0 commit comments

Comments
 (0)