Skip to content

Commit 0352d3d

Browse files
committed
SASS SVG URI.
1 parent dcb0039 commit 0352d3d

File tree

7 files changed

+35
-35
lines changed

7 files changed

+35
-35
lines changed

HISTORY.md

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

3+
## 1.0.6
4+
5+
* SASS SVG URI
6+
37
## 1.0.5
48

59
* Fixed error

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.5",
4+
"version": "1.0.6",
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: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
*
55
* Bootstrap 4 Component - Custom switch
6-
* Version: 1.0.4
6+
* Version: 1.0.6
77
* Copyright (c) 2017 Martin Haubek
88
*
99
*
@@ -17,17 +17,11 @@
1717
.custom-switch .custom-switch-input *:before,
1818
.custom-switch .custom-switch-input + .custom-switch-btn {
1919
box-sizing: border-box; }
20-
.custom-switch .custom-switch-input::-moz-selection, .custom-switch .custom-switch-input:after::-moz-selection, .custom-switch .custom-switch-input:before::-moz-selection,
21-
.custom-switch .custom-switch-input *::-moz-selection,
22-
.custom-switch .custom-switch-input *:after::-moz-selection,
23-
.custom-switch .custom-switch-input *:before::-moz-selection,
24-
.custom-switch .custom-switch-input + .custom-switch-btn::-moz-selection {
25-
background: none; }
26-
.custom-switch .custom-switch-input::selection, .custom-switch .custom-switch-input:after::selection, .custom-switch .custom-switch-input:before::selection,
27-
.custom-switch .custom-switch-input *::selection,
28-
.custom-switch .custom-switch-input *:after::selection,
29-
.custom-switch .custom-switch-input *:before::selection,
30-
.custom-switch .custom-switch-input + .custom-switch-btn::selection {
20+
.custom-switch .custom-switch-input:selection, .custom-switch .custom-switch-input:after:selection, .custom-switch .custom-switch-input:before:selection,
21+
.custom-switch .custom-switch-input *:selection,
22+
.custom-switch .custom-switch-input *:after:selection,
23+
.custom-switch .custom-switch-input *:before:selection,
24+
.custom-switch .custom-switch-input + .custom-switch-btn:selection {
3125
background: none; }
3226
.custom-switch .custom-switch-input + .custom-switch-btn {
3327
outline: 0;
@@ -78,28 +72,28 @@
7872
height: auto; }
7973

8074
.custom-switch.custom-switch-label-io .custom-switch-input + .custom-switch-btn {
81-
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='38'><text x='42.5' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='#fff'>O</text></svg>"); }
75+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='38'%3E%3Ctext x='42.5' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='%23fff'%3EO%3C/text%3E%3C/svg%3E"); }
8276

8377
.custom-switch.custom-switch-label-io .custom-switch-input:checked + .custom-switch-btn {
84-
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='38'><text x='18.13333' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='#fff'>I</text></svg>"); }
78+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='38'%3E%3Ctext x='18.13333' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='%23fff'%3EI%3C/text%3E%3C/svg%3E"); }
8579

8680
.custom-switch.custom-switch-label-onoff .custom-switch-input + .custom-switch-btn {
87-
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='38'><text x='38.85714' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='#fff'>Off</text></svg>"); }
81+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='38'%3E%3Ctext x='38.85714' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='%23fff'%3EOff%3C/text%3E%3C/svg%3E"); }
8882

8983
.custom-switch.custom-switch-label-onoff .custom-switch-input:checked + .custom-switch-btn {
90-
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='38'><text x='9.71429' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='#fff'>On</text></svg>"); }
84+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='38'%3E%3Ctext x='9.71429' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='%23fff'%3EOn%3C/text%3E%3C/svg%3E"); }
9185

9286
.custom-switch.custom-switch-label-yesno .custom-switch-input + .custom-switch-btn {
93-
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='38'><text x='38.85714' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='#fff'>No</text></svg>"); }
87+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='38'%3E%3Ctext x='38.85714' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='%23fff'%3ENo%3C/text%3E%3C/svg%3E"); }
9488

9589
.custom-switch.custom-switch-label-yesno .custom-switch-input:checked + .custom-switch-btn {
96-
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='38'><text x='9.71429' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='#fff'>Yes</text></svg>"); }
90+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='38'%3E%3Ctext x='9.71429' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='%23fff'%3EYes%3C/text%3E%3C/svg%3E"); }
9791

9892
.custom-switch.custom-switch-label-status .custom-switch-input + .custom-switch-btn {
9993
width: 88px;
100-
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='88' height='38'><text x='38.85714' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='#fff'>Disabled</text></svg>"); }
94+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='38'%3E%3Ctext x='38.85714' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='%23fff'%3EDisabled%3C/text%3E%3C/svg%3E"); }
10195

10296
.custom-switch.custom-switch-label-status .custom-switch-input:checked + .custom-switch-btn {
103-
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='88' height='38'><text x='9.71429' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='#fff'>Enabled</text></svg>"); }
97+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='38'%3E%3Ctext x='9.71429' y='23.75' font-size='12px' font-family='-apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif' fill='%23fff'%3EEnabled%3C/text%3E%3C/svg%3E"); }
10498
.custom-switch.custom-switch-label-status .custom-switch-input:checked + .custom-switch-btn:after {
10599
left: 50px; }

dist/css/component-custom-switch.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 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.5",
4+
"version": "1.0.6",
55
"license": "MIT",
66
"author": {
77
"name": "Martin Haubek",
@@ -25,16 +25,16 @@
2525
"scss",
2626
"css"
2727
],
28-
"dependencies": {
29-
},
28+
"dependencies": {},
3029
"devDependencies": {
30+
"bootstrap": "^4.0.0-alpha.6",
3131
"gulp": "^3.9.1",
3232
"gulp-autoprefixer": "^3.1.1",
3333
"gulp-clean-css": "^2.3.2",
3434
"gulp-plumber": "^1.0.1",
3535
"gulp-rename": "^1.2.2",
3636
"gulp-sass": "^2.1.0",
3737
"gulp-strip-css-comments": "^1.2.0",
38-
"bootstrap": "^4.0.0-alpha.6"
38+
"sass-svg-uri": "^1.0.0"
3939
}
4040
}

0 commit comments

Comments
 (0)