Skip to content

Commit

Permalink
Seprate ios and android
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Nov 2, 2015
1 parent 7bd0dca commit 7478f85
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 57 deletions.
57 changes: 0 additions & 57 deletions css/_platform.css → css/_android.css
Original file line number Diff line number Diff line change
@@ -1,50 +1,4 @@
/** Toggle */
.ios .v-toggle {
width: 51px;
}
.ios .v-toggle--checked.v-toggle {
background: var(--ios-green);
border-color: var(--ios-green);
}
.ios .v-toggle .v-toggle__handle {
box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.15);
}
.ios .v-toggle--checked .v-toggle__handle {
transform: translate3d(20px, 0, 0);
}
.ios .v-toggle::before {
content: '';
position: absolute;
display: block;
left: 0;
top: 0;
width: 100%;
height: 100%;
border-radius: 20px;
background: #e6e6e6;
transition: opacity 0.3s;
}
.ios .v-toggle--checked::before {
opacity: 0;
}
.ios .v-toggle::after {
content: '';
position: absolute;
display: block;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: white;
border-radius: 20px;
transform: scale3d(1, 1, 1);
transition: transform 0.3s;
}
.ios .v-toggle--checked::after {
transform: scale3d(0, 0, 0);
opacity: 1;
}

.android .v-toggle,
.android .v-toggle.v-toggle--checked {
border: 0;
Expand Down Expand Up @@ -99,17 +53,6 @@
}

/** Range Slider */
.ios .v-range-slider input::-webkit-slider-runnable-track {
height: 1px;
}
.ios .v-range-slider input::-webkit-slider-thumb:before {
background: var(--ios-blue);
height: 1px;
}
.ios .v-range-slider input::-webkit-slider-thumb {
box-shadow: 0 0 1px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,0.2);
}

.android .v-range-slider input::-webkit-slider-thumb:before {
background: var(--android-green);
top: 9px;
Expand Down
59 changes: 59 additions & 0 deletions css/_ios.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/** Toggle */
.ios .v-toggle {
width: 51px;
}
.ios .v-toggle--checked.v-toggle {
background: var(--ios-green);
border-color: var(--ios-green);
}
.ios .v-toggle .v-toggle__handle {
box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.15);
}
.ios .v-toggle--checked .v-toggle__handle {
transform: translate3d(20px, 0, 0);
}
.ios .v-toggle::before {
content: '';
position: absolute;
display: block;
left: 0;
top: 0;
width: 100%;
height: 100%;
border-radius: 20px;
background: #e6e6e6;
transition: opacity 0.3s;
}
.ios .v-toggle--checked::before {
opacity: 0;
}
.ios .v-toggle::after {
content: '';
position: absolute;
display: block;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: white;
border-radius: 20px;
transform: scale3d(1, 1, 1);
transition: transform 0.3s;
}
.ios .v-toggle--checked::after {
transform: scale3d(0, 0, 0);
opacity: 1;
}


/** Range Slider */
.ios .v-range-slider input::-webkit-slider-runnable-track {
height: 1px;
}
.ios .v-range-slider input::-webkit-slider-thumb:before {
background: var(--ios-blue);
height: 1px;
}
.ios .v-range-slider input::-webkit-slider-thumb {
box-shadow: 0 0 1px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,0.2);
}

0 comments on commit 7478f85

Please sign in to comment.