Skip to content

Commit

Permalink
Cleanup and update Ladda to 0.9.4
Browse files Browse the repository at this point in the history
Remove bower and npm configs since this is just an example of using ladda with Bootstrap and no new functionality is given.
  • Loading branch information
msurguy committed Sep 27, 2014
1 parent 2610e35 commit 02e23a8
Show file tree
Hide file tree
Showing 17 changed files with 215 additions and 158 deletions.
Binary file modified .DS_Store
Binary file not shown.
55 changes: 0 additions & 55 deletions Gruntfile.js

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2013 Hakim El Hattab, http://hakim.se
Copyright (C) 2014 Hakim El Hattab and Maksim Surguy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 0 additions & 19 deletions bower.json

This file was deleted.

Binary file added css/.DS_Store
Binary file not shown.
5 changes: 1 addition & 4 deletions css/ladda-theme.scss
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/** Contains the default Ladda button theme styles */
@import 'ladda.scss';


/*************************************
Expand Down Expand Up @@ -46,10 +45,8 @@ $mint: #16a085;
&[disabled],
&[data-loading] {
border-color: rgba( 0, 0, 0, 0.07 );
cursor: default;
background-color: #999;

&:hover {
&, &:hover {
cursor: default;
background-color: #999;
}
Expand Down
43 changes: 23 additions & 20 deletions css/ladda.scss
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* http://lab.hakim.se/ladda
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
* Copyright (C) 2014 Hakim El Hattab, http://hakim.se
*/


Expand Down Expand Up @@ -70,7 +70,7 @@ $spinnerSize: 32px;
width: $spinnerSize;
height: $spinnerSize;
top: 50%;
margin-top: -$spinnerSize/2;
margin-top: 0;
opacity: 0;
pointer-events: none;
}
Expand Down Expand Up @@ -127,12 +127,12 @@ $spinnerSize: 32px;

.ladda-button[data-style=expand-right] {
.ladda-spinner {
right: 14px;
right: $spinnerSize/-2 + 10;
}

&[data-size="s"] .ladda-spinner,
&[data-size="xs"] .ladda-spinner {
right: 4px;
right: $spinnerSize/-2 + 4;
}

&[data-loading] {
Expand All @@ -156,7 +156,7 @@ $spinnerSize: 32px;

.ladda-button[data-style=expand-left] {
.ladda-spinner {
left: 14px;
left: $spinnerSize/2 + 10;
}

&[data-size="s"] .ladda-spinner,
Expand Down Expand Up @@ -189,15 +189,15 @@ $spinnerSize: 32px;
.ladda-spinner {
top: -$spinnerSize;
left: 50%;
margin-left: -$spinnerSize/2;
margin-left: 0;
}

&[data-loading] {
padding-top: 54px;

.ladda-spinner {
opacity: 1;
top: 14px;
top: ($spinnerSize/ 2) + 10;
margin-top: 0;
}

Expand All @@ -223,7 +223,7 @@ $spinnerSize: 32px;
.ladda-spinner {
top: 62px;
left: 50%;
margin-left: -$spinnerSize/2;
margin-left: 0;
}

&[data-size="s"] .ladda-spinner,
Expand Down Expand Up @@ -257,7 +257,7 @@ $spinnerSize: 32px;
}
.ladda-spinner {
left: 100%;
margin-left: -$spinnerSize/2;
margin-left: 0;
}

&[data-loading] {
Expand All @@ -284,7 +284,8 @@ $spinnerSize: 32px;
}
.ladda-spinner {
right: 100%;
margin-left: -$spinnerSize/2;
margin-left: 0;
left: $spinnerSize/2
}

&[data-loading] {
Expand All @@ -311,7 +312,7 @@ $spinnerSize: 32px;
}
.ladda-spinner {
left: 50%;
margin-left: -$spinnerSize/2;
margin-left: 0;
margin-top: 1em;
}

Expand All @@ -322,7 +323,7 @@ $spinnerSize: 32px;
}
.ladda-spinner {
opacity: 1;
margin-top: -$spinnerSize/2;
margin-top: 0;
}
}
}
Expand All @@ -339,7 +340,7 @@ $spinnerSize: 32px;
}
.ladda-spinner {
left: 50%;
margin-left: -$spinnerSize/2;
margin-left: 0;
margin-top: -2em;
}

Expand All @@ -350,7 +351,7 @@ $spinnerSize: 32px;
}
.ladda-spinner {
opacity: 1;
margin-top: -$spinnerSize/2;
margin-top: 0;
}
}
}
Expand All @@ -365,7 +366,7 @@ $spinnerSize: 32px;
}
.ladda-button[data-style=zoom-out] .ladda-spinner {
left: 50%;
margin-left: -$spinnerSize/2;
margin-left: $spinnerSize;

@include transform( scale( 2.5 ) );
}
Expand All @@ -381,6 +382,7 @@ $spinnerSize: 32px;
}
.ladda-button[data-style=zoom-out][data-loading] .ladda-spinner {
opacity: 1;
margin-left: 0;

@include transform( none );
}
Expand All @@ -395,7 +397,7 @@ $spinnerSize: 32px;
}
.ladda-button[data-style=zoom-in] .ladda-spinner {
left: 50%;
margin-left: -$spinnerSize/2;
margin-left: $spinnerSize/-2;

@include transform( scale( 0.2 ) );
}
Expand All @@ -411,6 +413,7 @@ $spinnerSize: 32px;
}
.ladda-button[data-style=zoom-in][data-loading] .ladda-spinner {
opacity: 1;
margin-left: 0;

@include transform( none );
}
Expand All @@ -426,7 +429,7 @@ $spinnerSize: 32px;
}
.ladda-button[data-style=contract] .ladda-spinner {
left: 50%;
margin-left: -16px;
margin-left: 0;
}

.ladda-button[data-style=contract][data-loading] {
Expand All @@ -450,19 +453,19 @@ $spinnerSize: 32px;
overflow: hidden;
width: 100px;

box-shadow: 0px 0px 0px 3000px rgba(0,0,0,0);
box-shadow: 0px 0px 0px 2000px rgba(0,0,0,0);
}
.ladda-button[data-style=contract-overlay] .ladda-spinner {
left: 50%;
margin-left: -16px;
margin-left: 0;
}

.ladda-button[data-style=contract-overlay][data-loading] {
border-radius: 50%;
width: 52px;

/*outline: 10000px solid rgba( 0, 0, 0, 0.5 );*/
box-shadow: 0px 0px 0px 3000px rgba(0,0,0,0.8);
box-shadow: 0px 0px 0px 2000px rgba(0,0,0,0.8);
}
.ladda-button[data-style=contract-overlay][data-loading] .ladda-label {
opacity: 0;
Expand Down
Loading

0 comments on commit 02e23a8

Please sign in to comment.