Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
0456785
update the version number in the package.json
ziscloud Aug 4, 2016
0d61217
fix for double switching
Feb 21, 2017
2795b83
Merge pull request #11 from dmakushin/usr/dmakushin/fix-for-double-sw…
ziscloud May 23, 2017
65c4d50
Add main entry to package.json
nechutny Jun 7, 2017
0ceb1d7
Merge pull request #18 from nechutny/master
ziscloud Jun 7, 2017
f056c5f
Greatly improved version - see details.
geniesys Jun 8, 2017
a4224ec
Create angular-bootstrap-toggle.min.js
geniesys Jun 8, 2017
d7b6eb9
Greatly improved version - see details.
geniesys Jun 8, 2017
9e2719a
Merge pull request #19 from geniesys/master
ziscloud Jul 25, 2017
d3a22f5
Update package.json
ziscloud Oct 12, 2017
ff85db1
* Fixed JSHint issues
bertysentry Aug 23, 2018
9b30866
* Upgraded dependencies and modules
bertysentry Aug 23, 2018
63bd8ec
* Added backward compatibility for onstyle and offstyle
bertysentry Aug 23, 2018
7b9be4c
* Fixed the width calculation by using scrollWidth instead of offsetW…
bertysentry Aug 24, 2018
272baf3
* Removed unnecessary code
bertysentry Aug 24, 2018
47fb2c6
issue-33-width-issue
bertysentry Aug 31, 2018
bbccfe3
Merge pull request #34 from bertysentry/feature/issue-33-width-issue
ziscloud Sep 10, 2018
360cb78
* Really fixed the width calculation issue and made it very similar i…
bertysentry Sep 29, 2018
09ac150
Merge pull request #36 from bertysentry/feature/issue-5-height-does-n…
ziscloud Oct 8, 2018
616244a
Set version to 0.4.0
bertysentry Oct 9, 2018
2efc32e
Merge pull request #37 from bertysentry/set-version-to-0.4.0
ziscloud Oct 10, 2018
bc1cff0
Merge pull request #1 from ziscloud/master
dumith-eranga Oct 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-bootstrap-toggle",
"description": "AngularJS version of Bootstrap Toggle",
"version": "0.1.2",
"version": "0.4.0",
"keywords": [
"angular",
"toggle",
Expand All @@ -25,13 +25,13 @@
"**/.*"
],
"dependencies": {
"angular": ">=1.3.0",
"angular": ">=1.7.0",
"bootstrap": ">=3.2.0"
},
"devDependencies": {
"angular-mocks": ">=1.3.0",
"angular-scenario": ">=1.3.0",
"angular": ">=1.3.0"
"angular-mocks": ">=1.7.0",
"angular-scenario": ">=1.7.0",
"angular": ">=1.7.0"
},
"license": "MIT"
}
112 changes: 112 additions & 0 deletions css/stylesheet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
header, footer {
padding: 20px;
background-image: url('../img/header.png');
background-size: 256px 256px;
}
footer {
color: #fff;
text-align: center;
}
.nyt-logo {
max-height: 40px;
margin-top: 5px;
margin-right: 5px;
}

nav.navbar {
margin-bottom: 10px;
background-color: #fff;
border: 0px;
border-radius: 2px;
}
#navbar {
margin: 0px;
}
#navbar .navbar-nav li iframe {
margin-top: 15px;
}
#navbar .navbar-nav li:last-child iframe {
margin-right: 15px;
}

@media screen and (max-width: 767px) {
#navbar .navbar-nav li iframe {
display: none;
}
}

.mast-head {
margin: 10px 0;
}
.mast-head h1 {
margin-bottom: 15px;
color: #fff;
}
.mast-head p {
color: #fff;
}

.mast-links {
padding-top: 10px;
}

.mast-links > * {
vertical-align: middle;
margin-bottom: 10px;
}

.mast-links > .btn {
margin-right: 30px;
}
main {
margin: 10px 20px;
}
main .container {
margin-bottom: 40px;
}

code.hljs {
border: 1px solid #ccc;
padding: 1em;
white-space: pre;
margin-bottom: 10px;
}

.example {
position: relative;
border: 1px solid #ccc;
padding: 1em 1em 0.5em 1em;
border-radius: 4px 4px 0 0;
}

.example:after {
content: "Example";
position: absolute;
top: 0px;
right: 0px;
padding: 3px 7px;
font-size: 12px;
font-weight: bold;
background-color: #f5f5f5;
border: 1px solid #ccc;
color: #9da0a4;
border-radius: 0px 4px 0px 4px;
border-width: 0px 0px 1px 1px;
}

.example + code.hljs {
border-top: 0;
border-radius: 0px 0px 4px 4px;
}

.example > * {
margin-bottom: 10px;
}

.example > div.toggle {
margin-right: 10px;
}

.table-striped code {
background-color: inherit;
}
46 changes: 13 additions & 33 deletions dist/angular-bootstrap-toggle.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
margin-right: 5px;
}
.toggle {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
position: relative;
overflow: hidden;
}
Expand Down Expand Up @@ -51,46 +50,27 @@
width: 0px;
border-width: 0 1px;
}
.toggle.btn {
min-width: 59px;
min-height: 34px;
.toggle-on-pad.btn.btn-lg {
padding-right: 32px;
}
.toggle-on.btn {
.toggle-off-pad.btn.btn-lg {
padding-left: 32px;
}
.toggle-on-pad.btn {
padding-right: 24px;
}
.toggle-off.btn {
.toggle-off-pad.btn {
padding-left: 24px;
}
.toggle.btn-lg {
min-width: 79px;
min-height: 45px;
}
.toggle-on.btn-lg {
padding-right: 31px;
}
.toggle-off.btn-lg {
padding-left: 31px;
}
.toggle-handle.btn-lg {
width: 40px;
}
.toggle.btn-sm {
min-width: 50px;
min-height: 30px;
}
.toggle-on.btn-sm {
.toggle-on-pad.btn.btn-sm {
padding-right: 20px;
}
.toggle-off.btn-sm {
.toggle-off-pad.btn.btn-sm {
padding-left: 20px;
}
.toggle.btn-xs {
min-width: 35px;
min-height: 22px;
}
.toggle-on.btn-xs {
padding-right: 12px;
.toggle-on-pad.btn.btn-xs {
padding-right: 9px;
}
.toggle-off.btn-xs {
padding-left: 12px;
.toggle-off-pad.btn.btn-xs {
padding-left: 9px;
}
Loading