mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
[Feature] Homebrew Domains (#639)
* Split into tabs * Finished homebrew settings * . * Improved domainremoval cleanup
This commit is contained in:
parent
d186c62ee5
commit
02958f9574
24 changed files with 560 additions and 49 deletions
|
|
@ -619,6 +619,7 @@
|
|||
margin-left: 8px;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
filter: @dark-filter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -651,23 +652,25 @@
|
|||
}
|
||||
}
|
||||
|
||||
.theme-light .application {
|
||||
&.sheet.dh-style {
|
||||
button.glow {
|
||||
animation: glow-dark 0.75s infinite alternate;
|
||||
}
|
||||
}
|
||||
|
||||
.component.dh-style.card-preview-container {
|
||||
background-image: url('../assets/parchments/dh-parchment-light.png');
|
||||
|
||||
.preview-text-container {
|
||||
background-image: url(../assets/parchments/dh-parchment-dark.png);
|
||||
.theme-light {
|
||||
.application {
|
||||
&.sheet.dh-style {
|
||||
button.glow {
|
||||
animation: glow-dark 0.75s infinite alternate;
|
||||
}
|
||||
}
|
||||
|
||||
.preview-selected-icon-container {
|
||||
background-image: url(../assets/parchments/dh-parchment-dark.png);
|
||||
color: var(--color-light-5);
|
||||
.component.dh-style.card-preview-container {
|
||||
background-image: url('../assets/parchments/dh-parchment-light.png');
|
||||
|
||||
.preview-text-container {
|
||||
background-image: url(../assets/parchments/dh-parchment-dark.png);
|
||||
}
|
||||
|
||||
.preview-selected-icon-container {
|
||||
background-image: url(../assets/parchments/dh-parchment-dark.png);
|
||||
color: var(--color-light-5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@
|
|||
|
||||
.appTheme({
|
||||
.item-card-header .item-icons-list .item-icon img {
|
||||
filter: invert(88%) sepia(98%) saturate(1784%) hue-rotate(311deg) brightness(104%) contrast(91%);
|
||||
filter: @golden-filter;
|
||||
}
|
||||
}, {
|
||||
.item-card-header .item-icons-list .item-icon img {
|
||||
filter: invert(87%) sepia(15%) saturate(343%) hue-rotate(333deg) brightness(110%) contrast(87%);
|
||||
filter: @bright-beige-filter;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -17,4 +17,6 @@
|
|||
|
||||
@import './resources/resources.less';
|
||||
|
||||
@import './settings/settings.less';
|
||||
@import './settings/settings.less';
|
||||
|
||||
@import './settings/homebrew-settings/domains.less';
|
||||
|
|
|
|||
155
styles/less/ui/settings/homebrew-settings/domains.less
Normal file
155
styles/less/ui/settings/homebrew-settings/domains.less
Normal file
|
|
@ -0,0 +1,155 @@
|
|||
.theme-light .daggerheart.dh-style.setting.homebrew-settings .domains.tab {
|
||||
.domains-container .domain-container {
|
||||
.domain-label {
|
||||
background-image: url('../assets/parchments/dh-parchment-light.png');
|
||||
}
|
||||
|
||||
img {
|
||||
filter: @dark-filter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.daggerheart.dh-style.setting.homebrew-settings {
|
||||
.domains.tab {
|
||||
.title-wrapper {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
|
||||
&:first-child {
|
||||
h2 {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.top-lines {
|
||||
position: relative;
|
||||
bottom: 8px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-family: @font-subtitle;
|
||||
position: relative;
|
||||
width: auto;
|
||||
white-space: nowrap;
|
||||
margin-top: 16px;
|
||||
gap: 8px;
|
||||
color: light-dark(@dark, @beige);
|
||||
|
||||
.add-button {
|
||||
border-radius: 50%;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.domains-container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
|
||||
gap: 8px;
|
||||
|
||||
.domain-container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
border: 1px solid light-dark(@dark-blue, @golden);
|
||||
border-radius: 6px;
|
||||
|
||||
&.selectable {
|
||||
height: 100%;
|
||||
background: inherit;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&.inactive {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.domain-label {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
border: 1px solid light-dark(@dark-blue, @golden);
|
||||
border-radius: 6px;
|
||||
padding: 0 2px;
|
||||
color: light-dark(@dark, @beige);
|
||||
background-image: url('../assets/parchments/dh-parchment-dark.png');
|
||||
white-space: nowrap;
|
||||
text-wrap: auto;
|
||||
text-align: center;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
img {
|
||||
border-radius: 6px;
|
||||
filter: @beige-filter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.domain-edit-container {
|
||||
display: grid;
|
||||
grid-template-rows: 0fr;
|
||||
transition: grid-template-rows 0.3s ease-in-out;
|
||||
overflow: hidden;
|
||||
|
||||
&.extended {
|
||||
grid-template-rows: 1fr;
|
||||
|
||||
fieldset {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
fieldset {
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease-in-out;
|
||||
|
||||
legend {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
button {
|
||||
border-radius: 50%;
|
||||
font-size: 12px;
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.domain-filepicker-row {
|
||||
width: 100%;
|
||||
|
||||
.form-group {
|
||||
flex: 1;
|
||||
gap: 8px;
|
||||
|
||||
.form-fields {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
|
||||
file-picker {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -119,6 +119,7 @@
|
|||
top: -7px;
|
||||
font-size: 12px;
|
||||
font-variant: petite-caps;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
input {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
@golden-10: #f3c26710;
|
||||
@golden-40: #f3c26740;
|
||||
@golden-bg: #f3c2671a;
|
||||
@golden-filter: brightness(0) saturate(100%) invert(89%) sepia(13%) saturate(2008%) hue-rotate(332deg) brightness(99%)
|
||||
contrast(92%);
|
||||
|
||||
@chat-blue: #8f87ee;
|
||||
@chat-blue-10: #8f87ee10;
|
||||
|
|
@ -49,6 +51,7 @@
|
|||
@dark: #222;
|
||||
@dark-15: #22222215;
|
||||
@dark-40: #22222240;
|
||||
@dark-filter: brightness(0) saturate(100%);
|
||||
|
||||
@deep-black: #0e0d15;
|
||||
|
||||
|
|
@ -56,6 +59,10 @@
|
|||
@beige-15: #efe6d815;
|
||||
@beige-50: #efe6d850;
|
||||
@beige-80: #efe6d880;
|
||||
@beige-filter: brightness(0) saturate(100%) invert(87%) sepia(25%) saturate(164%) hue-rotate(339deg) brightness(106%)
|
||||
contrast(87%);
|
||||
@bright-beige-filter: brightness(0) saturate(100%) invert(87%) sepia(15%) saturate(343%) hue-rotate(333deg)
|
||||
brightness(110%) contrast(87%);
|
||||
|
||||
@soft-white-shadow: rgba(255, 255, 255, 0.05);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue