-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding style tweak to make the new resource summary more compact. Add…
…ing PSH world 9 data.
- Loading branch information
Numbers
committed
Jan 25, 2023
1 parent
532edb5
commit d62697e
Showing
16 changed files
with
198 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import STModule from '../STModule' | ||
import Helpers from '../../common/Helpers' | ||
import I18n from '../../i18n' | ||
|
||
import styles from './styles.lazy.scss' | ||
|
||
const MODULE_KEY = 'compactResourceSummary' | ||
|
||
class CompactResourceSummaryStyleTweak extends STModule { | ||
constructor () { | ||
const configSchema = ({ | ||
baseKey: MODULE_KEY, | ||
label: I18n.getModuleLabel('stConfig', MODULE_KEY), | ||
default: true | ||
}) | ||
super({ | ||
configSchema, | ||
styles | ||
}) | ||
} | ||
|
||
shouldRun () { | ||
return true | ||
} | ||
|
||
run (props) { | ||
super.run(props) | ||
|
||
Helpers.defer(() => { | ||
// window.number_reduce = (n) => I18n.nThousand(+n) | ||
}) | ||
} | ||
} | ||
|
||
export default CompactResourceSummaryStyleTweak |
50 changes: 50 additions & 0 deletions
50
src/modules/CompactResourceSummaryStyleTweak/styles.lazy.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#hero_resources_popup { | ||
.hero-resources-container { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; | ||
grid-gap: 0.5rem 3rem; | ||
|
||
.hero-energies-container, | ||
.hero-gems-container, | ||
.hero-orbs-container { | ||
grid-column-start: 1; | ||
grid-column-end: 9; | ||
} | ||
|
||
.hero-currencies-container { | ||
grid-column-start: 1; | ||
grid-column-end: 6; | ||
} | ||
|
||
.hero-progressions-container { | ||
grid-column-start: 6; | ||
grid-column-end: 9; | ||
grid-row-start: 2; | ||
grid-row-end: 2; | ||
} | ||
|
||
.hero-currencies-container > div .hero-currency, | ||
.hero-gems-container > div .hero-gem, | ||
.hero-orbs-container > div .hero-orb, | ||
.hero-progressions-container > div .hero-progression { | ||
height: 2.5rem; | ||
width: 6rem; | ||
padding: 0; | ||
} | ||
|
||
.hero-energies-container > div.hero-energies .hero-energy { | ||
margin-bottom: 0.5rem; | ||
} | ||
|
||
.hero-currencies-container > div, | ||
.hero-gems-container > div, | ||
.hero-orbs-container > div, | ||
.hero-progressions-container > div { | ||
justify-content: space-between; | ||
} | ||
|
||
#hero_resources_popup .hero-resources-container .hero-energies-container > div.hero-energies { | ||
padding-top: 0.5rem; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters