Update compendium-browser.less

2.0
Matheus Clemente 2023-11-08 18:10:32 -03:00
parent bdb92d2388
commit 100dafc735
1 changed files with 355 additions and 282 deletions

View File

@ -1,286 +1,359 @@
#compendium .directory-footer .compendium-browser-btn { @color_1: #bbb;
margin-top: 5px;
}
#compendium .directory-footer { #compendium {
display: block; .directory-footer {
.compendium-browser-btn {
margin-top: 5px;
}
display: block;
}
} }
.compendium-browser { .compendium-browser {
overflow-y: hidden !important; overflow-y: hidden !important;
max-width: 1100px; max-width: 1100px;
max-height: 90vh; max-height: 90vh;
min-width: 630px;
.window-content { min-height: 500px;
overflow-y: hidden !important; .window-content {
height: 100%; overflow-y: hidden !important;
.parent { height: 100%;
overflow-y: hidden !important; .parent {
height: 100%; overflow-y: hidden !important;
.content { height: 100%;
overflow-y: hidden !important; .content {
height: calc(100% - 2em); overflow-y: hidden !important;
.tab { height: calc(100% - 2em);
overflow-y: hidden !important; .tab {
height: 100%; overflow-y: hidden !important;
.browser { height: 100%;
overflow-y: hidden !important; .browser {
height: 100%; overflow-y: hidden !important;
ul { height: 100%;
overflow-y: auto; ul {
height: 100%; overflow-y: auto;
} overflow-x: hidden;
} height: 100%;
.settings { }
overflow-y: auto; }
height: 100%; .settings {
} overflow-y: auto;
} height: 100%;
} }
} }
} }
}
.tabs { }
max-height: 2em; .tabs {
border-bottom: solid #782e22; max-height: 2em;
a { border-bottom: 1px solid var(--color-border-light-primary);
} }
} .tabContainer {
.tabContainer { height: calc(100% - 2em);
height: calc(100% - 2em); .tab {
.tab { width: 100%;
width: 100%; height: 100%;
height: 100%; overflow: scroll;
overflow: scroll; }
} }
} .control-area {
position: sticky;
.control-area { display: block;
position: sticky; min-width: 250px;
display: block; max-width: 45%;
min-width: 250px; width: 350px;
max-width: 400px; height: 100%;
width: 300px; padding-right: 5px;
height: 100%; overflow: auto;
padding-right: 5px; button {
overflow: scroll; background: rgba(0, 0, 0, 0.05);
border: 1px solid #bbb;
button { border-radius: 5px;
background: rgba(0, 0, 0, 0.05); margin-top: 5px;
border: 1px solid #bbb; padding: 2px;
border-radius: 5px; }
margin-top: 5px; .filtercontainer {
padding: 2px; border: 1px solid #bbb;
} border-radius: 5px;
margin-top: 5px;
.filtercontainer { padding: 2px;
border: 1px solid #bbb; h3 {
border-radius: 5px; margin: 0;
margin-top: 5px; cursor: pointer;
padding: 2px; }
dl {
h3 { margin: 5px 0;
margin: 0; }
cursor: pointer; div {
} margin: 5px 0;
}
dl, dt {
div { display: inline-block;
margin: 5px 0; width: 40%;
} padding-left: 5px;
}
dt { dd {
display: inline-block; display: inline-block;
width: 40%; width: 58%;
padding-left: 5px; margin-left: 0;
} select {
width: 100%;
dd { }
display: inline-block; }
width: 58%; .multiselect {
margin-left: 0; border: 1px solid #bbb;
border-radius: 3px;
select { vertical-align: middle;
width: 100%; line-height: 32px;
} margin: 2px 0;
} label {
.multiselect { padding: 5px;
border: 1px solid #bbb; }
border-radius: 3px; input {
vertical-align: middle; vertical-align: middle;
line-height: 32px; }
margin: 2px 0; }
.small-input {
label { width: calc(100% - 44px);
padding: 5px; height: 27px;
} background: rgba(0, 0, 0, 0.05);
input { border: 1px solid #444;
vertical-align: middle; border-radius: 3px;
} padding: 0 3px;
} text-overflow: ellipsis;
.small-input { }
width: calc(100% - 44px); .small-select {
height: 27px; width: 40px;
background: rgba(0, 0, 0, 0.05); }
border: 1px solid #444; }
border-radius: 3px; }
padding: 0 3px; .list-area {
text-overflow: ellipsis; position: sticky;
} display: flex;
.small-select { min-width: 250px;
width: 40px; max-width: 55%;
} width: 400px;
} height: 100%;
} padding-right: 5px;
.loading {
.browser { flex: 0;
height: 100%; text-align: center;
overflow-y: hidden !important; }
}
.window-content { .browser {
overflow-y: hidden !important; height: 100%;
} overflow-y: hidden !important;
.window-content {
ul { overflow-y: hidden !important;
float: right; }
display: block; ul {
min-width: 335px; float: right;
width: 785px; display: block;
margin: 0; min-width: 335px;
height: 100%; margin: 0;
overflow: auto; height: 100%;
padding-left: 5px; overflow: auto;
padding-left: 5px;
.filter-tags { .filter-tags {
display: none; display: none;
} }
li {
li { span {
span { white-space: nowrap;
white-space: nowrap; overflow: hidden;
overflow: hidden; }
} .spell-tags {
} span.negative {
} color: @color_1;
}
.spacer { }
display: inline-block; .item-name {
min-width: 5px; span {
} white-space: break-spaces;
.spacer-large { height: inherit;
display: inline-block; display: block;
min-width: 15px; }
} }
} .feat-tags {
span {
.item-browser, white-space: break-spaces;
.feat-browser, height: inherit;
.spell-browser { display: block;
li { }
cursor: default; }
vertical-align: middle; }
line-height: 32px; }
margin: 2px 0; .spacer {
display: inline-block;
.item-image { min-width: 5px;
max-width: 32px; }
height: 32px; .spacer-large {
} display: inline-block;
.item-name { min-width: 15px;
height: 32px; }
padding-left: 5px; }
} .item-browser {
li {
.feat-tags, cursor: default;
.item-tags { vertical-align: middle;
text-align: right; line-height: 16px;
margin-right: 3px; margin: 2px 0;
margin-left: 3px; height: 32px;
text-transform: capitalize; .item-image {
height: 32px; max-width: 32px;
} height: 32px;
} }
} .item-name {
padding-left: 5px;
.spell-browser { flex: 2;
.spell { }
.spell-level { .feat-tags {
text-align: center; text-align: right;
font-weight: 900; margin-right: 3px;
max-width: 18px; margin-left: 3px;
height: 32px; text-transform: capitalize;
} height: 32px;
.spell-tags { }
text-align: right; .item-tags {
margin-right: 3px; text-align: right;
font-weight: 900; margin-right: 3px;
max-width: 100px; margin-left: 3px;
height: 32px; text-transform: capitalize;
} height: 32px;
} }
} }
}
.npc-browser { .feat-browser {
.npc { li {
cursor: default; cursor: default;
vertical-align: middle; vertical-align: middle;
line-height: 64px; line-height: 16px;
margin: 4px 0; margin: 2px 0;
.npc-image { height: 32px;
max-width: 64px; .item-image {
height: 64px; max-width: 32px;
} height: 32px;
.npc-image img { }
width: 64px; .item-name {
height: 64px; padding-left: 5px;
border: none; flex: 2;
object-fit: contain; }
} .feat-tags {
text-align: right;
.npc-line { margin-right: 3px;
line-height: 25px; margin-left: 3px;
padding: 9px 0 5px 5px; text-transform: capitalize;
} height: 32px;
.npc-name { }
font-weight: bold; .item-tags {
font-size: 16px; text-align: right;
} margin-right: 3px;
.cr { margin-left: 3px;
display: inline-block; text-transform: capitalize;
width: 55px; height: 32px;
} }
.size { }
display: inline-block; }
width: 75px; .spell-browser {
} li {
.type { cursor: default;
display: inline-block; vertical-align: middle;
} line-height: 16px;
} margin: 2px 0;
} height: 32px;
.item-image {
.settings { max-width: 32px;
.settings-group { height: 32px;
border: 1px solid #bbb; }
border-radius: 5px; .item-name {
margin-top: 5px; padding-left: 5px;
padding: 2px; flex: 2;
}
h3 { .feat-tags {
margin: 0; text-align: right;
cursor: pointer; margin-right: 3px;
} margin-left: 3px;
text-transform: capitalize;
label { height: 32px;
display: block; }
} .item-tags {
input { text-align: right;
} margin-right: 3px;
h4 { margin-left: 3px;
display: inline-block; text-transform: capitalize;
vertical-align: middle; height: 32px;
height: 100%; }
} }
} .spell {
} .spell-level {
text-align: center;
font-weight: 900;
max-width: 18px;
height: 32px;
}
.spell-tags {
text-align: right;
margin-right: 3px;
font-weight: 900;
max-width: 100px;
height: 32px;
}
}
}
.npc-browser {
.npc {
cursor: default;
vertical-align: middle;
line-height: 64px;
margin: 4px 0;
.npc-image {
max-width: 64px;
height: 64px;
img {
width: 64px;
height: 64px;
border: none;
object-fit: contain;
}
}
.npc-line {
line-height: 25px;
padding: 9px 0 5px 5px;
}
.npc-name {
font-weight: bold;
font-size: 16px;
}
.cr {
display: inline-block;
width: 55px;
}
.size {
display: inline-block;
width: 75px;
}
.type {
display: inline-block;
}
}
}
.settings {
.settings-group {
border: 1px solid #bbb;
border-radius: 5px;
margin-top: 5px;
padding: 2px;
h3 {
margin: 0;
cursor: pointer;
}
label {
display: block;
}
h4 {
display: inline-block;
vertical-align: middle;
height: 100%;
}
}
}
} }