-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add task solution #3596
base: master
Are you sure you want to change the base?
add task solution #3596
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,77 @@ | ||
body { | ||
margin: 0; | ||
@keyframes move-hand { | ||
0% { | ||
transform: rotate(0); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.stopwatch { | ||
&__body { | ||
margin: 0; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
|
||
&__watch { | ||
position: relative; | ||
width: 80vmin; | ||
height: 80vmin; | ||
|
||
border: 1vmin dotted #000; | ||
border-radius: 50%; | ||
} | ||
|
||
&__minute { | ||
position: absolute; | ||
bottom: 40vmin; | ||
left: 40vmin - 1.5vmin; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The calculation |
||
height: 20vmin; | ||
width: 3vmin; | ||
|
||
transform-origin: bottom center; | ||
background-color: #0700ff; | ||
animation: move-hand 3600s steps(60) infinite; | ||
} | ||
|
||
&__second { | ||
position: absolute; | ||
bottom: 40vmin; | ||
left: 40vmin - 0.75vmin; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the previous comment, the calculation |
||
height: 38vmin; | ||
width: 1.5vmin; | ||
|
||
transform-origin: bottom center; | ||
background-color: #2c8000; | ||
animation: move-hand 60s linear infinite; | ||
} | ||
|
||
&__center { | ||
position: absolute; | ||
top: 40vmin - 2.5vmin; | ||
left: 40vmin - 2.5vmin; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The calculation |
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The calculation |
||
height: 5vmin; | ||
width: 5vmin; | ||
|
||
border-radius: 50%; | ||
background-color: #f6a603; | ||
} | ||
|
||
&--speed-up { | ||
.stopwatch__second { | ||
animation: move-hand 10s linear infinite; | ||
} | ||
|
||
.stopwatch__minute { | ||
animation: move-hand 600s steps(60) infinite; | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
<html>
tag is incorrectly self-closed. HTML tags like<html>
should not be self-closed. Remove the self-closing slash to correct this.