Skip to content

Commit

Permalink
Finished button
Browse files Browse the repository at this point in the history
  • Loading branch information
seaskymonster authored and seaskymonster committed Oct 24, 2014
1 parent 77433df commit 112c30d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 28 deletions.
4 changes: 1 addition & 3 deletions circle_button/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
<span class="hole">
<span class="switch">
<div class="arrow-up"></div>
<div class="arrow-down"></div>
<div class="arrow-left"></div>
<div class="arrow-right"></div>

</span>
</span>
</label>
Expand Down
31 changes: 6 additions & 25 deletions circle_button/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
background-size: 100% 80px, 100% 80px, 10px 10px, 100%;
background-position: top left, bottom left, bottom left, center;
background-repeat: no-repeat, no-repeat, repeat, no-repeat;*/
background-image: -webkit-radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 50%), -webkit-linear-gradient(to bottom, #99FF99 0%, #99FFCC 100%) ;

background-image: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 50%), linear-gradient(to bottom, #99FF99 0%, #99FFCC 100%) ;
background-size:10px 10px, 100%;
Expand Down Expand Up @@ -100,7 +101,7 @@ background-repeat: repeat, no-repeat;
border-left: 50px solid transparent;
border-right: 50px solid transparent;

border-bottom: 70px solid rgba(240, 17, 51, 0.84);
border-bottom: 70px solid rgba(240, 17, 51, 0.50);


}
Expand Down Expand Up @@ -143,30 +144,10 @@ background-repeat: repeat, no-repeat;



.button input:checked ~ .hole .switch:before {
top: auto;
bottom: -2px;
}
.button input:checked ~ .hole .switch:after {
content: "";
position: absolute;
bottom: -24px;
left: calc(14%);
width: 96px;
height: 16px;
border-radius: 50%;
background-image: -webkit-radial-gradient(center, ellipse, #fef400 0%, rgba(254, 244, 0, 0.3) 60%, transparent 100%);
background-image: radial-gradient(ellipse at center, #fef400 0%, rgba(254, 244, 0, 0.3) 60%, transparent 100%);
-webkit-filter: blur(8px);
filter: blur(8px);
}
.button input:checked ~ .hole .switch .one {
background-image: -webkit-linear-gradient(top, #eeeeee 0%, #aaaaaa 100%);
background-image: linear-gradient(to bottom, #eeeeee 0%, #aaaaaa 100%);
}
.button input:checked ~ .hole .switch .zero {
box-shadow: 0 4px 2px rgba(255, 255, 255, 0.5) inset, 0 -4px 2px rgba(0, 0, 0, 0.2) inset, 0 0 0 6px #aaaaaa inset;
}

.button input:checked ~ .hole .switch .arrow-up {
border-bottom: 70px solid rgba(240, 17, 51, 1);

body {
background-color: #2B2B2B;
}
Expand Down

0 comments on commit 112c30d

Please sign in to comment.