Skip to content

Commit

Permalink
have things working with no jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Pollak committed Nov 27, 2014
1 parent ca8c432 commit 4d37483
Show file tree
Hide file tree
Showing 12 changed files with 3,469 additions and 680 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "src/scss/bourbon"]
path = src/scss/bourbon
url = https://github.com/thoughtbot/bourbon.git
[submodule "src/coffee/payment"]
path = src/coffee/payment
url = https://github.com/jessepollak/payment
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="../lib/js/card.js"></script>
<script src="../lib/js/jquery.card.js"></script>
<script>
$('.active form').card({
container: $('.card-wrapper')
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ gulp.task 'scss', ->
.pipe gulp.dest('./lib/css')

gulp.task 'browserify', ->
gulp.src './src/coffee/**/*.coffee', read: false
gulp.src './src/coffee/*.coffee', read: false
.pipe browserify
insertGlobals: false
debug: development
transform: ['coffeeify']
extensions: ['.coffee']
standalone: 'card'
.pipe livereload(server)
.pipe rename({ extname: '.js' })
.pipe gulp.dest('./lib/js')
.pipe livereload(server)

gulp.task 'watch', ['scss', 'browserify', 'connect'], ->
server.listen 35729, ->
Expand Down
9 changes: 4 additions & 5 deletions lib/css/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,17 @@
color: #1A1876;
text-align: center;
font-weight: bold;
font-size: 15px; }
font-size: 15px;
line-height: 18px; }
.card-logo.visa.visa:before, .card-logo.visa.visa:after {
content: " ";
display: block;
width: 100%;
height: 25%; }
.card-logo.visa.visa:before {
background: #1A1876;
bottom: 100%; }
background: #1A1876; }
.card-logo.visa.visa:after {
background: #E79800;
top: 100%; }
background: #E79800; }

.card.visa.identified .front:before, .card.visa.identified .back:before {
background-color: #191278; }
Expand Down
Loading

0 comments on commit 4d37483

Please sign in to comment.