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()) .pipe(first())
.subscribe((characterId) => { .subscribe((characterId) => {
this.characterService this.characterService
.getCharacterStats(characterId) .getCharacterStats(2)
.pipe(first()) .pipe(first())
.subscribe( .subscribe(
(characterStats) => { (characterStats) => {

View File

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

View File

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

View File

@ -2,6 +2,24 @@
top: 50%; 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 { ::ng-deep.mat-dialog-container {
background-color: #102028; background-color: #102028;
color: whitesmoke; color: whitesmoke;
@ -24,14 +42,33 @@
color: orange; color: orange;
} }
@media (max-width: 468px) { @media (max-width: 365px) {
.throw-container { .content-throw-dialog {
width: 250px; 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) { @media (min-width: 768px) {
.throw-container { #main {
width: 480px; width: 480px;
} }
} }
@ -44,24 +81,6 @@
margin-bottom: 5%; 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{ .mat-divider--custom-style{
background-color: #9e8b6e; background-color: #9e8b6e;
margin-bottom: 20px; margin-bottom: 20px;