Made profile design responsive. Closes #71

This commit is contained in:
flash 2018-10-31 10:36:24 +01:00
parent b89cecd0bc
commit 153ca81808
3 changed files with 45 additions and 0 deletions

View file

@ -5,6 +5,10 @@
padding: 2px; padding: 2px;
margin-bottom: 2px; margin-bottom: 2px;
@media (max-width: @site-mobile-width) {
flex-direction: column;
}
&__section { &__section {
width: 100%; width: 100%;
list-style: none; list-style: none;

View file

@ -27,6 +27,11 @@
&--edit { &--edit {
cursor: pointer; cursor: pointer;
} }
@media (max-width: @site-mobile-width) {
width: 80px;
height: 80px;
}
} }
&__check { &__check {
@ -85,6 +90,10 @@
&__content { &__content {
margin: 5px 10px; margin: 5px 10px;
flex: 1 1 auto; flex: 1 1 auto;
@media (max-width: @site-mobile-width) {
text-align: center;
}
} }
&__relation { &__relation {
@ -95,6 +104,11 @@
padding: 1px 5px 4px; padding: 1px 5px 4px;
cursor: default; cursor: default;
} }
@media (max-width: @site-mobile-width) {
flex-direction: column;
align-items: center;
}
} }
&__options { &__options {
@ -103,19 +117,38 @@
padding: 0 20px; padding: 0 20px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@media (max-width: @site-mobile-width) {
flex-direction: column;
}
} }
&__actions { &__actions {
display: flex; display: flex;
align-items: center; align-items: center;
@media (max-width: @site-mobile-width) {
flex-direction: column;
}
} }
&__action { &__action {
margin-right: 5px; margin-right: 5px;
@media (max-width: @site-mobile-width) {
margin-right: 0;
margin-bottom: 5px;
width: 100%;
}
} }
&__stats { &__stats {
display: flex; display: flex;
@media (max-width: @site-mobile-width) {
flex-direction: column;
flex-wrap: wrap;
}
} }
&__stat { &__stat {

View file

@ -14,6 +14,14 @@
width: 100%; width: 100%;
max-width: 300px; max-width: 300px;
margin-right: 2px; margin-right: 2px;
@media (max-width: @site-mobile-width) {
max-width: 100%;
}
}
@media (max-width: @site-mobile-width) {
flex-direction: column;
} }
} }