Skip to content

Commit

Permalink
add some custom properties to allow style personalization
Browse files Browse the repository at this point in the history
  • Loading branch information
Granze committed May 11, 2016
1 parent faa416c commit 1cc1fbf
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions flip-clock.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,19 @@
display: block;
}
#clock {
font-size: 0;
font-family: Arial, Verdana, sans-serif;
font-weight: bold;
}
#clock * {
font-size: 70px;
font-size: var(--digits-size, 70px);
}
#clock .num {
position: relative;
display: inline-block;
margin-right: 10px;
padding: 5px 15px;
border-radius: 4px;
color: #fff;
box-shadow: 1px 1px 1px #555;
background-color: #333;
background: -webkit-linear-gradient(top, #333 0%, #444 50%, #333 51%, #222 100%);
background: linear-gradient(to bottom, #333 0%,#444 50%,#333 51%,#222 100%);
color: var(--digits-color, #fff);
box-shadow: var(--box-shadow, 1px 1px 1px #555);
background-color: var(--bg-color, #333);
}
#clock .num:after {
content: '';
Expand Down

0 comments on commit 1cc1fbf

Please sign in to comment.