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,16 +1,19 @@
#compendium .directory-footer .compendium-browser-btn { @color_1: #bbb;
#compendium {
.directory-footer {
.compendium-browser-btn {
margin-top: 5px; margin-top: 5px;
} }
#compendium .directory-footer {
display: block; 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;
min-height: 500px;
.window-content { .window-content {
overflow-y: hidden !important; overflow-y: hidden !important;
height: 100%; height: 100%;
@ -28,6 +31,7 @@
height: 100%; height: 100%;
ul { ul {
overflow-y: auto; overflow-y: auto;
overflow-x: hidden;
height: 100%; height: 100%;
} }
} }
@ -39,12 +43,9 @@
} }
} }
} }
.tabs { .tabs {
max-height: 2em; max-height: 2em;
border-bottom: solid #782e22; border-bottom: 1px solid var(--color-border-light-primary);
a {
}
} }
.tabContainer { .tabContainer {
height: calc(100% - 2em); height: calc(100% - 2em);
@ -54,17 +55,15 @@
overflow: scroll; overflow: scroll;
} }
} }
.control-area { .control-area {
position: sticky; position: sticky;
display: block; display: block;
min-width: 250px; min-width: 250px;
max-width: 400px; max-width: 45%;
width: 300px; width: 350px;
height: 100%; height: 100%;
padding-right: 5px; padding-right: 5px;
overflow: scroll; overflow: auto;
button { button {
background: rgba(0, 0, 0, 0.05); background: rgba(0, 0, 0, 0.05);
border: 1px solid #bbb; border: 1px solid #bbb;
@ -72,34 +71,30 @@
margin-top: 5px; margin-top: 5px;
padding: 2px; padding: 2px;
} }
.filtercontainer { .filtercontainer {
border: 1px solid #bbb; border: 1px solid #bbb;
border-radius: 5px; border-radius: 5px;
margin-top: 5px; margin-top: 5px;
padding: 2px; padding: 2px;
h3 { h3 {
margin: 0; margin: 0;
cursor: pointer; cursor: pointer;
} }
dl {
dl, margin: 5px 0;
}
div { div {
margin: 5px 0; margin: 5px 0;
} }
dt { dt {
display: inline-block; display: inline-block;
width: 40%; width: 40%;
padding-left: 5px; padding-left: 5px;
} }
dd { dd {
display: inline-block; display: inline-block;
width: 58%; width: 58%;
margin-left: 0; margin-left: 0;
select { select {
width: 100%; width: 100%;
} }
@ -110,7 +105,6 @@
vertical-align: middle; vertical-align: middle;
line-height: 32px; line-height: 32px;
margin: 2px 0; margin: 2px 0;
label { label {
padding: 5px; padding: 5px;
} }
@ -132,37 +126,62 @@
} }
} }
} }
.list-area {
position: sticky;
display: flex;
min-width: 250px;
max-width: 55%;
width: 400px;
height: 100%;
padding-right: 5px;
.loading {
flex: 0;
text-align: center;
}
}
.browser { .browser {
height: 100%; height: 100%;
overflow-y: hidden !important; overflow-y: hidden !important;
.window-content { .window-content {
overflow-y: hidden !important; overflow-y: hidden !important;
} }
ul { ul {
float: right; float: right;
display: block; display: block;
min-width: 335px; min-width: 335px;
width: 785px;
margin: 0; margin: 0;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
padding-left: 5px; 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;
}
}
.item-name {
span {
white-space: break-spaces;
height: inherit;
display: block;
}
}
.feat-tags {
span {
white-space: break-spaces;
height: inherit;
display: block;
}
}
} }
} }
.spacer { .spacer {
display: inline-block; display: inline-block;
min-width: 5px; min-width: 5px;
@ -172,26 +191,59 @@
min-width: 15px; min-width: 15px;
} }
} }
.item-browser {
.item-browser,
.feat-browser,
.spell-browser {
li { li {
cursor: default; cursor: default;
vertical-align: middle; vertical-align: middle;
line-height: 32px; line-height: 16px;
margin: 2px 0; margin: 2px 0;
height: 32px;
.item-image { .item-image {
max-width: 32px; max-width: 32px;
height: 32px; height: 32px;
} }
.item-name { .item-name {
height: 32px;
padding-left: 5px; padding-left: 5px;
flex: 2;
}
.feat-tags {
text-align: right;
margin-right: 3px;
margin-left: 3px;
text-transform: capitalize;
height: 32px;
}
.item-tags {
text-align: right;
margin-right: 3px;
margin-left: 3px;
text-transform: capitalize;
height: 32px;
}
}
}
.feat-browser {
li {
cursor: default;
vertical-align: middle;
line-height: 16px;
margin: 2px 0;
height: 32px;
.item-image {
max-width: 32px;
height: 32px;
}
.item-name {
padding-left: 5px;
flex: 2;
}
.feat-tags {
text-align: right;
margin-right: 3px;
margin-left: 3px;
text-transform: capitalize;
height: 32px;
} }
.feat-tags,
.item-tags { .item-tags {
text-align: right; text-align: right;
margin-right: 3px; margin-right: 3px;
@ -201,8 +253,36 @@
} }
} }
} }
.spell-browser { .spell-browser {
li {
cursor: default;
vertical-align: middle;
line-height: 16px;
margin: 2px 0;
height: 32px;
.item-image {
max-width: 32px;
height: 32px;
}
.item-name {
padding-left: 5px;
flex: 2;
}
.feat-tags {
text-align: right;
margin-right: 3px;
margin-left: 3px;
text-transform: capitalize;
height: 32px;
}
.item-tags {
text-align: right;
margin-right: 3px;
margin-left: 3px;
text-transform: capitalize;
height: 32px;
}
}
.spell { .spell {
.spell-level { .spell-level {
text-align: center; text-align: center;
@ -219,7 +299,6 @@
} }
} }
} }
.npc-browser { .npc-browser {
.npc { .npc {
cursor: default; cursor: default;
@ -229,14 +308,13 @@
.npc-image { .npc-image {
max-width: 64px; max-width: 64px;
height: 64px; height: 64px;
} img {
.npc-image img {
width: 64px; width: 64px;
height: 64px; height: 64px;
border: none; border: none;
object-fit: contain; object-fit: contain;
} }
}
.npc-line { .npc-line {
line-height: 25px; line-height: 25px;
padding: 9px 0 5px 5px; padding: 9px 0 5px 5px;
@ -258,24 +336,19 @@
} }
} }
} }
.settings { .settings {
.settings-group { .settings-group {
border: 1px solid #bbb; border: 1px solid #bbb;
border-radius: 5px; border-radius: 5px;
margin-top: 5px; margin-top: 5px;
padding: 2px; padding: 2px;
h3 { h3 {
margin: 0; margin: 0;
cursor: pointer; cursor: pointer;
} }
label { label {
display: block; display: block;
} }
input {
}
h4 { h4 {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;