Skip to content

Commit

Permalink
Merge pull request #41 from crash1115/dev
Browse files Browse the repository at this point in the history
v0.4.10
  • Loading branch information
crash1115 authored Jan 4, 2021
2 parents 9a76942 + bda8ff8 commit 8695c6b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 65 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
![GitHub All Releases](https://img.shields.io/github/downloads/crash1115/5e-training/total) ![GitHub Releases](https://img.shields.io/github/downloads/crash1115/5e-training/latest/total) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/crash1115/5e-training?label=latest%20version)

WARNING: Using versions of this module lower than 0.4.5 with versions of Foundry above 0.7.0 can result in PERMANENT loss of downtime activities. If you're upgrading to Foundry 0.7.x PLEASE make sure you're running version 0.4.5 of Downtime Tracking.

# Crash's 5e Downtime Tracking
Does your group do a lot of downtime activities? Do you have a hard time keeping track of it all? Then this is the mod for you!

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## Version 0.4.10
- Compatibility patch for Tidy5e v0.4.x. It's not pretty, but you can see the buttons now.

## Version 0.4.9
- Compatibility with Foundry 0.7.9 and dnd5e 1.2.0

Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "5e-training",
"title": "Crash's 5e Downtime Tracking",
"description": "Adds a section to the character sheet to keep track of downtime activity progression. Track proficiency training, spell scribing, and anything else you can think of.",
"version": "0.4.9",
"version": "0.4.10",
"author": "CRASH1115#2944",
"minimumCoreVersion": "0.7.6",
"compatibleCoreVersion": "0.7.9",
Expand All @@ -28,5 +28,5 @@
],
"url": "https://github.com/crash1115/5e-training",
"manifest": "https://raw.githubusercontent.com/crash1115/5e-training/master/module.json",
"download": "https://github.com/crash1115/5e-training/releases/download/v0.4.9/5e-training.zip"
"download": "https://github.com/crash1115/5e-training/releases/download/v0.4.10/5e-training.zip"
}
67 changes: 8 additions & 59 deletions styles/training.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,30 @@
/*****************************/

/* Tweak some item controls styles to fit the additional buttons*/
.crash-training .item-controls {
.crash-training .crash-item-controls {
min-width: fit-content;
min-width: -moz-fit-content;
flex: 0 0 44px;
justify-content: space-between;
}

.crash-training .item-controls a {
.crash-training .crash-item-controls a {
min-width: fit-content;
min-width: -moz-fit-content;
flex: 1 !important;
margin-right: 5px;
font-size: 12px;
text-align: center;
}

/* Type Column */
.dnd5e.sheet.actor .crash-training .inventory-list .item-detail.type {
.crash-training .inventory-list .item-detail.type {
text-transform: capitalize;
flex: 0 0 140px;
}

/* Override Column */
.dnd5e.sheet.actor .crash-training .inventory-list .item-detail.override {
.crash-training .inventory-list .item-detail.override {
flex: 0 0 90px;
}

Expand Down Expand Up @@ -147,58 +151,3 @@
.dark-mode .audit-log .action-table table tr:hover td {
background-color: rgba(63,136,230, 0.4);
}


/*********************************/
/* SUPPORT FOR TIDY 5E */
/*****************************/

.tidy5e .crash-training .item-controls .item-create {
padding-left: 5px;
padding-right: 5px;
}

.tidy5e .crash-training .item-controls .item-create:last-child {
margin-right: 0px;
}

/* Tweak activity entries on NPC sheet */
.tidy5e.sheet.actor.npc .crash-training .inventory-list .item .item-name .item-image {
height: 30px;
width: 30px;
flex: 0 0 30px;
}

.tidy5e.sheet.actor.npc .crash-training .inventory-list .item .item-name h4 {
line-height: 30px;
}

.tidy5e.sheet.actor.npc .crash-training .inventory-list .item-detail .crash-training-override {
max-width: 40px;
}

.tidy5e.sheet.actor.npc .crash-training .inventory-list .inventory-header .item-controls a.item-create {
margin-top: 0px;
padding: 4px 5px;
margin-right: 5px;
}

.tidy5e.sheet.actor.npc .crash-training .inventory-list .item {
line-height: 30px;
}

/* Controls dark mode support */
.tidy5eDark .tidy5e.sheet.actor .crash-training .inventory-list .item-controls a,
.tidy5eDark .tidy5e.sheet.actor .crash-training .inventory-list .item-controls a:hover {
color: var(--darkmode-primary-color);
font-weight: 300;
}

/* Training bar dark mode support */
.tidy5eDark .crash-training .progress-bar {
background-color: var(--darkmode-faint-color);
}

.tidy5eDark .crash-training .progress-bar .crash-training-completion {
background-color: var(--darkmode-secondary-accent);
}
4 changes: 2 additions & 2 deletions templates/training-section.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ol class="items-list">
<li class="items-header flexrow">
<h3 class="item-name flexrow">{{ localize 'C5ETRAINING.ActivityProgress' }}</h3>
<div class="item-controls flexrow">
<div class="crash-item-controls flexrow">
<a class="item-control item-create crash-training-audit" title="{{ localize 'C5ETRAINING.ReviewChanges' }}">
<i class="fas fa-clipboard"></i> {{ localize 'C5ETRAINING.AuditLog' }}
</a>
Expand Down Expand Up @@ -32,7 +32,7 @@ <h4 class="crash-training-toggle-desc" id="crash-toggle-desc-{{tid}}" title="{{
</div>
</div>
</div>
<div class="item-controls">
<div class="crash-item-controls">
<a class="item-control crash-training-edit" id="crash-edit-{{tid}}" title="{{ localize 'C5ETRAINING.EditDowntimeActivity' }}"><i class="fas fa-edit"></i></a>
<a class="item-control crash-training-delete" id="crash-delete-{{tid}}" title="{{ localize 'C5ETRAINING.DeleteDowntimeActivity' }}"><i class="fas fa-trash"></i></a>
</div>
Expand Down

0 comments on commit 8695c6b

Please sign in to comment.