Skip to content

Commit e644885

Browse files
committed
alphabetized css
1 parent 2cf2b0d commit e644885

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

02 - JS + CSS Clock/index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,46 +20,46 @@
2020
}
2121

2222
body {
23-
font-size: 2rem;
23+
align-items: center;
2424
display:flex;
2525
flex:1;
26+
font-size: 2rem;
2627
min-height: 100vh;
27-
align-items: center;
2828
}
2929

3030
.clock {
31-
width: 30rem;
32-
height: 30rem;
33-
border:20px solid hotpink;
34-
border-radius:50%;
35-
margin:50px auto;
36-
position: relative;
37-
padding:2rem;
3831
box-shadow:
3932
0 0 0 4px rgba(0,0,0,0.1),
4033
inset 0 0 0 3px #EFEFEF,
4134
inset 0 0 10px black,
4235
0 0 10px rgba(0,0,0,0.2);
36+
border:20px solid hotpink;
37+
border-radius:50%;
38+
height: 30rem;
39+
margin:50px auto;
40+
padding:2rem;
41+
position: relative;
42+
width: 30rem;
4343
}
4444

4545
.clock-face {
46-
position: relative;
47-
width: 100%;
4846
height: 100%;
47+
position: relative;
4948
transform: translateY(-3px);
49+
width: 100%;
5050
}
5151

5252
.hand {
53-
width: 50%;
54-
height: 6px;
5553
background: black;
54+
height: 6px;
5655
position: absolute;
5756
top: 50%;
5857
transform-origin: 100%;
5958
transform: rotate(90deg);
6059
transition: all 0.05s;
6160
/*add 'if' stateement to above transition to remove glitch when clock hits 60*/
6261
transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
62+
width: 50%;
6363
}
6464

6565
</style>

0 commit comments

Comments
 (0)