Skip to content

Commit 19a7f48

Browse files
committed
upgraded to bootstrap 4.1
1 parent 0e75e9f commit 19a7f48

File tree

10 files changed

+59
-14
lines changed

10 files changed

+59
-14
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ Thumbs.db
22
.DS_Store
33
/node_modules/
44
npm-debug.log
5-
test.html

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History
22

3+
## 1.0.8
4+
5+
* Upgraded to Bootstrap 4.1.0
6+
* Added example.html
7+
38
## 1.0.7
49

510
* Upgraded to Bootstrap 4.0.0

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Martin Haubek
3+
Copyright (c) 2017-18 Martin Haubek
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ The *Custom switch* is a simple Bootstrap 4 component that turn your default HTM
66

77
See demo here => https://haubek.github.io
88

9-
### NPM install
9+
### Yarn install
1010

1111
```
12-
npm install bootstrap4c-custom-switch
12+
yarn add bootstrap4c-custom-switch
1313
```
1414

1515
### CSS

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bootstrap4c-custom-switch",
33
"description": "Bootstrap 4 Component - Custom switch",
4-
"version": "1.0.7",
4+
"version": "1.0.8",
55
"license": "MIT",
66
"authors": [
77
{ "name": "Martin Haubek", "email": "[email protected]", "homepage": "https://haubek.github.io" }

dist/css/component-custom-switch.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
*
55
* Bootstrap 4 Component - Custom switch
6-
* Version: 1.0.7
7-
* Copyright (c) 2017 Martin Haubek
6+
* Version: 1.0.8
7+
* Copyright (c) 2017-18 Martin Haubek
88
*
99
*
1010
*

example.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html lang="en" class="h-100">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6+
<title>Example</title>
7+
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" rel="stylesheet">
8+
<link href="dist/css/component-custom-switch.css" rel="stylesheet">
9+
</head>
10+
<body class="h-100">
11+
<div class="container h-100">
12+
<div class="d-flex align-items-start flex-column h-100">
13+
<div class="w-100 m-auto py-5 text-center">
14+
15+
<div class="custom-switch custom-switch-label-io">
16+
<input class="custom-switch-input" id="example_1" type="checkbox">
17+
<label class="custom-switch-btn" for="example_1"></label>
18+
</div>
19+
<hr>
20+
<div class="custom-switch custom-switch-label-onoff">
21+
<input class="custom-switch-input" id="example_2" type="checkbox">
22+
<label class="custom-switch-btn" for="example_2"></label>
23+
</div>
24+
<hr>
25+
<div class="custom-switch custom-switch-label-yesno">
26+
<input class="custom-switch-input" id="example_3" type="checkbox">
27+
<label class="custom-switch-btn" for="example_3"></label>
28+
<div class="custom-switch-content-checked">
29+
<span class="text-success">I'm checked</span>
30+
</div>
31+
<div class="custom-switch-content-unchecked">
32+
<span class="text-danger">I'm unchecked</span>
33+
</div>
34+
</div>
35+
36+
</div>
37+
</div>
38+
</div>
39+
</body>
40+
</html>

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bootstrap4c-custom-switch",
33
"description": "Bootstrap 4 Component - Custom switch",
4-
"version": "1.0.7",
4+
"version": "1.0.8",
55
"license": "MIT",
66
"author": {
77
"name": "Martin Haubek",
@@ -25,9 +25,10 @@
2525
"scss",
2626
"css"
2727
],
28-
"dependencies": {},
28+
"dependencies": {
29+
"bootstrap": "^4.0.0"
30+
},
2931
"devDependencies": {
30-
"bootstrap": "^4.0.0",
3132
"gulp": "^3.9.1",
3233
"gulp-autoprefixer": "^3.1.1",
3334
"gulp-clean-css": "^2.3.2",

src/scss/build.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
*
55
* Bootstrap 4 Component - Custom switch
6-
* Version: 1.0.7
7-
* Copyright (c) 2017 Martin Haubek
6+
* Version: 1.0.8
7+
* Copyright (c) 2017-18 Martin Haubek
88
*
99
*
1010
*

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ [email protected]:
203203
hoek "4.x.x"
204204

205205
bootstrap@^4.0.0:
206-
version "4.0.0"
207-
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.0.0.tgz#ceb03842c145fcc1b9b4e15da2a05656ba68469a"
206+
version "4.1.0"
207+
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.1.0.tgz#110b05c31a236d56dbc9adcda6dd16f53738a28a"
208208

209209
brace-expansion@^1.0.0, brace-expansion@^1.1.7:
210210
version "1.1.11"

0 commit comments

Comments
 (0)