SES-147 fixed css for mobile

This commit is contained in:
Natalia Gawron 2021-01-16 20:03:37 +01:00
parent b740fdc3b4
commit 5949512a38
4 changed files with 51 additions and 26 deletions

View File

@ -30,7 +30,7 @@ export class AbilitiesComponent implements OnInit {
.pipe(first())
.subscribe((characterId) => {
this.characterService
.getCharacterStats(characterId)
.getCharacterStats(2)
.pipe(first())
.subscribe(
(characterStats) => {

View File

@ -19,7 +19,13 @@
padding-bottom: 15px;
}
@media (max-width: 468px) {
@media (max-width: 365px) {
#main {
width: 315px;
}
}
@media (min-width: 365px) and (max-width: 468px) {
#main {
width: 340px;
}
@ -27,7 +33,7 @@
@media (min-width: 468px) and (max-width: 768px) {
#main {
width: 420px;
width: 410px;
}
}

View File

@ -41,7 +41,7 @@
}
.ability_card_container {
margin: 5%;
margin: 2%;
display: flex;
justify-content: center;
align-items: center;

View File

@ -2,6 +2,24 @@
top: 50%;
}
.radio-group {
display: flex;
flex-direction: column;
}
.radio-button {
padding: 3%;
border: 1px #e9cca7 solid;
border-radius: 10px;
margin-bottom: 5%;
font-size: 14px;
text-align: center;
}
.radio-button:hover {
opacity: 0.5;
}
::ng-deep.mat-dialog-container {
background-color: #102028;
color: whitesmoke;
@ -24,14 +42,33 @@
color: orange;
}
@media (max-width: 468px) {
.throw-container {
width: 250px;
@media (max-width: 365px) {
.content-throw-dialog {
height: 350px;
}
.radio-button {
padding: 5%;
font-size: 12px;
}
#main {
width: 320px;
}
}
@media (min-width: 365px) and (max-width: 468px) {
#main {
width: 340px;
}
}
@media (min-width: 468px) and (max-width: 768px) {
#main {
width: 410px;
}
}
@media (min-width: 768px) {
.throw-container {
#main {
width: 480px;
}
}
@ -44,24 +81,6 @@
margin-bottom: 5%;
}
.radio-group {
display: flex;
flex-direction: column;
}
.radio-button {
padding: 5%;
border: 1px #e9cca7 solid;
border-radius: 10px;
margin-bottom: 5%;
font-size: 14px;
text-align: center;
}
.radio-button:hover {
opacity: 0.5;
}
.mat-divider--custom-style{
background-color: #9e8b6e;
margin-bottom: 20px;