Skip to content

Commit

Permalink
1.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Mar 2, 2022
1 parent 51b61e9 commit 3ea1e08
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 149 deletions.
6 changes: 5 additions & 1 deletion scripts/dorako-ui.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@

// function cleanHTML() {
// document.getElementsByTagName("html")[0].style = null;
// document.getElementById("sidebar").style = null;
// $("head").children('link[href="css/style.css"]')[0].disabled = true;
// injectCSS("core-trim");
// injectCSS("dorako-trim");
// // document.getElementById("sidebar").style = null;
// }

// setTimeout(cleanHTML, 10000);

Hooks.on("ready", async function () {
Expand Down
155 changes: 7 additions & 148 deletions styles/core-trim.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,147 +79,16 @@
--line-height-30: 1.875rem;
}

:root {
--border-width: 1px;
--hotbar-height: 62px;
--header-color: #fff;
--header-bg: var(--primary);
--body-padding: 0.0em 0.0em 0em 0em;
--edge-margin: 5px;

--dorako-bg-glass: rgba(120, 120, 120, 0.20);
--dorako-bg-glass: rgba(120, 120, 120, 0.50);
--dorako-sheet-light: rgba(20, 20, 20, 0.60);
--dorako-orange: rgba(255, 100, 0, 0.5);
/* --dorako-bg-current: var(--dorako-bg-glass); */
--dorako-bg-current: hsla(0, 50%, 50%, 50%);
/* --dorako-bg-current: hsl(0,0%, 10%); */

--blind-bg: #A57aA5;
--whisper-bg: #E3E3FF;

--dorako-vibrancy: none;
/* --dorako-vibrancy: brightness(2.0) contrast(1.2) blur(5px); */
/* --dorako-vibrancy-active: brightness(1.5) contrast(1.0) blur(15px);
--dorako-vibrancy-inactive: brightness(0.5) contrast(1.0) blur(15px); */

--gold-and-glow: 0 0 0 1px var(--tertiary), 0 0 0 2px #9f725b, inset 0 0 3px rgba(255, 255, 255, .5);
--glassy:
0px 0px 2px rgba(255, 255, 255, 0.4) inset,
0px 0px 6px rgba(255, 255, 255, 0.2) inset,
1px 1px 1px rgba(0, 0, 0, 1),
1px -1px 1px rgba(0, 0, 0, 1),
-1px -1px 1px rgba(0, 0, 0, 1),
-1px 1px 1px rgba(0, 0, 0, 1),
0px 0px 3px rgba(0, 0, 0, 1),
0px 0px 4px rgba(0, 0, 0, 0.5);


--primary-hue: 0;
--primary-sat: 100%;
--primary-lvl: 18%;

--secondary-hue: 234;
--secondary-sat: 64%;
--secondary-lvl: 25%;

--paizo-red-dark: hsl(var(--primary-hue), var(--primary-sat), calc(var(--primary-lvl) - 10%));
--paizo-red: hsl(var(--primary-hue), var(--primary-sat), var(--primary-lvl));
--paizo-red-bright: hsl(var(--primary-hue), var(--primary-sat), calc(var(--primary-lvl) + 10%));

--paizo-blue-dark: hsl(var(--secondary-hue), var(--secondary-sat), calc(var(--secondary-lvl) - 10%));
--paizo-blue: hsl(var(--secondary-hue), var(--secondary-sat), var(--secondary-lvl));
--paizo-blue-bright: hsl(var(--secondary-hue), var(--secondary-sat), calc(var(--secondary-lvl) + 10%));

--color-shadow-highlight: var(--paizo-red);
--color-shadow-primary: var(--paizo-blue);

--img-parchment: url(/systems/pf2e/assets/sheet/parchment.webp);
--img-red: url(/systems/pf2e/assets/sheet/nav-item.webp);
--pf2e-nav-inactive: url(/systems/pf2e/assets/sheet/nav-item-inactive.webp);
--pf2e-sheets-bg: url(/systems/pf2e/assets/sheet/background.webp);
--sheet-light: url(/systems/pf2e/assets/sheet/background.webp);
--sheet-light: url(/modules/pf2e-dorako-ui/img/background-dark.webp);

--dorako-text-shadow: 0px 0px 3px black;
--dorako-box-shadow: 0px 0px 3px black;
--dorako-radius: 3px;
/*transition: backdrop-filter 0.3s ease-out;*/
/*transition: background-color 0.3s ease-out;*/

}


/* Standard Lists */
ul,
ol {
margin: 0.5em 0;
padding: 0 0 0 1.5em;
}
/* Definition Lists */
dl {
margin: 0.5em 0;
}

/* Nuke fake-list stylings */

#macro-list,
#controls,
#navigation,
#navigation > ol {
display: flex;
}

#controls > ol,
#controls > ol > li,
#macro-list,
#macro-list > *,
#navigation > *,
#navigation > ol > li
#players ol,
#players ol > li {
list-style: none;
margin: 0;
padding: 0;
}

#players {
cursor: pointer;
}
#players .player {
align-items: center;
display: flex;
gap: 5px;
flex-wrap: nowrap;
justify-content: center;
}

/* #players .player-name {
display: none;
/* .pf2e.item.sheet form>header img {
border-radius: 10px;
box-shadow: var(--gold-and-glow);
} */

.crb-style input[type="text"],
.crb-style input[type="number"],
.crb-style input[type="password"],
.crb-style input[type="date"],
.crb-style input[type="time"]{
border: none;
}

.app {
transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
background: hsla(0, 0%, 50%, 50%);
border-radius: 5px;
box-shadow: var(--glassy);
color: var(--color-text-light-highlight);
text-shadow: 0px 0px 3px black;
z-index: var(--z-index-app);
pointer-events: all;
}

.app:not(#sidebar, .sheet):hover {
/* .app:not(#sidebar, .sheet):hover {
background-color: hsla(0, 0%, 00%, 50%);
}
} */
.app:not(.sheet):hover {
color: white;
}
Expand Down Expand Up @@ -320,17 +189,7 @@ dl {
border-bottom: none;
}

#controls ol.sub-controls,
#controls ol.main-controls,
.control {
flex: 0 0 30px;
}

.control i {
align-items: center;
display: flex;
font-size: large;
}

.control {
text-shadow: 0px 0px 3px black;
Expand Down Expand Up @@ -3080,14 +2939,14 @@ nav.list-filters a.filter.active {
/* border: 1px solid var(--color-border-highlight-alt); */
}
#hotbar .macro .macro-key {
position: absolute;
/* position: absolute;
top: 2px;
right: 2px;
padding: 1px 3px;
background: #111;
color: var(--color-text-light-highlight);
font-weight: bold;
pointer-events: none;
pointer-events: none; */
}
#hotbar .macro .macro-icon {
/* object-fit: cover;
Expand Down
Loading

0 comments on commit 3ea1e08

Please sign in to comment.