Skip to content

Commit 4a8f0bb

Browse files
committed
Removing .form-cards styles
1 parent 4b5d810 commit 4a8f0bb

File tree

2 files changed

+1
-59
lines changed

2 files changed

+1
-59
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Removed
44
- Removing `primer-cards` module.
5+
- Removing `.form-cards` styles.
56

67
# 9.6.0
78

modules/primer-forms/lib/form-validation.scss

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -47,65 +47,6 @@ dl.form-group > dd {
4747
}
4848
}
4949

50-
// Credit cards
51-
//
52-
// A selector for credit cards. Shows all credit cards we have available and
53-
// dims the non-selected ones.
54-
55-
@warn "primer-forms: The credit cards component is being deprecated in next major version.";
56-
57-
.form-cards {
58-
height: 31px;
59-
margin: 0 0 15px;
60-
61-
.card {
62-
float: left;
63-
width: 47px;
64-
height: 31px;
65-
text-indent: -9999px;
66-
background-image: url("/images/modules/pricing/credit-cards-@1x.png");
67-
background-position: 0 0;
68-
opacity: 0.6;
69-
70-
&.visa { background-position: 0 0; }
71-
72-
&.amex { background-position: -50px 0; }
73-
74-
&.mastercard { background-position: -100px 0; }
75-
76-
&.discover { background-position: -150px 0; }
77-
78-
&.jcb { background-position: -200px 0; }
79-
80-
&.dinersclub { background-position: -250px 0; }
81-
82-
&.enabled { opacity: 1; }
83-
84-
&.disabled { opacity: 0.2; }
85-
}
86-
87-
> .cards {
88-
margin: 0;
89-
90-
> li {
91-
float: left;
92-
margin: 0 $spacer-1 0 0;
93-
list-style-type: none;
94-
95-
&.text {
96-
line-height: 31px;
97-
}
98-
}
99-
}
100-
}
101-
102-
@include retina-media-query {
103-
.form-cards > .cards .card {
104-
background-image: url("/images/modules/pricing/credit-cards-@2x.png");
105-
background-size: 300px 31px;
106-
}
107-
}
108-
10950
// Inline verification
11051
// This overrides primer's inline form stuff
11152
.status-indicator {

0 commit comments

Comments
 (0)