Skip to content

Commit

Permalink
Merge branch 'feature/FAST-1766-transform-google-font-urls-for-discor…
Browse files Browse the repository at this point in the history
…d-activity' into staging
  • Loading branch information
danielxvu committed Nov 13, 2024
2 parents 058ccbb + be55e5e commit b18bd73
Show file tree
Hide file tree
Showing 48 changed files with 24,396 additions and 5,094 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/discord-fonts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,16 @@ jobs:
chmod +x ./process-fonts.sh
CLIENT_ID=${{ github.ref_name == 'master' && '1199271093882589195' || '1199270539278164008' }}
DISCORD_ACTIVITY_CLIENT_ID=$CLIENT_ID \
./process-fonts.sh --no-prompt fonts.css
./process-fonts.sh --no-prompt --output-dir ${{ runner.temp }}/sheet-fonts
- name: Upload to GCS
run: |
DEST_NAME="${{ github.ref_name == 'master' && 'production' || 'staging' }}.css"
ENV_PATH="${{ github.ref_name == 'master' && 'production' || 'staging' }}"
# Create temp directory and copy fonts.css to it
TEMP_DIR="${{ runner.temp }}/fonts"
mkdir -p "$TEMP_DIR"
cp fonts.css "$TEMP_DIR/$DEST_NAME"
# Sync to GCS
# Sync the entire fonts directory
gcloud storage rsync \
--project=roll20-actual \
"$TEMP_DIR" \
gs://roll20-cdn/discord/fonts \
--cache-control='no-cache' \
--recursive
${{ runner.temp }}/sheet-fonts \
"gs://roll20-cdn/discord/fonts/$ENV_PATH" \
--recursive \
--cache-control="no-cache"
27 changes: 25 additions & 2 deletions ADnD_1E_Revised/1ESheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,23 @@
width: 100%;
}

/* hide flippers for number fields */
.charsheet input:hover[type=number],
.charsheet input:hover::-webkit-outer-spin-button,
.charsheet input:hover::-webkit-inner-spin-button {
-webkit-appearance: auto;
}

.charsheet input::-webkit-outer-spin-button,
.charsheet input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

.charsheet input[type=number]{
-moz-appearance: textfield;
}

.charsheet .wrapper input,
.charsheet .wrapper select,
.charsheet .wrapper textarea {
Expand Down Expand Up @@ -1372,7 +1389,7 @@ section.npc-box.statblock3 .image-avatar {

.charsheet .npc-box label > span input,
.charsheet .npc-box label > input {
padding-left: 0.75em;
padding-left: clamp(2px, 7%, 10px);
text-align: left;
}

Expand Down Expand Up @@ -3135,20 +3152,26 @@ details[open].thac0-box {
.charsheet input[type='number'].width-smallest,
.charsheet input[type='text'].width-smallest {
min-width: 2em;
padding-inline: 0;
text-align: center;
width: 2em;
}

.charsheet .width-smaller,
.charsheet input[type='number'].width-smaller,
.charsheet input[type='text'].width-smaller {
min-width: 2.5em;
padding-inline: 0;
text-align: center;
width: 2.5em;
}

.charsheet .width-small,
.charsheet input[type='number'].width-small,
.charsheet input[type='text'].width-small {
width: 3em;
padding-inline: 0;
text-align: center;
width: 3em;
}

.charsheet .width-small-plus,
Expand Down
3 changes: 2 additions & 1 deletion ADnD_1E_Revised/1ESheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ <h5 class="right two-columns">
<span class="left">
<span>v<span name="attr_sheet_version">
</span>
<span class="right"> • 9/10/24'</span>
<span class="right"> • 11/10/24'</span>
</h5>
<ul>
<li>Small adjustment to hide the +/- flippers on number fields.</li>
<li>Autofill base value for saves has been added to the Monster page.</li>
<li>Height and Weight fields have been added to the Monster page.</li>
<li>Updated the Pick Pockets roll to include a query for the hit dice of the target and check for detection if the attempt has failed. The HD query will adjust the target score and check for detection according to the PHB.</li>
Expand Down
Binary file added Chroniques_Katura/images/background_roll_v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chroniques_Katura/images/dice_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chroniques_Katura/images/dice_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chroniques_Katura/images/dice_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chroniques_Katura/images/dice_20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chroniques_Katura/images/dice_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chroniques_Katura/images/dice_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chroniques_Katura/images/dice_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chroniques_Katura/images/grimoire.webp
Binary file not shown.
Binary file added Chroniques_Katura/images/logo_darkmode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chroniques_Katura/images/logo_ydra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chroniques_Katura/images/logo_ydra_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions Chroniques_Katura/sheet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"html": "yradhil.html",
"css": "yradhil.css",
"authors": "Evilbram (Les XII Singes)",
"roll20userid": "9526628",
"preview": "yradhil.png",
"instructions": "Une feuille de personnage pour le JdR Les Chroniques de Katura édition Yradhil.",
"legacy": false
}
Loading

0 comments on commit b18bd73

Please sign in to comment.