Overlay hiding stars
Hey y'all! I've run into a general CSS/design problem that I'm kinda stumped on solving. In the image the red circles are highlighting the star(s) in the constellation that are overlaid by my absolute positioned elements and therefore are uninteractable without stretching to some insane dimensions. Any suggestions?
I've thought about maybe adding a margin to the image but that just makes the scrolling even worse :(
DT
Daniel Thorp•1,007d ago
Maybe add a hover zone near the top that makes the overlay appear temporarily? It could fade out after a few seconds if not interacted with.
E
Ethck•1,007d ago
So it's not very intuitive but the "Boons spent on Other" line also has a hover listener. Any idea if you can have nested hovers like that?
Additionally, I just thought about what if there was a button that collapsed/expanded it? Would that work?
DT
Daniel Thorp•1,007d ago
Yeah, I think you can
Yes, I think it would also work
LTL
Leo The League Lion•1,007d ago
@arcanistzed gave LeaguePoints™ to @ethck (#19 • 90)
DT
Daniel Thorp•1,007d ago
Unrelated, but I think you should add some padding to the left part of the overlay
E
Ethck•1,007d ago
Hmm, well those are certainly some ideas to work with then. Thanks @arcanistzed !
LTL
Leo The League Lion•1,007d ago
@ethck gave LeaguePoints™ to @arcanistzed (#16 • 127)
E
Ethck•1,007d ago
CSS is not my strong suit lol
E
Ethck•1,007d ago
Do you mean for the text?
E
Ethck•1,007d ago
here's a better picture of that
It's inside of a tidy5e sheet
DT
Daniel Thorp•1,007d ago
I mean the entire box which has all of those labels and input fields
E
Ethck•1,007d ago
Even more padding???
DT
Daniel Thorp•1,007d ago
Just around this part, yes
E
Ethck•1,007d ago
Wait, padding for the inside of the box or on the outside?
DT
Daniel Thorp•1,007d ago
Padding is on the inside; margin is on the outside
E
Ethck•1,007d ago
🤦
E
Ethck•1,007d ago
With 5px? Is that good or do you recommend more?
DT
Daniel Thorp•1,007d ago
It's good like that, but you should probably avoid using fixed values.
I usually use
em
, vh
, vw
, or just a percentage.
Try 1%
for padding, maybe?
It lets it be more dynamic when you use it on different sized screens or when resizing the window
Keep in mind that I'm also not a CSS expert, having just started development in generalE
Ethck•1,007d ago
1%
E
Ethck•1,007d ago
So it looks like either way I'm going I need to make a collapsible field for this. Any advice on making things collapse? Most collapsing I've done was with summary and details lol
DT
Daniel Thorp•1,007d ago
Yeah, that works well.
Maybe try something like this, if you want a simple alternative https://github.com/arcanistzed/toggle-banner/blob/main/scripts/module.js
The scaling and transition in the CSS make it much more dynamic https://github.com/arcanistzed/toggle-banner/blob/main/styles/module.css
E
Ethck•1,007d ago
Seems simple enough. Your "commands" if you will are based on the logo, what would you recommend for my use case? Add small button to display it?
C
Clemente•1,007d ago
You can't add that info on its own panel outside the image frame?
E
Ethck•1,007d ago
I'm not entirely sure what you mean... I'll post a more full picture for reference though
(ignore the health value lol)
C
Clemente•1,007d ago
I meant something like this
E
Ethck•1,007d ago
Ooooh, I like that... Let me see if I can pull it off easily.
Oh man, that's so much easier! Thanks @mclemente !
LTL
Leo The League Lion•1,007d ago
@ethck gave LeaguePoints™ to @mclemente (#48 • 32)
C
Clemente•1,007d ago
btw, that's the Constellation idea that's been on the Trello board, right?
are you using Cytoscape by any chance?
E
Ethck•1,007d ago
Recommendations? Definitely need to change the colors but I'm still thinking it might be cool to do the collapsing section.
E
Ethck•1,007d ago
No, this was actually for a commission. No clue what Cytoscape is.
C
Clemente•1,007d ago
Cytoscape is lib for graphs like that (https://js.cytoscape.org/), but if you managed to do it without it, you're probably fine lol
it's just that I found it being used on Foundry on Moerill's Mindmap module (RIP)
E
Ethck•1,007d ago
Hmm, flexrow isn't what I was looking for apparently. I want the big section to be left aligned but the right section (level, cost) to be aligned to the right, just like in the original. Any ideas?
This makes me wish I had found it sooner... I've done crude approximations based on percentages...
C
Clemente•1,007d ago
does
<details><summary>Info</summary> CONTENT HERE </details>
work on that sheet?DT
Daniel Thorp•1,007d ago
E
Ethck•1,007d ago
Turns out details/summary makes that trivial...
E
Ethck•1,007d ago
changed the color to make it visible while messing with it, but align-items: end gets closer.
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
So the big box on the left should be on the left (basically where it is) and the Level/Cost should be on the right and it should be tiny (like 15% width)
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
Man, I wish I could do CSS while still waking up 🤣
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
Can it do Chrome & Firefox?
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
Awesome!
E
Ethck•1,007d ago
And Voila!
E
Ethck•1,007d ago
Thanks tons @nekrodarkmoon ! Now I just need to find color choices...
LTL
Leo The League Lion•1,007d ago
@ethck gave LeaguePoints™ to @nekrodarkmoon (#22 • 75)
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
Wait, the right side or the left side?
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
E
Ethck•1,007d ago
Okay, just making sure lol
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
You never really know with the dark magic that is CSS...
I swear I've built data pipelines for billions of records in less time than it took me to solve this lol
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
With the collapsing?
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
I had it that way originally, but no collapsing :(
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
Close, but not what I intended lol
E
Ethck•1,007d ago
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
I semi reverted back to position absolute and got this :)
Yeah, idk why that happened
🤷
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
E
Ethck•1,007d ago
So, here's a bit of a code dump but maybe you can help me figure out that last row...
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
Man, there's just so much here that I don't know...
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
So I've determined it's not because of the row itself, but rather probably the container. Each row is exactly 26px tall.
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
oh
I'm dumb
It's the 1% padding I put in on every side
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
It's changing the size of the box it's all in, yes.
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
?
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
Honestly I don't even know where that highlight is coming from lol
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
Oh, found it
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
Oh, and it definitely is because of that
For this table specifically?
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
It's pretty general except for the fact that I'm forced to use some other classes (that I didn't really need except for some selectors...)
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
It's ugly af
The commission was very specific and wanted me to use tidy5e's popout structure for some of the additional details, and that requires it to have a very nested selector chain :(
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
So the issue here is that the "other boons" has the
item
class... which sets the background and center aligns (via flex!)UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
I don't understand the black magic
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
And voila!
UU
Unknown User•1,007d ago
E
Ethck•1,007d ago
Yeah, I'm sure there are.
Thanks so much @arcanistzed @mclemente and @nekrodarkmoon for your input and expertise!
LTL
Leo The League Lion•1,007d ago
@ethck gave LeaguePoints™ to @arcanistzed (#15 • 129), @mclemente (#45 • 34), and @nekrodarkmoon (#21 • 76)
UU
Unknown User•1,007d ago
DT
Daniel Thorp•1,007d ago
Cheating is bad 🤌
UU
Unknown User•1,007d ago
DT
Daniel Thorp•1,007d ago
It moves other elements around too and it looks weird
DT
Daniel Thorp•1,007d ago
slowmo
UU
Unknown User•1,007d ago
DT
Daniel Thorp•1,007d ago
It's good practice to not use JQuery tho
UU
Unknown User•1,007d ago
C
Clemente•1,007d ago
Same energy:
DT
Daniel Thorp•1,007d ago
That doesn't jump at least
Want results from more Discord servers?
More PostsToDontThingswe should have threaded a long time ago I think, whoopsLayer Manipulationpresumably a module doing this would execute on canvasReady or something for every client right?Document TimestampsIs there a way to find the timestamp of the last edit made to a Document?License Property@ghost @flamewave000 @corporat @kakaroto
But if we do want to talk Manifest+, we should do that oveTemporary DocumentsIs there a built-in way to create temporary entities? Like entities wich are not stored in the databLogin Via POSTlook at your network tab when you click the join button, you'll see the POST with the data it sends,Crit confirm change targetLooks like Fury merged the thing already, so whatever you do would no longer be relevant for the MR.Actor Sheet ChangesActor Sheet changes:
-**NPC, Character**: `systems/dnd5e/templates/actors/parts/actor-warnings.html`Dors projectTo be clear, I'm very open to the feedback that I'm doing something stupid here, hah. This is my firAC MigrationsAs of 1.4.1 there are two migration scripts for AC related changes:
1. The standard Migration Scrip