mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-25 05:32:17 +00:00
Standardise teresa milestones with PP shop
This commit is contained in:
parent
2b7090f80b
commit
835628c436
@ -301,6 +301,89 @@ button:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* #region CustomizeableTooltip */
|
||||
|
||||
.c-tooltip-content,
|
||||
.c-tooltip-arrow {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
transition: 0.4s linear;
|
||||
transition-property: opacity, visibility;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.c-tooltip-content {
|
||||
content: attr(ach-tooltip);
|
||||
width: 16rem;
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
text-align: center;
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.2;
|
||||
color: #ffffff;
|
||||
background-color: hsla(0deg, 0%, 5%, 90%);
|
||||
border-radius: var(--var-border-radius, 0.3rem);
|
||||
padding: 0.7rem;
|
||||
}
|
||||
|
||||
.c-tooltip-arrow {
|
||||
content: " ";
|
||||
width: 0;
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
font-size: 0;
|
||||
line-height: 0;
|
||||
border-top: 0.55rem solid transparent;
|
||||
border-right: 0.55rem solid transparent;
|
||||
border-bottom: 0.55rem solid transparent;
|
||||
border-left: 0.55rem solid transparent;
|
||||
transform: translate(-50%, -100%);
|
||||
transition-duration: 0.4s;
|
||||
}
|
||||
|
||||
.c-tooltip--top.c-tooltip-content {
|
||||
margin-top: -0.5rem;
|
||||
}
|
||||
|
||||
.c-tooltip--top.c-tooltip-arrow {
|
||||
border-top: 0.55rem solid hsla(0deg, 0%, 5%, 90%);
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.c-tooltip--bottom.c-tooltip-content {
|
||||
margin-bottom: -0.5rem;
|
||||
}
|
||||
|
||||
.c-tooltip--bottom.c-tooltip-arrow {
|
||||
border-top: 0;
|
||||
border-bottom: 0.55rem solid hsla(0deg, 0%, 5%, 90%);
|
||||
}
|
||||
|
||||
.c-tooltip--right.c-tooltip-content {
|
||||
margin-right: -0.5rem;
|
||||
}
|
||||
|
||||
.c-tooltip--right.c-tooltip-arrow {
|
||||
border-right: 0.55rem solid hsla(0deg, 0%, 5%, 90%);
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.c-tooltip--left.c-tooltip-content {
|
||||
margin-left: -0.5rem;
|
||||
}
|
||||
|
||||
.c-tooltip--left.c-tooltip-arrow {
|
||||
border-right: 0;
|
||||
border-left: 0.55rem solid hsla(0deg, 0%, 5%, 90%);
|
||||
}
|
||||
|
||||
.c-tooltip-show {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* #endregion CustomizeableTooltip */
|
||||
|
||||
/* #region TT shop */
|
||||
|
||||
.time-theorem-buttons {
|
||||
@ -5974,23 +6057,44 @@ kbd {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.c-teresa-unlock-description {
|
||||
.c-teresa-unlock-description--hover-area {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 3rem;
|
||||
position: absolute;
|
||||
align-items: center;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.c-teresa-unlock-description {
|
||||
width: 14rem;
|
||||
font-size: 1rem;
|
||||
color: var(--color-teresa--base);
|
||||
background-color: var(--color-teresa--accent);
|
||||
border: 0.1rem solid var(--color-teresa--base);
|
||||
}
|
||||
|
||||
.c-teresa-unlock-description--unlocked {
|
||||
color: var(--color-teresa--accent);
|
||||
background-color: var(--color-teresa--base);
|
||||
}
|
||||
|
||||
.c-teresa-milestone-line {
|
||||
width: 100%;
|
||||
height: 0.2rem;
|
||||
background-color: var(--color-teresa--base);
|
||||
animation: a-teresa-unfinished-milestone-flash 2s infinite;
|
||||
}
|
||||
|
||||
.c-teresa-milestone-line--attained {
|
||||
background-color: rgba(0, 0, 0, 50%);
|
||||
@keyframes a-teresa-unfinished-milestone-flash {
|
||||
0% { opacity: 0.8; }
|
||||
20% { opacity: 0.8; }
|
||||
50% { opacity: 0.3; }
|
||||
80% { opacity: 0.8; }
|
||||
100% { opacity: 0.8; }
|
||||
}
|
||||
|
||||
.c-teresa-milestone-line--unlocked {
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.o-teresa-quotes {
|
||||
|
@ -36,7 +36,12 @@ export default {
|
||||
default: ""
|
||||
},
|
||||
contentClass: {
|
||||
type: String,
|
||||
type: [Object, String],
|
||||
required: false,
|
||||
default: ""
|
||||
},
|
||||
tooltipClass: {
|
||||
type: [Object, String],
|
||||
required: false,
|
||||
default: ""
|
||||
},
|
||||
@ -114,7 +119,7 @@ export default {
|
||||
</div>
|
||||
<div
|
||||
class="c-tooltip-content"
|
||||
:class=" {'c-tooltip-show': showTooltip, [tooltipType]: true } "
|
||||
:class="[{'c-tooltip-show': showTooltip, [tooltipType]: true }, tooltipClass]"
|
||||
:style="[tooltipContentStyle, positionStyle, { transform: tooltipTransform }]"
|
||||
>
|
||||
<slot name="tooltipContent" />
|
||||
@ -137,82 +142,5 @@ export default {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.c-tooltip-content,
|
||||
.c-tooltip-arrow {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
transition: 0.4s linear;
|
||||
transition-property: opacity, visibility;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.c-tooltip-content {
|
||||
content: attr(ach-tooltip);
|
||||
width: 16rem;
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
text-align: center;
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.2;
|
||||
color: #ffffff;
|
||||
background-color: hsla(0deg, 0%, 5%, 90%);
|
||||
border-radius: var(--var-border-radius, 0.3rem);
|
||||
padding: 0.7rem;
|
||||
}
|
||||
|
||||
.c-tooltip-arrow {
|
||||
content: " ";
|
||||
width: 0;
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
font-size: 0;
|
||||
line-height: 0;
|
||||
border-top: 0.55rem solid transparent;
|
||||
border-right: 0.55rem solid transparent;
|
||||
border-bottom: 0.55rem solid transparent;
|
||||
border-left: 0.55rem solid transparent;
|
||||
transform: translate(-50%, -100%);
|
||||
transition-duration: 0.4s;
|
||||
}
|
||||
|
||||
.c-tooltip--top.c-tooltip-content {
|
||||
margin-top: -0.5rem;
|
||||
}
|
||||
|
||||
.c-tooltip--top.c-tooltip-arrow {
|
||||
border-top: 0.55rem solid hsla(0deg, 0%, 5%, 90%);
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.c-tooltip--bottom.c-tooltip-content {
|
||||
margin-bottom: -0.5rem;
|
||||
}
|
||||
|
||||
.c-tooltip--bottom.c-tooltip-arrow {
|
||||
border-top: 0;
|
||||
border-bottom: 0.55rem solid hsla(0deg, 0%, 5%, 90%);
|
||||
}
|
||||
|
||||
.c-tooltip--right.c-tooltip-content {
|
||||
margin-right: -0.5rem;
|
||||
}
|
||||
|
||||
.c-tooltip--right.c-tooltip-arrow {
|
||||
border-right: 0.55rem solid hsla(0deg, 0%, 5%, 90%);
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.c-tooltip--left.c-tooltip-content {
|
||||
margin-left: -0.5rem;
|
||||
}
|
||||
|
||||
.c-tooltip--left.c-tooltip-arrow {
|
||||
border-right: 0;
|
||||
border-left: 0.55rem solid hsla(0deg, 0%, 5%, 90%);
|
||||
}
|
||||
|
||||
.c-tooltip-show {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
/* c-tooltip-content styles in styles.css to make way for custom class colour styling */
|
||||
</style>
|
||||
|
@ -118,14 +118,10 @@ export default {
|
||||
hasUnlock(unlockInfo) {
|
||||
return unlockInfo.isUnlocked;
|
||||
},
|
||||
unlockInfoTooltipContentStyle(unlockInfo) {
|
||||
const hasInfo = this.hasUnlock(unlockInfo);
|
||||
unlockInfoTooltipClass(unlockInfo) {
|
||||
return {
|
||||
border: "0.1rem solid var(--color-teresa--base)",
|
||||
backgroundColor: hasInfo ? "var(--color-teresa--base)" : "var(--color-teresa--accent)",
|
||||
fontSize: "1rem",
|
||||
color: hasInfo ? "black" : "var(--color-teresa--base)",
|
||||
width: "14rem"
|
||||
"c-teresa-unlock-description": true,
|
||||
"c-teresa-unlock-description--unlocked": this.hasUnlock(unlockInfo)
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -213,20 +209,19 @@ export default {
|
||||
</div>
|
||||
<CustomizeableTooltip
|
||||
v-for="unlockInfo in unlockInfos"
|
||||
:id="unlockInfo.id"
|
||||
:key="unlockInfo.id"
|
||||
content-class="c-teresa-unlock-description"
|
||||
content-class="c-teresa-unlock-description--hover-area"
|
||||
:bottom="unlockDescriptionHeight(unlockInfo)"
|
||||
right="0"
|
||||
mode="right"
|
||||
:show="true"
|
||||
:tooltip-arrow-style="unlockInfoTooltipArrowStyle"
|
||||
:tooltip-content-style="unlockInfoTooltipContentStyle(unlockInfo)"
|
||||
:tooltip-class="unlockInfoTooltipClass(unlockInfo)"
|
||||
>
|
||||
<template #mainContent>
|
||||
<div
|
||||
class="c-teresa-milestone-line"
|
||||
:class="{ 'c-teresa-milestone-line--attained': hasUnlock(unlockInfo) }"
|
||||
:class="{ 'c-teresa-milestone-line--unlocked': hasUnlock(unlockInfo) }"
|
||||
/>
|
||||
</template>
|
||||
<template #tooltipContent>
|
||||
|
Loading…
Reference in New Issue
Block a user