-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
366 additions
and
61 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,152 @@ | ||
.App { | ||
text-align: center; | ||
*{ | ||
box-sizing: border-box; | ||
} | ||
|
||
.App-logo { | ||
height: 40vmin; | ||
pointer-events: none; | ||
body { | ||
margin: 0; | ||
background-color: #0B2434; | ||
padding: 60px 30px; | ||
font-family: "Karla", sans-serif; | ||
/* display: flex; | ||
justify-content: center; */ | ||
-webkit-user-select: none; | ||
user-select: none; | ||
|
||
} | ||
main { | ||
background-color: #F5F5F5; | ||
height: 700px; | ||
max-width: 100%; | ||
padding: 15px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-around; | ||
align-items: center; | ||
position: absolute; | ||
left: 50%; | ||
top: 50%; | ||
transform: translate(-50%, -50%); | ||
border-radius: 20px; | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
} | ||
.title { | ||
font-size: 50px; | ||
margin: 0; | ||
color: #0f3d5a; | ||
text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
.dice-container { | ||
display: grid; | ||
grid-template: auto auto / repeat(5, 1fr); | ||
gap: 10px; | ||
padding: 0px 10px 0px 10px; | ||
margin-bottom: 40px; | ||
} | ||
|
||
.dice { | ||
height: 70px; | ||
width: 70px; | ||
padding: 12px; | ||
margin: 4px; | ||
background-color: white; | ||
box-shadow: 0px 2px 2px 1px rgba(0.20, 0.5, 0.5, 0.20); | ||
border-radius: 10px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
cursor: pointer; | ||
|
||
} | ||
.die-face { | ||
border-radius: 10px; | ||
} | ||
.dot { | ||
display: block; | ||
width: 13px; | ||
height: 13px; | ||
border-radius: 50%; | ||
background-color: rgb(32, 29, 29); | ||
display: flex; | ||
align-self:auto; | ||
} | ||
|
||
.first-face { | ||
display: flex; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
|
||
.second-face { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: stretch; | ||
} | ||
|
||
.second-face .dot:nth-of-type(2) { | ||
align-self: flex-end; | ||
} | ||
|
||
.third-face { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: stretch; | ||
} | ||
|
||
.third-face .dot:nth-of-type(1) { | ||
align-self: flex-end; | ||
} | ||
|
||
.third-face .dot:nth-of-type(2) { | ||
align-self: center; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
.fourth-face, | ||
.sixth-face, | ||
.fifth-face { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: stretch; | ||
} | ||
|
||
.fourth-face .column, | ||
.sixth-face .column, | ||
.fifth-face .column { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
|
||
} | ||
|
||
.fifth-face .column:nth-of-type(2) { | ||
justify-content: center; | ||
} | ||
|
||
.roll-dice{ | ||
width: 150px; | ||
height: 50px; | ||
border-radius: 6px; | ||
border: none; | ||
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15); | ||
background-color: #3eb86f; | ||
font-size: 1.2rem; | ||
font-weight: 700; | ||
color: white; | ||
font-family: "Karla"; | ||
cursor: pointer; | ||
} | ||
.roll-dice:focus { | ||
outline: none; | ||
} | ||
.roll-dice:active { | ||
box-shadow: inset 5px 5px 10px -3px rgba(0, 0, 0, 0.7); | ||
} | ||
|
||
.instructions { | ||
font-family: 'Inter', sans-serif; | ||
font-weight: 400; | ||
color: #0f3d5a; | ||
margin-top: 0; | ||
padding: 0px 30px 0px; | ||
text-align: center; | ||
} |
Oops, something went wrong.