Skip to content

Commit a32a866

Browse files
committed
added styling for contrast
1 parent 1633904 commit a32a866

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

css/masking-input.css

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33
<head>
44
<title>Masking</title>
55
<link rel="stylesheet" href="css/masking-input.css"/>
6+
<style>
7+
/* additional styles */
8+
li {line-height: 2; clear: both;}
9+
label {display: inline-block; width: 200px;}
10+
.shell span {color: pink;}
11+
li {font-family: helvetica; font-size: 0.93rem;}
12+
</style>
613
</head>
714
<body>
815

916
<ul>
1017
<li>
1118
<label for="expiration">Credit Card Expiration Month</label>
12-
<input id="expiration" type="tel" placeholder="MM/YY" class="masked" pattern="(1[0-2]|0[1-9])\/\d\d)" data-valid-example="11/18" title="2-digit month and 2-digit year greater than 01/15">
19+
<input id="expiration" type="tel" placeholder="MM/YY" class="masked" pattern="(1[0-2]|0[1-9])\/\d\d" data-valid-example="11/18" title="2-digit month and 2-digit year greater than 01/15">
1320
</li>
1421

1522
<li>

sass/_mask.scss

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
color: #ccc;
99
pointer-events: none;
1010
z-index: -1;
11-
i {
11+
i { /* any of these 3 will work */
1212
color: transparent;
13-
}
14-
&.inactive {
15-
display: none;
13+
opacity: 0;
14+
visibility: hidden;
1615
}
1716
}
1817
}

0 commit comments

Comments
 (0)