-
Notifications
You must be signed in to change notification settings - Fork 0
Implement more features #1
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
base: fake-master
Are you sure you want to change the base?
Changes from all commits
30c4301
c38af15
ad46de5
2ceaec5
d4490e1
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,42 +1,73 @@ | ||
| * { | ||
| /* border: 1px solid black; */ | ||
| } | ||
|
|
||
| .App { | ||
| text-align: center; | ||
| margin: 1rem; | ||
| } | ||
| .heading { | ||
| display: flex; | ||
| padding: 2rem; | ||
| margin: auto; | ||
| width: 100%; | ||
| } | ||
|
Comment on lines
+8
to
+13
Owner
Author
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. Nice usage of flex to center the antimatter counter! You don't need margin or width here. Maybe some of the why's behind that are better to discuss on a call.
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. Couldn't it be that I forgot box-sizing: border-box; ? |
||
|
|
||
| .highlight { | ||
| padding: 0.5rem 2rem; | ||
| font-size: 1.3rem; | ||
| border: 1px black solid; | ||
| background-color: beige; | ||
|
Comment on lines
+16
to
+19
Owner
Author
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. This would be the realm of opinion: some people might complain that a CSS class named Of course this is semantics. If you were to rename it "score-style-rules" there'd be nothing to complain about. But why does something named "highlight" do non-highlight stuff? |
||
| } | ||
|
|
||
| .App-logo { | ||
| height: 40vmin; | ||
| pointer-events: none; | ||
| .gridContainer4Cols { | ||
| display: grid; | ||
| grid-template-columns: repeat(4, 1fr); | ||
| gap: 10px; | ||
| grid-auto-rows: minmax(40px, auto); | ||
|
Comment on lines
+23
to
+26
Owner
Author
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. I've never learned how to use As far as I've heard grid is a really good thing. But when I was doing frontend development, it was not supported on enough browsers to actually use it in real code. |
||
| } | ||
|
|
||
| @media (prefers-reduced-motion: no-preference) { | ||
| .App-logo { | ||
| animation: App-logo-spin infinite 20s linear; | ||
| } | ||
| .gridContainer3Rows { | ||
| display: grid; | ||
| grid-template-rows: repeat(3, 1fr); | ||
| gap: 4px; | ||
| grid-auto-rows: minmax(40px, auto); | ||
| } | ||
|
|
||
| .App-header { | ||
| background-color: #282c34; | ||
| min-height: 100vh; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| font-size: calc(10px + 2vmin); | ||
| color: white; | ||
| .centered { | ||
| display: flex; | ||
| justify-content: center; | ||
| margin: auto; | ||
| align-items: center; | ||
| text-align: center; | ||
|
Comment on lines
+36
to
+41
Owner
Author
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.
This is the visualization I always refer to when I want to check which flex properties are applied on the parent and which one's on the child:
The reason this element is actually floating center is because you specified |
||
| } | ||
|
|
||
| .App-link { | ||
| color: #61dafb; | ||
| .cols-2{ | ||
| grid-template-columns: repeat(3, 1fr); | ||
| margin: auto 5rem; | ||
| } | ||
|
|
||
| @keyframes App-logo-spin { | ||
| from { | ||
| transform: rotate(0deg); | ||
| } | ||
| to { | ||
| transform: rotate(360deg); | ||
| } | ||
| .btn { | ||
| font-size: calc(10px + 1vmin); | ||
| padding: 0.2em 1em 0.2em 1em; | ||
| margin: 0 0.5rem; | ||
| border: 1px black solid; | ||
| border-radius: 6px; | ||
| background-color: rgb(240, 238, 238); | ||
| } | ||
| .btn:hover { | ||
| background-image: linear-gradient(to right, #29323c, #485563, #2b5876, #4e4376); | ||
| box-shadow: 0 4px 15px 0 rgba(45, 54, 65, 0.75); | ||
|
Comment on lines
+58
to
+59
Owner
Author
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. I love your hover effects!! |
||
| } | ||
| .btn:disabled{ | ||
| background: initial; | ||
| box-shadow: initial; | ||
| } | ||
| .sm{ | ||
| font-size: calc(10px + 0.5vmin); | ||
| } | ||
|
|
||
| button { | ||
| font-size: calc(10px + 2vmin); | ||
| .btn:disabled{ | ||
| background-color: rgb(255, 254, 254); | ||
| border: 1px rgb(240, 238, 238) solid; | ||
| color: rgb(180, 177, 177); | ||
| } | ||
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.
It's not really typical to use rem's or em's for spacing. Recommend to just use pixels.