mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
initial style in compedium browser
This commit is contained in:
parent
845d72e20c
commit
1eae802c46
6 changed files with 244 additions and 110 deletions
|
|
@ -1,10 +1,12 @@
|
|||
@scrollbar-width: 20px;
|
||||
#itemBrowser {
|
||||
@import '../../utils/colors.less';
|
||||
@import '../../utils/fonts.less';
|
||||
|
||||
.application.daggerheart.dh-style.compendium-browser {
|
||||
border: initial;
|
||||
.window-content {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 50px;
|
||||
padding: 0px;
|
||||
|
||||
> div {
|
||||
overflow: hidden;
|
||||
|
|
@ -13,80 +15,104 @@
|
|||
gap: 20px;
|
||||
}
|
||||
|
||||
div[data-application-part="list"] {
|
||||
div[data-application-part='list'] {
|
||||
flex: 1;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.compendium-container {
|
||||
summary {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-weight: bold;
|
||||
padding: 2px 12px;
|
||||
border-radius: 3px;
|
||||
background-color: light-dark(#18162e, #f3c267);
|
||||
color: light-dark(#efe6d8, #18162e);
|
||||
list-style: none;
|
||||
.compedium-sidebar {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
padding: 16px;
|
||||
|
||||
&::marker, /* Latest Chrome, Edge, Firefox */
|
||||
&::-webkit-details-marker /* Safari */ {
|
||||
display: none;
|
||||
}
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: 0;
|
||||
background: @golden;
|
||||
mask-image: linear-gradient(180deg, transparent 0%, black 50%, transparent 100%);
|
||||
width: 1px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
> .folder-list {
|
||||
padding: 10px;
|
||||
gap: 0;
|
||||
.compendium-container {
|
||||
summary {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-family: @font-subtitle;
|
||||
font-weight: bold;
|
||||
padding: 2px 12px;
|
||||
color: light-dark(@dark, @beige);
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
|
||||
> div {
|
||||
&.folder-list {
|
||||
> div {
|
||||
margin-top: 5px;
|
||||
}
|
||||
&::marker, // Latest Chrome, Edge, Firefox
|
||||
&::-webkit-details-marker // Safari
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.folder-list) {
|
||||
margin-top: 10px;
|
||||
> .folder-list {
|
||||
padding: 10px;
|
||||
gap: 0;
|
||||
|
||||
> div {
|
||||
&.folder-list {
|
||||
> div {
|
||||
margin-top: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu-path, option, select {
|
||||
.compedium-results {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.menu-path,
|
||||
option,
|
||||
select {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.menu-path > :first-child {
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.menu-path {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
> span {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-weight: bold;
|
||||
padding: 2px 12px;
|
||||
border-radius: 3px;
|
||||
background-color: light-dark(#18162e, #f3c267);
|
||||
color: light-dark(#efe6d8, #18162e);
|
||||
gap: 10px;
|
||||
|
||||
.item-path {
|
||||
font-family: @font-body;
|
||||
color: light-dark(@dark, @beige);
|
||||
|
||||
&.path-link {
|
||||
padding: 0 5px;
|
||||
background-color: light-dark(#f3c267, #18162e);
|
||||
color: light-dark(#18162e, #efe6d8);
|
||||
color: light-dark(@dark, @beige);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.folder-list, .item-list-header, .item-header > div {
|
||||
.folder-list,
|
||||
.item-list-header,
|
||||
.item-header > div {
|
||||
gap: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.item-filter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
|
||||
.wrapper, .form-group {
|
||||
.wrapper,
|
||||
.form-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
|
|
@ -100,6 +126,47 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
|
||||
.search-bar {
|
||||
position: relative;
|
||||
color: light-dark(@dark-blue-50, @beige-50);
|
||||
width: 100%;
|
||||
|
||||
input {
|
||||
border-radius: 50px;
|
||||
font-family: @font-body;
|
||||
background: light-dark(@dark-blue-10, @golden-10);
|
||||
border: none;
|
||||
outline: 2px solid transparent;
|
||||
transition: all 0.3s ease;
|
||||
padding: 0 20px;
|
||||
width: 100%;
|
||||
|
||||
&:hover {
|
||||
outline: 2px solid light-dark(@dark, @golden);
|
||||
}
|
||||
|
||||
&:placeholder {
|
||||
color: light-dark(@dark-blue-50, @beige-50);
|
||||
}
|
||||
|
||||
&::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none;
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
align-content: center;
|
||||
height: 32px;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
font-size: 16px;
|
||||
z-index: 1;
|
||||
color: light-dark(@dark-blue-50, @beige-50);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -107,25 +174,36 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
[data-folder-id] {
|
||||
padding: 2px 12px;
|
||||
padding: 5px 10px;
|
||||
border: 1px solid transparent;
|
||||
font-family: @font-body;
|
||||
transition: all 0.1s ease;
|
||||
}
|
||||
|
||||
.is-selected, > [data-folder-id]:hover {
|
||||
.is-selected,
|
||||
[data-folder-id]:hover {
|
||||
font-weight: bold;
|
||||
border-radius: 3px;
|
||||
background-color: light-dark(transparent, #18162e);
|
||||
color: light-dark(#18162e, #f3c267);
|
||||
border-color: light-dark(#18162e, #f3c267);
|
||||
background-color: light-dark(@dark-blue-40, @golden-40);
|
||||
color: light-dark(@dark-blue, @golden);
|
||||
}
|
||||
|
||||
.subfolder-list {
|
||||
margin: 0 10px;
|
||||
margin: 5px 0;
|
||||
gap: 0;
|
||||
|
||||
.is-selected,
|
||||
[data-folder-id]:hover {
|
||||
font-weight: bold;
|
||||
border-radius: 3px;
|
||||
background-color: light-dark(@dark-blue-10, @golden-10);
|
||||
color: light-dark(@dark-blue, @golden);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item-list-header, .item-header > div {
|
||||
.item-list-header,
|
||||
.item-header > div {
|
||||
display: grid;
|
||||
grid-template-columns: 40px 400px repeat(auto-fit, minmax(100px, 1fr));
|
||||
align-items: center;
|
||||
|
|
@ -133,9 +211,12 @@
|
|||
// gap: 10px;
|
||||
}
|
||||
|
||||
.item-list-header, .item-list {
|
||||
.item-list-header,
|
||||
.item-list {
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
|
||||
}
|
||||
|
||||
.item-list-header {
|
||||
|
|
@ -153,7 +234,7 @@
|
|||
|
||||
.item-container {
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, .1);
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -167,10 +248,11 @@
|
|||
}
|
||||
|
||||
.filter-content {
|
||||
padding: 0 10px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.filter-content, .item-desc {
|
||||
.filter-content,
|
||||
.item-desc {
|
||||
display: grid;
|
||||
grid-template-rows: 0fr;
|
||||
transition: all 0.3s ease-in-out;
|
||||
|
|
@ -178,13 +260,20 @@
|
|||
overflow: hidden;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
padding: 0;
|
||||
|
||||
.form-group {
|
||||
label {
|
||||
flex: 1;
|
||||
font-family: @font-body;
|
||||
}
|
||||
.form-fields {
|
||||
flex: 2;
|
||||
|
||||
input[type='number'] {
|
||||
text-align: center;
|
||||
color: light-dark(@dark, @beige);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -197,8 +286,20 @@
|
|||
|
||||
.welcome-message {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: -webkit-fill-available;
|
||||
margin: 0;
|
||||
|
||||
.title {
|
||||
font-family: @font-subtitle;
|
||||
margin: 0;
|
||||
}
|
||||
.hint {
|
||||
font-family: @font-body;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue