mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-02-16 09:31:43 +00:00
Style refinements
This commit is contained in:
parent
1871fe8f60
commit
5919f1a579
10 changed files with 70 additions and 30 deletions
5
package-lock.json
generated
5
package-lock.json
generated
|
@ -1090,6 +1090,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@fontsource/great-vibes": {
|
||||||
|
"version": "4.5.10",
|
||||||
|
"resolved": "https://registry.npmjs.org/@fontsource/great-vibes/-/great-vibes-4.5.10.tgz",
|
||||||
|
"integrity": "sha512-ABrgq127wEex95tVBpa6zAjKDeBzq+c2eHw2qDs/V/Iw+Agp/NHO6I5AWv0iDkWHoboVfckmrDbKO+gchMo0cw=="
|
||||||
|
},
|
||||||
"@fontsource/material-icons": {
|
"@fontsource/material-icons": {
|
||||||
"version": "4.5.4",
|
"version": "4.5.4",
|
||||||
"resolved": "https://registry.npmjs.org/@fontsource/material-icons/-/material-icons-4.5.4.tgz",
|
"resolved": "https://registry.npmjs.org/@fontsource/material-icons/-/material-icons-4.5.4.tgz",
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
"serve": "vite preview --host"
|
"serve": "vite preview --host"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@fontsource/great-vibes": "^4.5.10",
|
||||||
"@fontsource/material-icons": "^4.5.4",
|
"@fontsource/material-icons": "^4.5.4",
|
||||||
"@fontsource/roboto-mono": "^4.5.8",
|
"@fontsource/roboto-mono": "^4.5.8",
|
||||||
"@pixi/app": "~6.3.2",
|
"@pixi/app": "~6.3.2",
|
||||||
|
|
|
@ -24,6 +24,7 @@ import themes from "./data/themes";
|
||||||
import settings, { gameComponents } from "./game/settings";
|
import settings, { gameComponents } from "./game/settings";
|
||||||
import "./main.css";
|
import "./main.css";
|
||||||
import "@fontsource/roboto-mono";
|
import "@fontsource/roboto-mono";
|
||||||
|
import "@fontsource/great-vibes";
|
||||||
import type { CSSProperties } from "vue";
|
import type { CSSProperties } from "vue";
|
||||||
|
|
||||||
const useHeader = projInfo.useHeader;
|
const useHeader = projInfo.useHeader;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<Modal v-model="isOpen">
|
<Modal class="info-modal" v-model="isOpen">
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<div class="info-modal-header">
|
<div class="info-modal-header">
|
||||||
<img class="info-modal-logo" v-if="logo" :src="logo" :alt="title" />
|
<img class="info-modal-logo" v-if="logo" :src="logo" :alt="title" />
|
||||||
<div class="info-modal-title">
|
<div class="info-modal-title">
|
||||||
<h2>{{ title }}</h2>
|
<h2>- {{ title }} -</h2>
|
||||||
<h4>
|
<h4>
|
||||||
v{{ versionNumber }}<span v-if="versionTitle">: {{ versionTitle }}</span>
|
- v{{ versionNumber }}<span v-if="versionTitle">: {{ versionTitle }}</span> -
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -95,6 +95,12 @@ function openChangelog() {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.info-modal .modal-header {
|
||||||
|
font-family: unset;
|
||||||
|
font-weight: unset;
|
||||||
|
font-size: unset;
|
||||||
|
margin-top: unset;
|
||||||
|
}
|
||||||
.info-modal-header {
|
.info-modal-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: -20px;
|
margin: -20px;
|
||||||
|
@ -114,9 +120,17 @@ function openChangelog() {
|
||||||
|
|
||||||
.info-modal-title {
|
.info-modal-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-grow: 1;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
margin-left: 10px;
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-modal-title h2 {
|
||||||
|
font-family: "Great Vibes", cursive;
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 64px;
|
||||||
|
margin-top: -40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-modal-discord-link {
|
.info-modal-discord-link {
|
||||||
|
|
|
@ -88,9 +88,10 @@ defineExpose({ isOpen, nodes });
|
||||||
.modal-container {
|
.modal-container {
|
||||||
width: 640px;
|
width: 640px;
|
||||||
max-width: 95vw;
|
max-width: 95vw;
|
||||||
max-height: 95vh;
|
max-height: calc(95vh - 20px);
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
margin-top: 20px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
@ -102,6 +103,13 @@ defineExpose({ isOpen, nodes });
|
||||||
|
|
||||||
.modal-header {
|
.modal-header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin-top: -50px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.modal-header > h2 {
|
||||||
|
font-family: "Great Vibes", cursive;
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 64px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-body {
|
.modal-body {
|
||||||
|
|
|
@ -168,7 +168,8 @@ function openDiscord() {
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 36px;
|
font-family: "Great Vibes", cursive;
|
||||||
|
font-size: 46px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
cursor: unset;
|
cursor: unset;
|
||||||
|
@ -177,6 +178,7 @@ function openDiscord() {
|
||||||
.nav > .title {
|
.nav > .title {
|
||||||
width: unset;
|
width: unset;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
|
padding-right: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<Modal v-model="isOpen">
|
<Modal v-model="isOpen">
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<div class="header">
|
<h2>Options</h2>
|
||||||
<h2>Options</h2>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body>
|
<template v-slot:body>
|
||||||
<Select title="Theme" :options="themes" v-model="theme" />
|
<Select title="Theme" :options="themes" v-model="theme" />
|
||||||
|
@ -77,9 +75,6 @@ const progressMethodTitle = jsx(() => (
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.header {
|
|
||||||
margin-bottom: -10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
*:deep() .tooltip-container {
|
*:deep() .tooltip-container {
|
||||||
display: inline;
|
display: inline;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
.modifier-container {
|
.modifier-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
padding: 1px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modifier-container:nth-child(2n) {
|
.modifier-container:nth-child(2n) {
|
||||||
|
@ -9,6 +10,7 @@
|
||||||
.modifier-amount {
|
.modifier-amount {
|
||||||
flex-basis: 100px;
|
flex-basis: 100px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modifier-description {
|
.modifier-description {
|
||||||
|
|
|
@ -308,13 +308,13 @@ export function createCollapsibleModifierSections(
|
||||||
const modifiers = unref(collapsed.value[i]) ? null : (
|
const modifiers = unref(collapsed.value[i]) ? null : (
|
||||||
<>
|
<>
|
||||||
<div class="modifier-container">
|
<div class="modifier-container">
|
||||||
|
<span class="modifier-description">
|
||||||
|
{renderJSX(unref(processed.baseText[i]) ?? "Base")}
|
||||||
|
</span>
|
||||||
<span class="modifier-amount">
|
<span class="modifier-amount">
|
||||||
{format(unref(processed.base[i]) ?? 1)}
|
{format(unref(processed.base[i]) ?? 1)}
|
||||||
{s.unit}
|
{s.unit}
|
||||||
</span>
|
</span>
|
||||||
<span class="modifier-description">
|
|
||||||
{renderJSX(unref(processed.baseText[i]) ?? "Base")}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
{renderJSX(unref(s.modifier.description))}
|
{renderJSX(unref(s.modifier.description))}
|
||||||
</>
|
</>
|
||||||
|
@ -331,8 +331,15 @@ export function createCollapsibleModifierSections(
|
||||||
<br />
|
<br />
|
||||||
{modifiers}
|
{modifiers}
|
||||||
<hr />
|
<hr />
|
||||||
Total: {format(s.modifier.apply(unref(processed.base[i]) ?? 1))}
|
<div class="modifier-container">
|
||||||
{s.unit}
|
<span class="modifier-description">
|
||||||
|
Total
|
||||||
|
</span>
|
||||||
|
<span class="modifier-amount">
|
||||||
|
{format(s.modifier.apply(unref(processed.base[i]) ?? 1))}
|
||||||
|
{s.unit}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
@ -77,16 +77,16 @@ export function createAdditiveModifier<T extends AdditiveModifierOptions>(
|
||||||
? undefined
|
? undefined
|
||||||
: jsx(() => (
|
: jsx(() => (
|
||||||
<div class="modifier-container">
|
<div class="modifier-container">
|
||||||
<span class="modifier-amount">
|
|
||||||
{Decimal.gte(unref(processedAddend), 0) ? "+" : ""}
|
|
||||||
{format(unref(processedAddend))}
|
|
||||||
</span>
|
|
||||||
{unref(processedDescription) ? (
|
{unref(processedDescription) ? (
|
||||||
<span class="modifier-description">
|
<span class="modifier-description">
|
||||||
{/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
|
{/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
|
||||||
{renderJSX(unref(processedDescription)!)}
|
{renderJSX(unref(processedDescription)!)}
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
|
<span class="modifier-amount">
|
||||||
|
{Decimal.gte(unref(processedAddend), 0) ? "+" : ""}
|
||||||
|
{format(unref(processedAddend))}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
))
|
))
|
||||||
};
|
};
|
||||||
|
@ -125,15 +125,15 @@ export function createMultiplicativeModifier<T extends MultiplicativeModifierOpt
|
||||||
? undefined
|
? undefined
|
||||||
: jsx(() => (
|
: jsx(() => (
|
||||||
<div class="modifier-container">
|
<div class="modifier-container">
|
||||||
<span class="modifier-amount">
|
|
||||||
x{format(unref(processedMultiplier))}
|
|
||||||
</span>
|
|
||||||
{unref(processedDescription) ? (
|
{unref(processedDescription) ? (
|
||||||
<span class="modifier-description">
|
<span class="modifier-description">
|
||||||
{/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
|
{/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
|
||||||
{renderJSX(unref(processedDescription)!)}
|
{renderJSX(unref(processedDescription)!)}
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
|
<span class="modifier-amount">
|
||||||
|
×{format(unref(processedMultiplier))}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
))
|
))
|
||||||
};
|
};
|
||||||
|
@ -194,9 +194,6 @@ export function createExponentialModifier<T extends ExponentialModifierOptions>(
|
||||||
? undefined
|
? undefined
|
||||||
: jsx(() => (
|
: jsx(() => (
|
||||||
<div class="modifier-container">
|
<div class="modifier-container">
|
||||||
<span class="modifier-amount">
|
|
||||||
^{format(unref(processedExponent))}
|
|
||||||
</span>
|
|
||||||
{unref(processedDescription) ? (
|
{unref(processedDescription) ? (
|
||||||
<span class="modifier-description">
|
<span class="modifier-description">
|
||||||
{/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
|
{/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
|
||||||
|
@ -204,6 +201,9 @@ export function createExponentialModifier<T extends ExponentialModifierOptions>(
|
||||||
{supportLowNumbers ? " (+1 effective)" : null}
|
{supportLowNumbers ? " (+1 effective)" : null}
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
|
<span class="modifier-amount">
|
||||||
|
^{format(unref(processedExponent))}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
))
|
))
|
||||||
};
|
};
|
||||||
|
@ -279,16 +279,21 @@ export function createModifierSection(
|
||||||
</h3>
|
</h3>
|
||||||
<br />
|
<br />
|
||||||
<div class="modifier-container">
|
<div class="modifier-container">
|
||||||
|
<span class="modifier-description">{renderJSX(baseText)}</span>
|
||||||
<span class="modifier-amount">
|
<span class="modifier-amount">
|
||||||
{format(base)}
|
{format(base)}
|
||||||
{unit}
|
{unit}
|
||||||
</span>
|
</span>
|
||||||
<span class="modifier-description">{renderJSX(baseText)}</span>
|
|
||||||
</div>
|
</div>
|
||||||
{renderJSX(unref(modifier.description))}
|
{renderJSX(unref(modifier.description))}
|
||||||
<hr />
|
<hr />
|
||||||
Total: {format(modifier.apply(base))}
|
<div class="modifier-container">
|
||||||
{unit}
|
<span class="modifier-description">Total</span>
|
||||||
|
<span class="modifier-amount">
|
||||||
|
{format(modifier.apply(base))}
|
||||||
|
{unit}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue