Skip to content

Commit 1de9ae5

Browse files
committed
editing themes
1 parent 2fd20c3 commit 1de9ae5

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

css/switcher.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,16 +236,15 @@ background: linear-gradient(#e4e4e4, #f9f9f9);
236236
/* ------------ THEME iPHONE ------------ */
237237
.swraper.iphone
238238
{
239-
border-radius: 9999px;
240239
-webkit-box-shadow: 0 0 0 1px #999;
241240
box-shadow: 0 0 0 1px #999;
242241
border: 1px solid #999;
243242
}
244243

245244
.swraper.iphone .stoggler
246245
{
247-
-webkit-box-shadow: inset -2px 2px 5px rgba(0, 0, 0, 0.4);
248-
box-shadow: inset -2px 2px 5px rgba(0, 0, 0, 0.4);
246+
-webkit-box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.4), inset 2px 2px 3px rgba( 0, 0, 0, .2 );
247+
box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.2), inset 0 -1px 2px rgba( 0, 0, 0, .2 );
249248
background: #ECECEC;
250249

251250
color: #828282;
@@ -268,9 +267,9 @@ background: linear-gradient(#e4e4e4, #f9f9f9);
268267
border-radius: 50px;
269268
background: -webkit-linear-gradient(#d1d1d1 0%, #fafafa 100%);
270269
background: -o-linear-gradient(#d1d1d1 0%, #fafafa 100%);
271-
background: linear-gradient(#d1d1d1 0%, #fafafa 100%);
272-
-webkit-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #ffffff, 0 0 3px rgba(0, 0, 0, 0.6);
273-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #ffffff, 0 0 3px rgba(0, 0, 0, 0.6);
270+
background: radial-gradient( circle, #fefefe 0%, #fefefe 20%, #cfcfcf 21%, #cfcfcf 22%, #fefefe 26%, #fefefe 50%, #dedede 51%, #dedede 56%, #fefefe 59% );
271+
272+
border: 1px solid #999;
274273
}
275274

276275
.swraper.iphone .stoggler .sblob:hover{}
@@ -323,6 +322,7 @@ background: linear-gradient(#e4e4e4, #f9f9f9);
323322

324323

325324

325+
326326
body{
327327
/*background: #444;*/
328328
vertical-align: middle;

index.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// reverse: true,
3636
theme: 'iphone',
3737
width: 70,
38-
blobOffset: 0,
38+
blobOffset: 1,
3939

4040

4141
});
@@ -74,6 +74,13 @@
7474
theme: 'flat',
7575
// blobOffset: 3,
7676
});
77+
78+
$('.test :checkbox').switcher(
79+
{
80+
theme: 'material',
81+
// blobOffset: 3,
82+
});
83+
7784
};
7885

7986

@@ -129,6 +136,15 @@ <h4>Hoppies</h4>
129136
<input type="checkbox" name="drawing" value="1" disabled/>
130137
</div>
131138

139+
<div class="test">
140+
<h4>Testing Material</h4>
141+
142+
<label >singing </label>
143+
<input type="checkbox" name="singing" value="1" checked /><br />
144+
<label >drawing </label>
145+
<input type="checkbox" name="drawing" value="1"/>
146+
</div>
147+
132148
</section>
133149

134150

js/switcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$blob: $( '<span>', {'class': 'sblob'} ),
1616

1717
// Allowed Themes
18-
themes: [ 'light', 'modern', 'dark', 'iphone', 'flat' ],
18+
themes: [ 'light', 'modern', 'dark', 'iphone', 'flat', 'material' ],
1919

2020
};
2121

0 commit comments

Comments
 (0)