Commit Graph
53980 Commits
Author SHA1 Message Date
Edgeworth E 4cdc083af4 narrow textarea elements
Most were going past the edge of nearby elements; I thought it
was due to scrollbars adding width to the element, but it kinda
seems like it's just not lining things up properly, possibly due
to wrapping divs in some spots.

This makes things line up in Chrome currently, though I suspect
it won't look good in Firefox, so will likely need some more work
in the future.
2023-02-15 08:04:27 -08:00
Edgeworth E e9dcb9b593 add alternate fonts for logo
They don't look good, but at least they get closer to the
intended font in case something goes wonky in the Roll20-provided
fonts.
2023-02-14 07:51:21 -08:00
Edgeworth E 54ce630adc move +Add and Modify buttons back to margins
When we switched to grid, the buttons went from sitting at left
and right margins to being bunched up in the first column.
repcontrol class doesn't seem to be defined anywhere, so fine to
create our own, and then we basically copy the fullwide class to
stretch across the entire page.

I'm not sure I like the solution currently given how much blank
space it leaves between the buttons and between elements above
and below, but maybe I just need to remove the <hr> elements to
get that feeling better.
2023-02-14 03:46:28 -08:00
Edgeworth E c09468b276 improve button balance
This fixes the issue with button size in the Attributes section
while also improving the "feel" of the spacing around the button
text.

I'm not sure I have the padding balanced right since the tilted
d6 icon doesn't balance well, but it's better than before.

I'd like to remove the !important, but for now it's needed to get
the changes to show up.  I'm sure there's a better fix, but
working is close enough for now.
2023-02-14 03:35:35 -08:00
Edgeworth E 8da2957879 tweak "logo" slightly
darkgrey works better as a background color on the drop-shadow
since it shows up in both light and dark modes.  I'm not sure
this is the final version, but I think I like it better than the
previous version.

Also move the overlapping text down slightly--I worry that having
it overlap too much affects legibility for "KITTIES" in the logo.
2023-02-14 03:33:49 -08:00
Edgeworth E 64f65addc7 line up with other elements
I read somewhere that it's more visually pleasing to have
elements line up with at least two other elements, so let's have
this line up with the character token at the top of the page (in
the Person section it's lining up with another element of the
same size, so less a concern there).

Also provides more room for the user input to be fully displayed
for long names like "Her Majesty Lady Monster Truck"
2023-02-13 15:21:22 -08:00
Edgeworth E 9917745b48 shift trackables to top-level grid (somewhat)
Get rid of the explicit column definitions for trackables and fix
bug with class definition starting with a number.

Removing the column definitions made the number fields move away
from each other, but I think it's clearer that they're associated
when they're closer, so adjusted margins on them to get them into
the right spot.
2023-02-13 12:42:22 -08:00
Edgeworth E 26f052f4e6 fix spacing issues in header
When resizing the character sheet, the previous "logo" would get
all scattered.  I think these changes addresses that.

Also move the token image up slightly to look better (on my
screen, at least) against the other items in the header.
2023-02-13 02:59:11 -08:00
Edgeworth E 4c42f69250 add kitty token, adjust spacing
The change to the roll button at the top of the page also affects
the Attributes roll buttons, so that'll need fixing soon, but I
really like having the character token on the actual character
sheet!

I did ponder whether it should be the avatar instead.  It
probably should.  I'll come back to that at some point.
2023-02-11 22:34:03 -08:00
Edgeworth E eb511fe43a replace header image & other small changes
I read somewhere (that I can't find right now) that images on
character sheets are less preferable, so let's try using a CSS
take on the (probably copyrighted) logo the sheet originally had.

This allows us to have a smaller logo, which puts more sheet
content above-the-fold, and also allows us to move (and rename)
the extra-dice-rolls button for even more content above-the-fold.

I read somewhere else that pure black isn't recommended for dark
mode, so let's shift to a slightly-less-dark color for the dark
mode background.  This also brings the textarea backgrounds more
into line with the slight difference between their background and
the sheet background in non-darkmode.
2023-02-11 15:38:59 -08:00
Edgeworth E 0f86131efe remove unused items
I think these are all unused now, so let's de-clutter
2023-02-11 09:57:06 -08:00
Edgeworth E 8b71aba78c set nodisplay on empty divs
Just to be clear that they're intentionally empty.
2023-02-10 17:51:10 -08:00
Edgeworth E e9106a07ce enlarge the extra dice rolls button
Was too narrow in a single grid space with 12 columns
2023-02-10 17:44:58 -08:00
Edgeworth E fa0d0210fc unset width on flex-grow-2
It was getting a tiny px width from the base.css that kept
cutting off my Kitty's name and I WOULD NOT STAND FOR IT (except
for all the days I did because other stuff was worse)
2023-02-10 17:22:09 -08:00
Edgeworth E 2148db5419 improve spacing on trackables and limits
Switch to "Limits" instead of "Maximums" since it's a simpler
word and matches what's in the rules.  Also fits the column
better.

I'm not sure whether the LIMITS column is obviously connected to
the TRACKABLES column, but leaving that aside for now.
2023-02-10 14:04:11 -08:00
Edgeworth E 5fdf343b7d remove wrapping divs on person section
Seems to work ok with simply removing.  Also removed <br>, but
likely will want to figure out a way to increase spacing between
the sections.
2023-02-10 13:35:32 -08:00
Edgeworth E e33027be97 narrow logo image slightly
I'm not sure why, but it goes beyond the edge of the grid at
100%, so reign it in to 98%
2023-02-10 13:32:54 -08:00
Edgeworth E 8e2dca2bae move overall grid to 12 columns
I want finer-grained column spacing for the Trackables section,
so moving to 12 columns overall and shifting all elements to
roughly match their previous 6-column placement.
2023-02-10 08:55:00 -08:00
Edgeworth E 3ea7497bef move trackables for better accessibility
Previously if you tabbed through the fields here, you'd go
through each attribute, then the maximums.  I think the more
intuitive behavior would be attribute, then its maximum, then the
next attribute, so changing to achieve that.

This also allows removing a lot of the wrapping divs, so a lot of
indentation changes.  View diff with spacing changes ignored for
a better understanding of what's actually changed.

The spacing is still a little off on the Trackables section, but
it at least has better alignment with the overall grid now.
2023-02-10 08:20:27 -08:00
Edgeworth E c04bf5d976 update TODO comments 2023-02-10 07:48:54 -08:00
Edgeworth E 5ad93abf3f switch to grid formatting (work-in-progress)
I may end up reverting this since it's a bigger marshmallow than
I expected, but wanted to try a grid format since it's apparently
the preferred display style.

A lot of TODO items to address still, and am still using the
"flex" names since I haven't fully committed yet.

The bulk of the diffs in the html file are simply from changing
indentation, so look at the diff with "ignore spacing" enabled to
get a better idea of what's changed.

In the html file the changes are mainly removing divs since we
can rely on the grid for element placement and horizontal sizing.
Also switched from span to div in some spots since the elements
seem better-described as divs than spans in the context.

The Trackables section will be a little more complicated, and is
the main reason I'm committing this work-in-progress.  I kind of
want to make it a table, but let's try it as a grid first and see
how it goes.
2023-02-10 07:37:35 -08:00
Edgeworth E 6e9e8871b9 remove <br> in hopes of using padding
Trying to move away from using <br> for vertical spacing, so
trying it out with the logo first.
2023-02-08 12:30:58 -08:00
Edgeworth E 50aa78c218 line text field up with other text fields
This was previously out of line with other text fields in the
sheet; this moves it in some, but feels a little hacky as a way
to achieve it.  I hope to revisit at some point and get it in
line in a better way.

The main challenge seems to be that other text areas are part of
repeating fieldsets, so they're wrapped in multiple elements,
while this particular text field is non-repeating.
2023-02-08 07:32:55 -08:00
Edgeworth E 70bc23ac15 increase line height
Text was feeling a little too smooshed, so let's increase to
match other text fields in the sheet
2023-02-08 07:32:03 -08:00
Edgeworth E cc50b609ed adjust spacing & remove old comment
Making indentation and extra newlines consistent throughout, and
removing one comment that seems to no longer be relevant.
2023-02-07 08:16:45 -08:00
Edgeworth E 2089e41d31 adjust spacing, attrs div to fullwide
Various spots where spaces or newlines were too many or too few,
fixed those up.

Also the wrapping div around Attributes section shifted to
fullwide for display purposes.
2023-02-06 18:52:31 -08:00
Edgeworth E 90a6e92a70 move to fullwide, add attr ranges, void tags
Several small changes bundled together:

- Move to fullwide for top-level elements.  I'm not sure why the
  original version of the sheet stayed so close to the left
  margin, so it's possible I'm making some horrible mistake here.
  Hopefully someone will tell me if that's the case!
- input tags are also void tags, so remove the "closing" slashes
  on those elements
- Add min and max values for Attributes since the rules say they
  should never be lower than one or higher than four (it's
  possible there are edge cases I'm missing here, though, since I
  originally set max to 3 and then found level-up rules that say
  it can go to 4--again, please correct me if I got this wrong!)
2023-02-06 18:44:11 -08:00
Edgeworth E c4482feea7 remove extra slash from void elements
Had a mix of some slashes and no slashes, and I wasn't sure which
is "best"--according to this link, though:

https://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br

...void elements shouldn't have the end slash in HTML5, so went
that direction.
2023-02-06 18:18:20 -08:00
Edgeworth E 6669652eef add very basic darkmode support
Basically copied directly from example at
https://wiki.roll20.net/Character_Sheet_Development/Dark_Mode --
it doesn't look perfect yet, but looks better than I expected
given how basic this change is.
2023-02-06 18:13:43 -08:00
Edgeworth E 45e562d38f force input-large to specific rem size
Again, not sure this should stick with rem for sizing, but that's
what I'm using here.

Also not sure how I feel about using !important; might revisit
that later to find a better way.
2023-02-06 18:11:42 -08:00
Edgeworth E 5a20734f0b move trackables to grid & no spurious spans
I toyed with making the trackables section into a table because
it's a TABLE, but apparently screen readers aren't good with that
and grids are the way to go.

Also noticed that there were a lot of h2 elements with spans
inside them when they could simply be h2 elements (at least as
far as I know), so moved them to only h2 elements for brevity.

Not sure whether this should continue using rem as a form of
measurement, but that's what I used for now.
2023-02-06 18:07:44 -08:00
Edgeworth E 4b0445083f remove more inline-block directives
Moving items to flex for now (again, might do grid in the near
future since that seems to be the recommended path these days),
and shift percentages closer to what the class names imply.
2023-02-06 17:30:26 -08:00
Edgeworth E a6b07344ea switch flexeven to row with spacing
I'm hoping to remake flexeven into a grid at some point, so will
likely end up removing, but for now let's have it display in a
row (and yes, remove "space-evenly", so maybe I should rename?)
2023-02-06 17:26:34 -08:00
Edgeworth E 4a15a38ac0 adjust text classes
A couple text-related changes here:

- pinktext class doesn't seem to be used, so remove it for
  brevity
- h1-h6 being adjusted here is affecting display on the
  Attributes & Abilities tab when using the character sheet
  sandbox, and all of those already use the other two classes, so
  let's just use the classes
- Adjust whiteonredtext to have some space from the margin to
  improve readability, and add some slightly-rounded corners to
  feel a little more approachable (though I may end up going in
  another direction with that)
2023-02-06 17:22:37 -08:00
Edgeworth E f67cf46d2f change roll buttons
50% width looks better in the new circular attributes field; not
sure yet whether that should stay for everywhere else in the
character sheet, but let's go with it for now.

I noticed that the "Roll" buttons all had d20 images on them, but
Magical Kitties Save the Day! only uses d6s, so let's switch that
as well.  I had trouble getting the solid or outline d6 icons to
look right, so added a rakish tilt and shifted the icon color to
help there.
2023-02-06 17:18:16 -08:00
Edgeworth E 4fcd93d97c adjust attributes and rename class
I'm hoping to get this looking better, but since all the
official published character sheets use circles for the
attributes, I figured this sheet should do the same.

Also noticed that the "attributes" class causes issues under the
Attributes & Abilities tab when using the character sheet
sandbox, so renaming that to kitty-attributes
2023-02-06 17:15:02 -08:00
Edgeworth E bfae275cae shift logo to header image
I'm still not sure how best to use the logo, but for now let's
make it a full header image rather than something hanging out at
the left margin.

Adding background will help with dark mode changes coming up.
2023-02-06 17:11:23 -08:00
Edgeworth E a981ff449a remove background image
The background image comes from a completely different character
sheet with a different "feel" from Magical Kitties Save the Day!,
so I'm going with a bare background for now (which will also help
with dark mode coming up soon-ish).

Also switching to flex-columns, though I may end up redoing that
as a grid instead per Roll20 doc recommendations.
2023-02-06 17:06:57 -08:00
Edgeworth E 2c5845b009 blankspace cleanup
Shifting to consistent indentation in html and css files, as well
as moving some consecutive html elements to their own separate
lines.
2023-02-06 16:47:25 -08:00
Edgeworth E a894557313 add back "legacy" setting
I'm not 100% certain this setting defaults to false, so might as
well be explicit about it (which is what most other sheet.json
files seem to do)
2023-01-28 13:52:34 -08:00
Edgeworth E acdacf0072 update Magical Kitties Save the Day! sheet
Changes included in this commit:
- Removed numbers from css that _seem_ to be unnecessary
  (possibly introduced by copy-paste from Github?)
- Initial migration to the new sanitization settings (pretty much
  entirely consists of removing the "sheet-" prefix throughout)
- Changed image header to use the image in the Roll20 repository
  since the Anduh fork no longer seems to be available to the
  public
- Swapped in internationalization strings throughout the
  character sheet html (though I'm not sure I did the placeholder
  items correctly, especially with number fields)
2023-01-28 11:36:29 -08:00
Nic Bradley 9e0f400ddb Merge pull request #11400 from brandon-solarstudios/Redsky-initialsync
Redsky: New Sheet
2023-01-23 12:01:19 -08:00
Nic Bradley 32bace6649 Merge pull request #11405 from Roll20/lineendings-012322
fixing line endings
2023-01-23 12:01:05 -08:00
Nic Bradley 75f0108588 fixing line endings 2023-01-23 11:41:58 -08:00
sheet-service 6abf755bbf update approved.yaml 2023-01-23 13:05:42 -05:00
Nic Bradley fc8c54be51 Merge pull request #11404 from Lockbox313/HeroQuestG
[HeroQuest:Glorantha] Bugfix Distinguishing Characteristic roll fix
2023-01-23 10:02:30 -08:00
Nic Bradley 5c377b4623 Merge pull request #11403 from JonnesDerik/trinitycontinuum2e
Trinity_Continuum_2ed - Update 10
2023-01-23 10:00:32 -08:00
Nic Bradley d94b30e4b7 Merge pull request #11402 from asr1/master
[Cyberrats][Bugfix] Fix default sheet option, add default values to numbers
2023-01-23 10:00:13 -08:00
Nic Bradley 1e21582232 Merge pull request #11401 from ChtiKenny/master
[Shadowbane Inquisition] Added WP option to dodge
2023-01-23 09:59:51 -08:00
Nic Bradley 6bb917bc8b Merge pull request #11399 from Jiboux/EDv3
Earthdawn (by FASA) v3.01 - Big Fixes
2023-01-23 09:59:44 -08:00