Skip to content

Commit

Permalink
Merge pull request #152 from ernieayala/scratch/0.4.1
Browse files Browse the repository at this point in the history
Update 0.4.1
  • Loading branch information
ernieayala committed May 22, 2022
2 parents 378ad8d + 5b5b1b4 commit 7e8e1d9
Show file tree
Hide file tree
Showing 27 changed files with 1,234 additions and 387 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ Message me on Discord: Ernie#4453.
[![Features Walkthrough](https://img.youtube.com/vi/bU7sclPTFQU/0.jpg)](https://www.youtube.com/watch?v=bU7sclPTFQU)

### Systems Functional as of Feb 2022
- DND 5e (9.249)
- DND 5e (1.6.1)
- MÖRK BORG (1.8.0)
- Starfinder RPG (0.11.4)

### Mods Functional as of Feb 2022
- About Time (1.0.6)
Expand Down Expand Up @@ -88,6 +90,7 @@ Message me on Discord: Ernie#4453.
- Macro Editor (1.1.2)
- Maestro (0.8.0)
- Midi QOL (0.9.02)
- Monster Block (3.3.0)
- Narrator Tools (0.70)
- Party Resources (1.2.5)
- PDFoundry (0.9.1)
Expand Down
263 changes: 225 additions & 38 deletions css/emu.css

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions css/system-compatibility/alienrpg.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
body.-emu.system-alienrpg .chat-message .table-draw .table-results .table-result {
color: rgba(var(--color-primary), 1); }
.-emu-layout body.-emu.system-alienrpg .chat-message .table-draw .table-results .table-result {
gap: var(--emu-space-base); }
.-emu-layout body.-emu.system-alienrpg .chat-message .table-draw .table-results .table-result img.result-image {
margin: 0; }
.-emu-layout body.-emu.system-alienrpg .chat-message .table-draw .table-results .table-result .result-text {
line-height: initial; }

body.-emu.system-alienrpg .alienrpg .actor-header {
background-color: transparent; }

body.-emu.system-alienrpg .alienrpg h1.charname,
body.-emu.system-alienrpg .alienrpg .grid-4col {
border: none; }

body.-emu.system-alienrpg .alienrpg .tabs {
background-color: transparent;
border: none; }

body.-emu.system-alienrpg .alienrpg .sheet-tabs {
border-block-start: none !important;
border-block-end: none !important; }
9 changes: 8 additions & 1 deletion css/system-compatibility/dnd5e.css
Original file line number Diff line number Diff line change
Expand Up @@ -1166,9 +1166,16 @@ body.-emu.system-dnd5e [id*="actor-type-"] section.secret {
body.-emu.system-dnd5e [id*="actor-type-"] section.secret {
padding: 0 var(--emu-space-base); }

body.-emu.system-dnd5e [id*="actor-type-"] input[name="preview"]:disabled {
.-emu-layout body.-emu.system-dnd5e [id*="actor-type-"] input[name="preview"]:disabled {
padding: 0; }

.-emu-layout body.-emu.system-dnd5e .trait-selector.subconfig ol.trait-list > li {
align-items: flex-start;
flex-direction: column; }

body.-emu.system-dnd5e .trait-selector.actor-type .trait-list .radio input {
margin-inline-end: var(--emu-space-base); }

.-emu-layout body.-emu.system-dnd5e .hd-config.dialog .window-content {
padding: var(--emu-space-sm); }
.-emu-layout body.-emu.system-dnd5e .hd-config.dialog .window-content .form-group {
Expand Down
59 changes: 59 additions & 0 deletions css/system-compatibility/morkborg.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
body.-emu.system-morkborg #hotbar #action-bar li.macro:hover {
box-shadow: inset 0 0 0 2px rgba(var(--color-white), 1);
text-shadow: none; }

body.-emu.system-morkborg #hotbar #action-bar li.macro:focus {
box-shadow: inset 0 0 0 2px rgba(var(--color-primary), 1), inset 0 0 0 3px rgba(var(--color-white), 1), 0 1px 2px 0 rgba(var(--color-black), 0.3);
text-shadow: none;
outline: none; }

body.-emu.system-morkborg #hotbar #action-bar li.macro.active {
background-color: rgba(var(--color-primary), 1);
color: rgba(var(--color-text-lightest), 1);
text-shadow: none; }
body.-emu.system-morkborg #hotbar #action-bar li.macro.active:hover {
background-color: rgba(var(--color-primary), 1);
color: rgba(var(--color-text-lightest), 1);
text-shadow: none; }

body.-emu.system-morkborg ::-webkit-scrollbar-thumb {
background-color: rgba(var(--color-background-light), 1) !important;
border: none !important; }

body.-emu.system-morkborg .window-app .window-content form .notes,
body.-emu.system-morkborg .window-app .window-content .form-group span.units {
background-color: transparent; }

.-emu-layout body.-emu.system-morkborg .morkborg.sheet.actor.character .sheet-header {
gap: initial; }

body.-emu.system-morkborg .morkborg.sheet .editor {
color: rgba(var(--color-text), 1); }

body.-emu.system-morkborg .roll-card {
border: none; }

body.-emu.system-morkborg .roll-card .card-title,
body.-emu.system-morkborg .roll-card .outcome-text .attack-outcome,
body.-emu.system-morkborg .roll-card .outcome-text .defend-outcome,
body.-emu.system-morkborg .roll-card .outcome-text .take-damage {
background-color: transparent;
color: rgba(var(--color-text), 1); }

body.-emu.system-morkborg .roll-card .roll-result {
border: rgba(var(--color-border), 1) 1px solid; }

body.-emu.system-morkborg .roll-card .roll-result span {
color: rgba(var(--color-text), 1); }

body.-emu.system-morkborg #chat-controls i.fas:hover {
color: inherit;
text-shadow: none; }

body.-emu.system-morkborg #hotbar #action-bar li.macro {
background-color: rgba(var(--color-background), var(--emu-background-opacity-hotbar, 0.8));
background-image: var(--emu-image-background-controls, none);
border: rgba(var(--color-border), 1) 1px solid;
color: rgba(var(--color-text-lightest), 1); }
body.-emu.system-morkborg #hotbar #action-bar li.macro.active {
background-color: rgba(var(--color-background), var(--emu-background-opacity-hotbar, 0.8)); }
206 changes: 206 additions & 0 deletions css/system-compatibility/sfrpg.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
.-emu-layout body.-emu.system-sfrpg #sidebar .sidebar-tab .directory-footer .browser-group, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sidebar-tab .directory-footer .browser-group {
gap: var(--emu-space-base);
width: 100%; }

.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card {
font-size: var(--emu-font-size-sm); }

body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-buttons button,
body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-header h3,
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-buttons button,
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-header h3 {
color: rgba(var(--color-text), 1);
text-shadow: none; }
.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-buttons button, .-emu-layout
body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-header h3, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-buttons button, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-header h3 {
font-family: inherit;
line-height: initial;
margin: 0; }
body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-buttons button > span,
body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-header h3 > span,
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-buttons button > span,
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-header h3 > span {
border: 0; }
.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-buttons button > span, .-emu-layout
body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-header h3 > span, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-buttons button > span, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-header h3 > span {
padding: 0 var(--emu-space-base); }

.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-header h3, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-header h3 {
align-items: center;
display: inline-flex; }

.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-buttons button + button, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-buttons button + button {
margin-block-start: var(--emu-space-base); }

body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-header,
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-header {
border-block-start: rgba(var(--color-border-lighter), 1) 1px solid;
border-block-end: rgba(var(--color-border-lighter), 1) 1px solid;
margin-block-end: var(--emu-space-base); }
.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-header, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-header {
padding: var(--emu-space-base) 0; }

.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-content, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-content {
margin: var(--emu-space-base) 0; }

body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-footer,
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-footer {
border-block-start: rgba(var(--color-border-lighter), 1) 1px solid; }
.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-footer, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-footer {
display: flex;
flex-wrap: wrap;
gap: var(--emu-space-base);
margin-block-start: var(--emu-space-base);
padding-block-start: var(--emu-space-base); }
body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-footer span,
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-footer span {
border-inline-end: rgba(var(--color-border), 1) 1px solid; }
.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-footer span, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-footer span {
font-size: var(--emu-font-size-xs);
padding: 0;
padding-inline-end: var(--emu-space-base); }
body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-footer span:last-child,
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-footer span:last-child {
border-inline-end: none; }

.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-buttons, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-buttons {
margin: var(--emu-space-base) 0; }

body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-buttons button,
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-buttons button {
border: rgba(var(--color-border), 1) 1px solid;
color: rgba(var(--color-text-lightest), 1); }
.-emu-layout body.-emu.system-sfrpg #sidebar .sfrpg.chat-card .card-buttons button, .-emu-layout
body.-emu.system-sfrpg .sidebar-popout .sfrpg.chat-card .card-buttons button {
font-weight: normal; }

.-emu-layout body.-emu.system-sfrpg .window-app {
font-family: inherit; }

body.-emu.system-sfrpg .window-app .window-header {
background: none; }

.-emu-layout body.-emu.system-sfrpg .window-app .window-content {
font-family: inherit; }

body.-emu.system-sfrpg .sfrpg.sheet .sheet-header img.profile {
object-fit: contain; }

.-emu-layout body.-emu.system-sfrpg .item-browser .control-area {
display: flex;
flex-direction: column;
height: 100%;
padding-inline-end: var(--emu-space-sm);
position: relative; }

body.-emu.system-sfrpg .item-browser .sortcontainer {
border: none;
border-radius: 0; }
.-emu-layout body.-emu.system-sfrpg .item-browser .sortcontainer {
margin: 0;
margin-block-end: var(--emu-space-base);
padding: 0; }
.-emu-layout body.-emu.system-sfrpg .item-browser .sortcontainer#tagfilter input[type="text"] {
height: var(--emu-space-button); }
.-emu-layout body.-emu.system-sfrpg .item-browser .sortcontainer dl dt {
padding-inline-start: 0; }

body.-emu.system-sfrpg .item-browser .hint {
background-color: rgba(var(--color-blue-500), 1);
border: none;
border-radius: 0;
color: rgba(var(--color-white), 1); }
.-emu-layout body.-emu.system-sfrpg .item-browser .hint {
margin: var(--emu-space-xs) 0;
padding: var(--emu-space-base); }

body.-emu.system-sfrpg .item-browser .item-browser-filters {
margin-block-start: var(--emu-space-base); }
body.-emu.system-sfrpg .item-browser .item-browser-filters .filtercontainer {
border: none;
border-radius: 0; }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-browser-filters .filtercontainer {
margin: 0;
margin-block-end: var(--emu-space-base);
padding: 0; }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-browser-filters .filtercontainer:last-child {
margin-block-end: 0; }
body.-emu.system-sfrpg .item-browser .item-browser-filters .filtercontainer h3 {
background-color: rgba(var(--color-background-light), 1);
border-block-end: rgba(var(--color-border), 1) 1px solid;
color: rgba(var(--color-text-lightest), 1); }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-browser-filters .filtercontainer h3 {
padding: var(--emu-space-base) var(--emu-space-sm); }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-browser-filters .filtercontainer dl {
display: flex;
flex-wrap: wrap;
gap: var(--emu-space-base); }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-browser-filters .filtercontainer dl dt {
display: inline-flex;
flex: 0 0 auto;
padding: 0;
width: auto; }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-browser-filters .filtercontainer dl dd {
align-items: center;
display: inline-flex;
flex: 1 1 auto;
margin: 0;
padding: 0; }

.-emu-layout body.-emu.system-sfrpg .item-browser .header {
flex: 0 0 auto;
padding: var(--emu-space-xs) var(--emu-space-md); }
.-emu-layout body.-emu.system-sfrpg .item-browser .header .item-image {
height: auto;
width: var(--emu-space-button); }
.-emu-layout body.-emu.system-sfrpg .item-browser .header .item-sort-link {
height: auto;
margin: 0;
padding-inline-start: var(--emu-space-base); }

body.-emu.system-sfrpg .item-browser .header .item-sort-link:hover {
color: rgba(var(--color-primary), 1);
text-shadow: none; }

body.-emu.system-sfrpg .item-browser .item-list {
background-color: transparent; }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-list {
border-radius: 0;
margin-block-start: var(--emu-space-base);
padding: var(--emu-space-sm); }
body.-emu.system-sfrpg .item-browser .item-list li {
border-block-end: rgba(var(--color-border-lighter), 1) 1px solid; }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-list li {
line-height: initial;
margin: 0;
padding: var(--emu-space-xs) var(--emu-space-base); }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-list li .item-image {
height: var(--emu-space-button);
max-width: var(--emu-space-button); }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-list li .item-name,
.-emu-layout body.-emu.system-sfrpg .item-browser .item-list li .item-tags {
align-items: center;
display: inline-flex;
height: auto;
margin: 0;
padding-inline-start: var(--emu-space-base); }
.-emu-layout body.-emu.system-sfrpg .item-browser .item-list li .item-tags {
justify-content: flex-end; }
body.-emu.system-sfrpg .item-browser .item-list li:hover {
background-color: rgba(var(--color-primary), 1);
color: rgba(var(--color-text-lightest), 1); }
body.-emu.system-sfrpg .item-browser .item-list li:hover a:hover {
color: rgba(var(--color-text-lightest), 1); }
7 changes: 1 addition & 6 deletions js/emu-systems.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
export const SYSTEM = [
'CoC7',
'dnd5e',
'dsa5',
'fate-core-official',
'pf1',
'pf2e',
'morkborg',
'sfrpg',
'shadowrun5e'
]
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": "ernies-modern-layout",
"title": "Ernie's Modern UI",
"description": "A visual update for Foundry VTT UI.",
"version": "0.4.0",
"version": "0.4.1",
"author": "Ernie",
"authors": [
{
Expand Down Expand Up @@ -34,7 +34,7 @@
"compatibleCoreVersion": "9",
"url": "https://github.com/ernieayala/ernies-modern-layout",
"manifest": "https://raw.githubusercontent.com/ernieayala/ernies-modern-layout/master/module.json",
"download": "https://github.com/ernieayala/ernies-modern-layout/releases/latest/download/ernies-modern-layout-0.4.0.zip",
"download": "https://github.com/ernieayala/ernies-modern-layout/releases/latest/download/ernies-modern-layout-0.4.1.zip",
"license": "MIT",
"readme": "https://github.com/ernieayala/ernies-modern-layout",
"bugs": "https://github.com/ernieayala/ernies-modern-layout/issues",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"start": "node-sass --watch scss -o css",
"build": "node-sass scss -o css & postcss css/emu.css -u autoprefixer --no-map -d css/"
},
"version": "0.4.0",
"version": "0.4.1",
"devDependencies": {
"autoprefixer": "9.1.0",
"cssnano": "4.1.10",
Expand Down
Binary file added release/ernies-modern-layout-0.4.1.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion scss/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"sidebar": var(--emu-space-sidebar),
"icon": var(--emu-space-button),
"pf": var(--emu-space-pf),
"base": var(--emu-space-base),
"xs": var(--emu-space-xs),
"base": var(--emu-space-base),
"sm": var(--emu-space-sm),
"md": var(--emu-space-md),
"xl": var(--emu-space-xl)
Expand Down
4 changes: 2 additions & 2 deletions scss/_init.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
--emu-font-size-chat-roll: #{to-rem(18px)};
--emu-subtle-opacity: 0.3;
--emu-space-pf: #{to-rem(1px)};
--emu-space-base: #{to-rem(4px)};
--emu-space-xs: #{to-rem(2px)};
--emu-space-base: #{to-rem(4px)};
--emu-space-sm: #{to-rem(8px)};
--emu-space-md: #{to-rem(16px)};
--emu-space-lg: #{to-rem(24px)};
Expand All @@ -47,7 +47,7 @@
}

::-webkit-scrollbar-track {
box-shadow: inset 0 0 2px 0 color("background-darkest", 0.5);
box-shadow: inset 0 0 0 1px color("background-darkest", 0.5);
border: none;
border-radius: 0;
}
Expand Down
Loading

0 comments on commit 7e8e1d9

Please sign in to comment.