mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix challenge layout (#11620)
* wrap challenge task icons + margins * full width challenge card on small devices + padding under add-challenge button
This commit is contained in:
@@ -294,8 +294,9 @@
|
|||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
background-color: $gray-700;
|
background-color: $gray-700;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 16px;
|
padding: 8px;
|
||||||
border-radius: .25em;
|
border-radius: .25em;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
.value {
|
.value {
|
||||||
@@ -326,6 +327,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
> div.muted {
|
> div.muted {
|
||||||
|
margin: 8px;
|
||||||
|
|
||||||
.value {
|
.value {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
|||||||
@@ -68,6 +68,17 @@
|
|||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
@import '~@/assets/scss/colors.scss';
|
@import '~@/assets/scss/colors.scss';
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.header-row {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-10.standard-page {
|
||||||
|
// full width on smaller devices
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.header-row {
|
.header-row {
|
||||||
h1 {
|
h1 {
|
||||||
color: $purple-200;
|
color: $purple-200;
|
||||||
|
|||||||
@@ -88,6 +88,17 @@
|
|||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
@import '~@/assets/scss/colors.scss';
|
@import '~@/assets/scss/colors.scss';
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.header-row {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-10.standard-page {
|
||||||
|
// full width on smaller devices
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.header-row {
|
.header-row {
|
||||||
h1 {
|
h1 {
|
||||||
color: $purple-200;
|
color: $purple-200;
|
||||||
|
|||||||
Reference in New Issue
Block a user