-
Notifications
You must be signed in to change notification settings - Fork 1
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
6 changed files
with
588 additions
and
590 deletions.
There are no files selected for viewing
235 changes: 117 additions & 118 deletions
235
src/app/pages/gamificacao/jogo-da-memoria/jogo-da-memoria.component.scss
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,160 +1,159 @@ | ||
@import '../../../../styles/base/variables'; | ||
@import '../../../../styles/base/fonts'; | ||
.header { | ||
width: 100vw; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100vw; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.slider-container { | ||
position: absolute; | ||
width: 80%; | ||
margin: 0 auto; | ||
text-align: center; | ||
position: absolute; | ||
width: 80%; | ||
margin: 0 auto; | ||
text-align: center; | ||
} | ||
|
||
.name-game { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: $boto-1; | ||
font-size: 20px; | ||
font-family: $primary-font; | ||
font-weight: 700; | ||
text-align: center; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: $boto-1; | ||
font-size: 20px; | ||
font-family: $primary-font; | ||
font-weight: 700; | ||
text-align: center; | ||
} | ||
|
||
.labels { | ||
padding-top: 45px; | ||
display: flex; | ||
justify-content: space-around; | ||
margin-bottom: 10px; | ||
span { | ||
font-family: $primary-font; | ||
font-size: 14px; | ||
color: $boto-1; | ||
} | ||
padding-top: 45px; | ||
display: flex; | ||
justify-content: space-around; | ||
margin-bottom: 10px; | ||
span { | ||
font-family: $primary-font; | ||
font-size: 14px; | ||
color: $boto-1; | ||
} | ||
} | ||
|
||
.slider { | ||
-webkit-appearance: none; | ||
width: 80%; | ||
height: 8px; | ||
border-radius: 5px; | ||
background: linear-gradient(to right, #459c25, #d1b61b, #c30000); | ||
opacity: 0.9; | ||
transition: opacity 0.2s; | ||
-webkit-appearance: none; | ||
width: 80%; | ||
height: 8px; | ||
border-radius: 5px; | ||
background: linear-gradient(to right, #459c25, #d1b61b, #c30000); | ||
opacity: 0.9; | ||
transition: opacity 0.2s; | ||
} | ||
|
||
.slider::-webkit-slider-thumb { | ||
-webkit-appearance: none; | ||
appearance: none; | ||
width: 6px; | ||
height: 20px; | ||
border-radius: 20%; | ||
background: $botao; | ||
cursor: pointer; | ||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); | ||
-webkit-appearance: none; | ||
appearance: none; | ||
width: 6px; | ||
height: 20px; | ||
border-radius: 20%; | ||
background: $botao; | ||
cursor: pointer; | ||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
.slider::-moz-range-thumb { | ||
width: 20px; | ||
height: 20px; | ||
border-radius: 50%; | ||
background: #0000ff; | ||
cursor: pointer; | ||
width: 20px; | ||
height: 20px; | ||
border-radius: 50%; | ||
background: #0000ff; | ||
cursor: pointer; | ||
} | ||
|
||
.game-board { | ||
padding: 60px 0px 20px 0; | ||
display: flex; | ||
flex-wrap: wrap; | ||
max-width: 700px; | ||
justify-content: center; | ||
gap: 10px; | ||
margin: auto; | ||
padding: 60px 0px 20px 0; | ||
display: flex; | ||
flex-wrap: wrap; | ||
max-width: 700px; | ||
justify-content: center; | ||
gap: 10px; | ||
margin: auto; | ||
} | ||
|
||
.card { | ||
font-family: $primary-font; | ||
font-weight: 500; | ||
font-size: 16px; | ||
color: $boto-1; | ||
position: relative; | ||
width: 115px; | ||
height: 115px; | ||
cursor: pointer; | ||
perspective: 1000px; | ||
transform-style: preserve-3d; | ||
&.flipped .front, | ||
&.matched .front { | ||
transform: rotateY(0); | ||
} | ||
&.flipped .back, | ||
&.matched .back { | ||
transform: rotateY(180deg); | ||
} | ||
.front, | ||
.back, | ||
img { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
backface-visibility: hidden; | ||
transition: transform 0.6s; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border: 1px solid $boto-1; | ||
border-radius: 8px; | ||
object-fit: cover; | ||
} | ||
.front { | ||
transform: rotateY(180deg); | ||
} | ||
.back { | ||
background: $background-p; | ||
transform: rotateY(0); | ||
} | ||
font-family: $primary-font; | ||
font-weight: 500; | ||
font-size: 16px; | ||
color: $boto-1; | ||
position: relative; | ||
width: 115px; | ||
height: 115px; | ||
cursor: pointer; | ||
perspective: 1000px; | ||
transform-style: preserve-3d; | ||
&.flipped .front, | ||
&.matched .front { | ||
transform: rotateY(0); | ||
} | ||
&.flipped .back, | ||
&.matched .back { | ||
transform: rotateY(180deg); | ||
} | ||
.front, | ||
.back, | ||
img { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
backface-visibility: hidden; | ||
transition: transform 0.6s; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border: 1px solid $boto-1; | ||
border-radius: 8px; | ||
object-fit: cover; | ||
} | ||
.front { | ||
transform: rotateY(180deg); | ||
} | ||
.back { | ||
background: $background-p; | ||
transform: rotateY(0); | ||
} | ||
} | ||
|
||
|
||
/* Centraliza o botão no container */ | ||
|
||
.complete-button { | ||
margin-bottom: 50px; | ||
padding: 10px 20px; | ||
background-color: #d9d7f1; | ||
/* Cor de fundo do botão */ | ||
border: none; | ||
border-radius: 8px; | ||
/* Bordas arredondadas */ | ||
color: #4a4aad; | ||
/* Cor do texto */ | ||
font-weight: bold; | ||
font-size: 12px; | ||
cursor: pointer; | ||
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); | ||
/* Sombra leve */ | ||
transition: background-color 0.3s ease, transform 0.2s ease; | ||
/* Centraliza o botão no centro do container */ | ||
display: block; | ||
margin-left: auto; | ||
margin-right: auto; | ||
margin-bottom: 50px; | ||
padding: 10px 20px; | ||
background-color: #d9d7f1; | ||
/* Cor de fundo do botão */ | ||
border: none; | ||
border-radius: 8px; | ||
/* Bordas arredondadas */ | ||
color: #4a4aad; | ||
/* Cor do texto */ | ||
font-weight: bold; | ||
font-size: 12px; | ||
cursor: pointer; | ||
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); | ||
/* Sombra leve */ | ||
transition: | ||
background-color 0.3s ease, | ||
transform 0.2s ease; | ||
/* Centraliza o botão no centro do container */ | ||
display: block; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
|
||
/* Efeito de hover */ | ||
|
||
.complete-button:hover { | ||
background-color: #c1b9f0; | ||
background-color: #c1b9f0; | ||
} | ||
|
||
|
||
/* Efeito ao clicar */ | ||
|
||
.complete-button:active { | ||
transform: scale(0.98); | ||
/* Leve redução */ | ||
} | ||
transform: scale(0.98); | ||
/* Leve redução */ | ||
} |
Oops, something went wrong.