mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-13 20:57:24 +01:00
Compare commits
2 Commits
fiz/confir
...
fiz/bounds
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08ff95d015 | ||
|
|
ec91b674f1 |
@@ -75,11 +75,14 @@
|
|||||||
class="box member-count"
|
class="box member-count"
|
||||||
@click="showMemberModal()"
|
@click="showMemberModal()"
|
||||||
>
|
>
|
||||||
|
<div class="box-content">
|
||||||
|
<div class="icon-number-row">
|
||||||
<div
|
<div
|
||||||
class="svg-icon member-icon"
|
class="svg-icon member-icon"
|
||||||
v-html="icons.memberIcon"
|
v-html="icons.memberIcon"
|
||||||
></div>
|
></div>
|
||||||
{{ challenge.memberCount }}
|
<span class="number">{{ challenge.memberCount }}</span>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
v-once
|
v-once
|
||||||
class="details"
|
class="details"
|
||||||
@@ -87,6 +90,7 @@
|
|||||||
{{ $t('participantsTitle') }}
|
{{ $t('participantsTitle') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div
|
<div
|
||||||
class="svg-icon gem-icon"
|
class="svg-icon gem-icon"
|
||||||
@@ -304,7 +308,7 @@
|
|||||||
|
|
||||||
.box {
|
.box {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 1em;
|
padding: 0.5em;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
box-shadow: 0 2px 2px 0 rgba(26, 24, 29, 0.16), 0 1px 4px 0 rgba(26, 24, 29, 0.12);
|
box-shadow: 0 2px 2px 0 rgba(26, 24, 29, 0.16), 0 1px 4px 0 rgba(26, 24, 29, 0.12);
|
||||||
@@ -314,22 +318,69 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
&.member-count:hover {
|
&.member-count:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.box-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-number-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: 0.1em;
|
||||||
|
|
||||||
|
.number {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: normal;
|
||||||
|
margin-left: 0.2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.svg-icon {
|
.svg-icon {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: .2em;
|
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
.details {
|
.details {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-top: 0.4em;
|
|
||||||
color: $gray-200;
|
color: $gray-200;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0 4px;
|
||||||
|
line-height: 1.15;
|
||||||
|
word-break: break-word;
|
||||||
|
max-height: 2.3em;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.member-count {
|
||||||
|
.icon-number-row {
|
||||||
|
.svg-icon {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.number {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.details {
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 1.1;
|
||||||
|
max-height: 2.2em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,13 +70,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-secondary {
|
.btn-secondary {
|
||||||
width: 5.75rem;
|
min-width: 5.75rem;
|
||||||
|
width: auto;
|
||||||
|
max-width: calc(100% - 2rem);
|
||||||
min-height: 1.5rem;
|
min-height: 1.5rem;
|
||||||
|
padding: 0.25rem 0.75rem;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border-color: $white;
|
border-color: $white;
|
||||||
box-shadow: 0 2px 2px 0 rgba(26, 24, 29, 0.16), 0 1px 4px 0 rgba(26, 24, 29, 0.12);
|
box-shadow: 0 2px 2px 0 rgba(26, 24, 29, 0.16), 0 1px 4px 0 rgba(26, 24, 29, 0.12);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user