Skip to content

Commit

Permalink
Merge pull request #13055 from vince-roll20/New1eUpdates
Browse files Browse the repository at this point in the history
AD&D1e Revised
  • Loading branch information
NBrooks-Roll20 committed Jul 2, 2024
2 parents c8067d0 + 8feb602 commit f3af017
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 11 deletions.
42 changes: 41 additions & 1 deletion ADnD_1E_Revised/1ESheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -535,19 +535,58 @@
width: fit-content;
}

.charsheet .wrapper .notes-box .autoexpand {
max-width: 100%;
min-width: 12em;
}

.charsheet .wrapper .autoexpand span {
font-size: var(--text-med);
padding: 0 6px 0 6px;
visibility: hidden;
}

.charsheet .wrapper .autoexpand textarea {
display: block;
height: -webkit-fill-available;
padding: 6px;
resize: none;
white-space: break-spaces;
z-index: 1;
}

.charsheet .wrapper .autoexpand textarea:hover {
resize: none;
}

.charsheet .wrapper .autoexpand textarea + span {
display: block;
line-height: normal;
margin: auto;
max-width: 100%;
overflow: hidden;
padding: 6px;
position: relative;
white-space: break-spaces;
}

.charsheet .wrapper .autoexpand textarea,
.charsheet .wrapper .autoexpand input {
font-size: var(--text-med);
margin: auto;
position: absolute;
width: 100%;
}

.charsheet .wrapper .autoexpand:has(textarea) {
display: block;
height: fit-content;
max-width: 100%;
min-height: 6em;
min-width: 100%;
width: 100%;
}

.charsheet .wrapper .autoexpand:has(input[placeholder='Description']) {
min-width: 7em;
}
Expand Down Expand Up @@ -2569,12 +2608,13 @@ details[open].thac0-box {
.charsheet .notes-norep-columns {
align-items: center;
display: grid;
grid-template-columns: 3.5em 1fr 3fr;
grid-template-columns: 3.5em auto;
}

.charsheet .notes-columns {
display: grid;
grid-template-columns: 3.5em 1fr;
padding-right: 5px;
}

.charsheet .notes-box input {
Expand Down
34 changes: 24 additions & 10 deletions ADnD_1E_Revised/1ESheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ <h5 class="right two-columns">
<span class="left">
<span>v.<span name="attr_sheet_version">
</span>
<span class="right">6/26/24'</span>
<span class="right">6/27/24'</span>
</h5>
<ul>
<li>Updated History/Bio textarea to auto-expand to match it's content.</li>
<li>Updated PC Notes so that the first non-repeating textarea box will auto-expand to match it's content.</li>
<li>Fixed NWP not being hidden by default.</li>
<li>Fixed Climb Walls calculation.</li>
<li>Reminder: nearly all the per-sheet options can also be set from the Games Settings page so that all new sheets will start with your default options. These settings will apply only to new characters moving forward. If you would also like to apply these settings to all existing characters in the game follow the wiki instructions:<span class="inline-label"><button type="roll" class="url-roll" title="Post this link to chat." value="[Roll20 Wiki Link](https://wiki.roll20.net/Game_Settings_Page#Applying_Setting_Defaults_to_Existing_Content_In-Game)"><span>Applying Setting Defaults to Existing Content</span></button></span></li>
Expand Down Expand Up @@ -1507,7 +1509,12 @@ <h5>Older Updates...</h5>
<span class="details-row3">
<input type="checkbox" class="sect-show" name="attr_character-description_show" value="1" checked />
<span class="subheader">Character History/Bio</span><span class="material-icons"></span>
<textarea class="sect height-half" name="attr_character_description" title="@{character_description}" placeholder="Enter Character Description..."></textarea>
<span class="sect">
<span class="autoexpand">
<textarea name="attr_character_description" title="@{character_description}" placeholder="Enter Character Description..."></textarea>
<span name="attr_character_description"></span>
</span>
</span>
</span>
</div>
<hr>
Expand Down Expand Up @@ -4470,23 +4477,30 @@ <h4>Level:</h4>
<input type="checkbox" class="sect-show" name="attr_notes_info_show" value="1" />
<div class="header">NOTES</div><span class="material-icons"></span>
<div class="sect">
<label class="left">
<span>Single Column</span>
<input type="checkbox" class="toggle-single-column-notes" name="attr_toggle_single_column_notes" title="@{toggle_single_column_notes}" value="1" checked />
</label>
<span class="notes-norep-columns">
<button class="dice-button" type="roll" name="attr_note_roll" title="%{note_roll}" value="@{whisper_pc} &{template:general} {{color=@{color_option}}} {{name=@{character_name}}} {{subtag=@{note_name}}} {{freetext=@{notes}}}"></button>
<label>
<span class="autoexpand">
<input type="text" name="attr_note_name" title="@{note_name}" value="" placeholder="Note Name" />
</label>
<textarea class="height-short" name="attr_notes" title="@{notes}" placeholder="Misc Notes"></textarea>
<span name="attr_note_name"></span>
</span>
<span class="autoexpand span-two">
<textarea class="height-fill" name="attr_notes" title="@{notes}" placeholder="Misc Notes"></textarea>
<span name="attr_notes"></span>
</span>
</span>
<label class="left">
<span>Single Column</span>
<input type="checkbox" class="toggle-single-column-notes" name="attr_toggle_single_column_notes" title="@{toggle_single_column_notes}" value="1" checked />
</label>
</div>
<div class="sect">
<fieldset class="repeating_notes">
<span class="top-row notes-columns border-top-half">
<button class="dice-button" type="roll" name="attr_notes_roll" title="%{repeating_notes_$X_notes_roll}" value="@{whisper_pc} &{template:general} {{color=@{color_option}}} {{name=@{character_name}}} {{subtag=@{notes_name}}} {{freetext=@{notes_description}}}"></button>
<input type="text" name="attr_notes_name" title="@{repeating_notes_$X_notes_name}" value="" placeholder="Note Name" />
<span class="autoexpand">
<input type="text" name="attr_notes_name" title="@{repeating_notes_$X_notes_name}" value="" placeholder="Note Name" />
<span name="attr_notes_name"></span>
</span>
</span>
<details class="border-bottom-half">
<summary>
Expand Down

0 comments on commit f3af017

Please sign in to comment.