forked from PawelDecowski/jquery-creditcardvalidator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.less
137 lines (112 loc) · 2.12 KB
/
demo.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@import "reset";
body {
color: #333;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 18px;
line-height: 32px;
}
.cards {
overflow: hidden;
}
.cards li {
background-image: url(card_logos.png);
background-position: 0 0;
float: left;
height: 32px;
margin-right: 8px;
text-indent: -9999px;
-moz-transition: all .2s;
width: 51px;
}
.cards li:last-child {
margin-right: 0;
}
form {
background-color: #f8f8f8;
background: -moz-linear-gradient(#fff, #f8f8f8);
border: 5px solid #fff;
margin: 62px auto;
padding: 12px 24px 24px;
width: 287px;
-moz-box-shadow: 0 1px 3px #ccc;
}
form li {
margin: 8px 0;
}
.cards .visa-electron {
background-position: 204px 0;
}
.cards .mastercard {
background-position: 153px 0;
}
.cards .maestro {
background-position: 102px 0;
}
.cards .discover {
background-position: 51px 0;
}
.cards .visa.off {
background-position: 0 32px;
}
.cards .visa-electron.off {
background-position: 204px 32px;
}
.cards .mastercard.off {
background-position: 153px 32px;
}
.cards .maestro.off {
background-position: 102px 32px;
}
.cards .discover.off {
background-position: 51px 32px;
}
form label {
color: #555;
display: block;
font-size: 14px;
}
form label small {
color: #aaa;
font-size: 11px;
line-height: 11px;
text-transform: uppercase;
}
form input {
border: 1px solid #aaa;
border-color: #aaa #ddd #ddd #aaa;
color: #333;
display: block;
font-size: 18px;
height: 30px;
padding: 0 5px;
width: 275px;
-moz-box-shadow: inset 0 1px 3px -1px #ccc;
-moz-box-sizing: content-box;
}
form input.valid {
background: url(tick.png) 260px center no-repeat;
}
.vertical {
overflow: hidden;
}
.vertical li {
float: left;
width: 140px;
}
.vertical li:last-child {
float: right;
text-align: right;
}
.vertical .or {
color: #aaa;
float: left;
font-size: 12px;
margin-left: -8px;
margin-top: 32px;
}
.vertical input {
width: 68px;
}
.vertical li:last-child input {
float: right;
}