colors and filters

This commit is contained in:
2024-08-17 19:23:19 +03:00
parent db37653748
commit 322962403d
38 changed files with 648 additions and 556 deletions
@@ -52,9 +52,7 @@
on:click={(e) => select(e, suggestion)} on:click={(e) => select(e, suggestion)}
on:keypress={(e) => select(e, suggestion)} on:keypress={(e) => select(e, suggestion)}
> >
<span class="dropdown-item">
{suggestion.label} {suggestion.label}
</span>
</div> </div>
{/each} {/each}
{/if} {/if}
+4
View File
@@ -8,6 +8,10 @@
dropdownMenu.classList.remove("hide") dropdownMenu.classList.remove("hide")
} }
export function close() {
dropdownMenu.classList.add("hide")
}
function handleClickOutside() { function handleClickOutside() {
dropdownMenu.classList.add("hide") dropdownMenu.classList.add("hide")
} }
+4 -1
View File
@@ -109,9 +109,12 @@
path: '<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18 17.94 6M18 18 6.06 6"/>', path: '<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18 17.94 6M18 18 6.06 6"/>',
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
}, },
"arrow-left": {
path: '<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12l4-4m-4 4 4 4"/>',
viewBox: "0 0 24 24",
},
}; };
export let width = 16; export let width = 16;
export let height = 16; export let height = 16;
export let icon = ""; export let icon = "";
+158 -72
View File
@@ -1,8 +1,8 @@
<script> <script>
import Icon from "../../common/Icon.svelte"; import Icon from "../../common/Icon.svelte";
import {createEventDispatcher} from "svelte"; import {createEventDispatcher} from "svelte";
import FilterReferenceInput from "./FilterReferenceInput.svelte";
import Dropdown from "../../common/Dropdown.svelte"; import Dropdown from "../../common/Dropdown.svelte";
import FilterReferenceInput from "./FilterReferenceInput.svelte";
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
export let schema; export let schema;
@@ -11,53 +11,14 @@
export let inModal; export let inModal;
export let modalUrl; export let modalUrl;
let dropdown; let dropdown;
let search = ""; let search = "";
let systemFieldsFiltered = systemFields; let systemFieldsFiltered = systemFields;
if (schema.type == "collection") { if (schema.type === "collection") {
systemFieldsFiltered = systemFields.filter((f) => f.files === false); systemFieldsFiltered = systemFields.filter((f) => f.files === false);
} }
let filterableFields = [...schema.fields, ...systemFieldsFiltered].filter(
(f) => !["file", "json"].includes(f.info?.name ?? f.ui)
);
let selectedField;
let selectedInput = "";
$: operatorsFiltered = operators.filter(
(o) => o.uis.includes(selectedField?.info?.name) || o.uis[0] == "*"
);
$: selectedOperator = operatorsFiltered[0];
function addFilter(e) {
e.preventDefault();
let filterPrefix = "";
let filterKey;
if (schema.fields.find(f => f.name === selectedField.name)) {
if (selectedField.info.name == "reference" && selectedOperator.name == "eq") {
filterPrefix = "children." + selectedField.name + ".id";
filterKey = `filter[${filterPrefix}]`;
} else {
filterPrefix = "data.";
filterKey = `filter[${filterPrefix + selectedField.name}_${selectedOperator.name}]`;
}
}
const url = new URL(modalUrl ?? window.location.href);
url.searchParams.set("skip", "0");
url.searchParams.set(filterKey, selectedInput);
if (inModal) {
dispatch("refresh", url);
dropdown.hide()
} else {
window.location = url;
}
}
function submitSearch(e) { function submitSearch(e) {
e.preventDefault(); e.preventDefault();
let filterKeyValue = search.split("=")[0] ?? ""; let filterKeyValue = search.split("=")[0] ?? "";
@@ -79,63 +40,188 @@
} else { } else {
window.location.replace(url); window.location.replace(url);
} }
resetFilters();
} }
// New Start
let selectedInput = null;
let activeField = null;
let activeReference = null;
let activeOperator = null;
let activeMenu = "main";
let activeOperators = null;
let dataFields = [...schema.fields, ...systemFieldsFiltered].filter(
(f) => !["file", "json", "reference"].includes(f.info?.name ?? f.ui)
);
let referenceFields = [...schema.fields].filter(
(f) => ["reference"].includes(f.info?.name ?? f.ui)
);
function selectField(e, field) {
activeField = field;
activeOperators = operators.filter(
(o) => o.uis.includes(activeField?.info?.name) || o.uis[0] === "*"
);
}
function selectReference(e, field) {
activeReference = field;
activeOperator = operators.find(o => o.name === "eq")
}
function applyFilter(e) {
e.preventDefault();
let filterPrefix = "";
let filterKey;
let selectedField = activeField ?? activeReference;
if (schema.fields.find(f => f.name === selectedField.name)) {
if (selectedField.info.name === "reference" && activeOperator.name === "eq") {
filterPrefix = "children." + selectedField.name + ".id";
filterKey = `filter[${filterPrefix}]`;
} else {
filterPrefix = "data.";
filterKey = `filter[${filterPrefix + selectedField.name}_${activeOperator.name}]`;
}
}
const url = new URL(modalUrl ?? window.location.href);
url.searchParams.set("skip", "0");
url.searchParams.set(filterKey, selectedInput);
if (inModal) {
dispatch("refresh", url);
dropdown.close()
} else {
window.location.href = url.toString();
}
resetFilters();
}
function resetFilters() {
activeField = null;
activeOperator = null;
activeMenu = "main";
activeReference = null;
}
</script> </script>
<div class="mx-2 d-flex align-items-center">
<Dropdown bind:this={dropdown} width="300"> <div>
<Dropdown bind:this={dropdown}>
<div slot="button"> <div slot="button">
<Icon icon="filter"/> <Icon icon="filter"/>
<span class="ms-1">Filter</span> <span class="ms-1">Filter</span>
</div> </div>
<div class:hide={activeMenu !== "main"}>
<button class="dropdown-item button" on:click={e => activeMenu = "byField" }>
Filter by field
</button>
<button class="dropdown-item button" on:click={e => activeMenu = "byReference" }>
Filter by Reference
</button>
<button class="dropdown-item button" on:click={e => activeMenu = "advanced" }>
Advanced filter
</button>
</div>
<div class:hide={activeMenu !== "byField"}>
{#if !activeField}
<button class="dropdown-item button" on:click={e => activeMenu = "main" }>
<Icon icon="arrow-left"></Icon>
Back
</button>
{#each dataFields as field}
<button class="dropdown-item button" on:click={e => selectField(e,field)}>
{field.label}
</button>
{/each}
{/if}
<div class="px-3 py-1 d-flex align-items-center"> {#if activeField && !activeOperator}
<select bind:value={selectedField} class="form-select"> <button class="dropdown-item button" on:click={e => activeField = null }>
{#each filterableFields as field} <Icon icon="arrow-left"></Icon>
<option value={field}>{field.label}</option> Back
</button>
<div class="selected-filter">field: {activeField.label}</div>
{#each activeOperators as operator}
<button class="dropdown-item button" on:click={e => activeOperator = operator }>
{operator.label}
</button>
{/each} {/each}
</select> {/if}
</div> {#if activeField && activeOperator}
<div class="px-3 py-1 d-flex align-items-center"> <button class="dropdown-item button" on:click={e => activeOperator = null }>
<select class="form-select" bind:value={selectedOperator}> <Icon icon="arrow-left"></Icon>
{#each operatorsFiltered as operator} Back
<option value={operator}>{operator.label}</option> </button>
{/each} <div class="selected-filter">field: {activeField.label} operator: {activeOperator.label}</div>
</select> <div class="filter-input">
</div>
<div class="px-3 py-1 d-flex align-items-center">
{#if selectedField?.info?.name === "reference" && selectedOperator.name === "eq"}
<FilterReferenceInput field={selectedField} bind:value={selectedInput} on:addFilter={addFilter}/>
{:else}
<input <input
type="text" type="text"
class="form-control" class="form-control"
bind:value={selectedInput} bind:value={selectedInput}
/> />
{/if}
</div> </div>
<div class="px-3 py-1 d-flex align-items-center">
<button <button
on:click={addFilter} on:click={applyFilter}
class="btn btn-outline-primary" class="button applied-filter"
type="button" type="button"
> >
Add filter Add filter
</button> </button>
</div> {/if}
<hr/> </div>
<div><h6 class="dropdown-header">Advanced filters</h6></div> <div class:hide={activeMenu !== "byReference"}>
{#if !activeReference}
<button class="dropdown-item button" on:click={e => activeMenu = "main" }>
<Icon icon="arrow-left"></Icon>
Back
</button>
{#each referenceFields as field}
<button class="dropdown-item button" on:click={e => selectReference(e,field)}>
{field.label}
</button>
{/each}
{/if}
{#if activeReference}
<button class="dropdown-item button" on:click={e => activeReference = null }>
<Icon icon="arrow-left"></Icon>
Back
</button>
<div class="selected-filter">field: {activeReference.label}</div>
<div class="mt-2">
<FilterReferenceInput field={activeReference} bind:value={selectedInput}
on:addFilter={applyFilter}/>
</div>
{/if}
</div>
<div class:hide={activeMenu !== "advanced"}>
<button class="dropdown-item button" on:click={e => activeMenu = "main" }>
<Icon icon="arrow-left"></Icon>
Back
</button>
<form on:submit={submitSearch}> <form on:submit={submitSearch}>
<div class="px-3 py-1 d-flex align-items-center">
<input <input
bind:value={search} bind:value={search}
type="search" type="search"
class="form-control" class="mb-2 mt-2"
placeholder="Advanced filters" placeholder="Advanced filters"
required required
/> />
</div>
<button class="button applied-filter">
Submit
</button>
</form> </form>
</Dropdown>
</div>
</Dropdown>
</div> </div>
@@ -42,36 +42,38 @@
} }
</script> </script>
<div class="reference-tags">
<input <input
type="search" type="search"
on:keyup={updateResults} on:keyup={updateResults}
class="form-control dropdown-toggle"
bind:value={search} bind:value={search}
placeholder={"Search for "+field.label} placeholder={"Search for "+field.label}
data-bs-toggle="dropdown"
autocomplete="off" autocomplete="off"
/> />
<div class="dropdown-menu w-100"> <div class="reference-tags-results">
{#if searchOptions} {#if searchOptions}
{#each searchOptions as option (option.id)} {#each searchOptions as option (option.id)}
<div <div
class="reference-tags-option"
role="button"
tabindex="0"
on:click={(e) => apply(e, option)} on:click={(e) => apply(e, option)}
on:keypress={(e) => apply(e, option)} on:keypress={(e) => apply(e, option)}
> >
<span class="dropdown-item">
{previewTitle(channel.schemas, option)} {previewTitle(channel.schemas, option)}
</span>
</div> </div>
{:else} {:else}
<div
class="start-typing">
Start typing... Start typing...
</div>
{/each} {/each}
{/if} {/if}
</div> </div>
</div>
-3
View File
@@ -58,10 +58,7 @@
</script> </script>
<dialog bind:this={dialogEl}> <dialog bind:this={dialogEl}>
{#if data.schema} {#if data.schema}
<div class="dialog-header"> <div class="dialog-header">
<button <button
type="button" type="button"
class="button" class="button"
@@ -0,0 +1,38 @@
<script>
import Icon from "../common/Icon.svelte";
let dialogEl;
$: data = {};
export function close(e) {
if (e) {
e.preventDefault();
}
dialogEl.close()
}
export function open() {
dialogEl.showModal()
}
</script>
<dialog bind:this={dialogEl}>
<div class="dialog-header">
<button
on:click|preventDefault={close}
type="button"
class="button close"
aria-label="Close"
>
<Icon icon="close"></Icon>
</button>
</div>
<div class="dialog-body" style="min-width: 900px">
<slot/>
</div>
</dialog>
+1 -10
View File
@@ -73,14 +73,5 @@
border-radius: 12px; border-radius: 12px;
padding: 4px; padding: 4px;
} }
.file-preview-small{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 2px;
border-radius: 12px;
padding: 4px;
background: var(--background);
}
</style> </style>
+1 -1
View File
@@ -154,7 +154,7 @@
<div class="record-edit"> <div class="record-edit">
<div class="tools-header"> <div class="tools-header">
<!-- <Manager managerRecords={recordHistory} {graph}/>--> <!-- <Manager managerRecords={recordHistory} {graph}/>-->
<EditHeader {schema} bind:record {isCreateMode} {graph} bind:activeContentTab/> <EditHeader {schema} bind:record {isCreateMode} bind:activeContentTab/>
{#if isCreateMode} {#if isCreateMode}
<button <button
class="button primary btn-spinner" class="button primary btn-spinner"
+4 -6
View File
@@ -21,19 +21,16 @@
} }
}) })
</script> </script>
<div class="editor-field">
{#each backlinks as backlink} {#each backlinks as backlink}
<div style="margin: 0 0 15px;position: relative;"> <div style="margin: 0 0 15px;position: relative;">
<span style=" <span style="
font-size: 14px; font-size: 14px;
margin-bottom: 5px; margin-bottom: 5px;
display: block; display: block;
position: absolute;
top: -9px;
left: 9px;
z-index: 9;
" "
>In <i>{backlink.field}</i></span> >In <i>{backlink.field}</i> of</span>
<PreviewReference <PreviewReference
record={backlink.record} record={backlink.record}
hasDelete={false} hasDelete={false}
@@ -41,3 +38,4 @@
/> />
</div> </div>
{/each} {/each}
</div>
+37 -52
View File
@@ -1,12 +1,14 @@
<script> <script>
import {afterUpdate, createEventDispatcher, onMount,getContext} from "svelte"; import {afterUpdate, createEventDispatcher, getContext, onMount} from "svelte";
import {isEqual} from "lodash"; import {isEqual} from "lodash";
import FormField from "./FormField.svelte"; import FormField from "./FormField.svelte";
import FilePreview from "./FilePreview.svelte"; import FilePreview from "./FilePreview.svelte";
import ContentTabs from "./header/ContentTabs.svelte"; import ContentTabs from "./header/ContentTabs.svelte";
import StatusSelect from "./header/StatusSelect.svelte";
import ErrorAlert from "../common/ErrorAlert.svelte"; import ErrorAlert from "../common/ErrorAlert.svelte";
import EditHeader from "./header/EditHeader.svelte";
import axios from "axios";
import Title from "./header/Title.svelte";
const channel = getContext("channel"); const channel = getContext("channel");
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
@@ -135,7 +137,6 @@
resolve(null); resolve(null);
}) })
.catch(function (error) { .catch(function (error) {
// setOriginalContent();
if (error.response) { if (error.response) {
if (typeof error.response.data.error === "string") { if (typeof error.response.data.error === "string") {
errorMessage = error.response.data.error; errorMessage = error.response.data.error;
@@ -144,9 +145,6 @@
} }
} }
resolve(null); resolve(null);
// msgSuccess = null;
// msgError = error.response.data.error;
// submitted = false;
}); });
}); });
} }
@@ -154,15 +152,45 @@
<svelte:window on:beforeunload={beforeUnload}/> <svelte:window on:beforeunload={beforeUnload}/>
<div class="inline-edit my-4"> <div class="inline-edit record-edit">
<div class="tools-header">
<EditHeader {schema} bind:record {isCreateMode} bind:activeContentTab/>
{#if isCreateMode}
<button
class="button primary btn-spinner"
on:click={save}
>
<span
class="spinner-border spinner-border-sm"
role="status"
aria-hidden="true"
/>
Create
</button>
{:else if hasUnsavedData}
<button
type="button"
class="button primary ms-2 btn btn-primary btn-spinner"
on:click={save}
>
<span
class="spinner-border spinner-border-sm"
role="status"
aria-hidden="true"
/>
Save
</button>
{/if}
</div>
<Title {schema} {record} {isCreateMode}/>
<ErrorAlert message={errorMessage}/> <ErrorAlert message={errorMessage}/>
<div class=" mt-1"> <div class=" mt-4" style="margin-bottom:150px;position:relative;">
<ContentTabs <ContentTabs
{schema} {schema}
{isCreateMode} {isCreateMode}
bind:active={activeContentTab} bind:active={activeContentTab}
{record}
/> />
<FilePreview {record} {schema}/> <FilePreview {record} {schema}/>
<!-- <fieldset disabled="disabled"> --> <!-- <fieldset disabled="disabled"> -->
@@ -181,48 +209,5 @@
{/each} {/each}
<!-- </fieldset> --> <!-- </fieldset> -->
</div> </div>
<div>
<div class="d-flex mt-3 align-items-center justify-content-center">
{#if schema.hasDrafts}
<StatusSelect bind:status={record.status} {schema}/>
{/if}
{#if isCreateMode}
<button
class="ms-2 btn btn-primary btn-spinner"
on:click={save}
>
<span
class="spinner-border spinner-border-sm"
role="status"
aria-hidden="true"
/>
Add
</button>
{:else}
<button
disabled={!hasUnsavedData}
class="ms-2 btn btn-primary btn-spinner"
on:click={save}
>
<span
class="spinner-border spinner-border-sm"
role="status"
aria-hidden="true"
/>
Save
</button>
{/if}
<button class="ms-2 btn btn-link" on:click={cancel}>
cancel
</button>
</div>
</div>
</div> </div>
<style>
.inline-edit {
padding: 44px;
background-color: #eee;
border-radius: 32px;
}
</style>
@@ -10,7 +10,7 @@
>{field.label}</label >{field.label}</label
> >
{#if field.help} {#if field.help}
<small class="help-text">{field.help}</small> <small class="help-text light-text">{field.help}</small>
{/if} {/if}
</div> </div>
<span <span
@@ -51,7 +51,6 @@
{/if} {/if}
<div class="inline-card-wrapper"> <div class="inline-card-wrapper">
<ReferenceInlineButtons <ReferenceInlineButtons
buttonClass="mt-2"
recordId={null} recordId={null}
schemas={collections} schemas={collections}
on:insert={insert} on:insert={insert}
@@ -3,17 +3,15 @@
import Icon from "../../common/Icon.svelte"; import Icon from "../../common/Icon.svelte";
import InlineEdit from "../InlineEdit.svelte"; import InlineEdit from "../InlineEdit.svelte";
import Dialog from "../../dialog/Dialog.svelte"; import Dialog from "../../dialog/Dialog.svelte";
import DialogRecord from "../../dialog/DialogRecord.svelte";
import axios from "axios";
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
// export let field;
// export let buttonLabel = "";
// export let buttonClass = "";
const channel = getContext("channel"); const channel = getContext("channel");
export let schemas; export let schemas;
export let recordId; export let recordId;
$: showOptions = false; $: showOptions = false;
let browseModal; let browseModal;
let dialogRecord;
let inLineCreateRecord; let inLineCreateRecord;
function openBrowseModal(e, schema) { function openBrowseModal(e, schema) {
@@ -25,6 +23,7 @@
e.preventDefault(); e.preventDefault();
console.log("Save inline"); console.log("Save inline");
inLineCreateRecord = null; inLineCreateRecord = null;
dialogRecord.close()
dispatch("save", { dispatch("save", {
records: e.detail.records, records: e.detail.records,
after: recordId, after: recordId,
@@ -47,6 +46,7 @@
.get(channel.lucentUrl + "/records/newInline?schema=" + schemaUId) .get(channel.lucentUrl + "/records/newInline?schema=" + schemaUId)
.then((response) => { .then((response) => {
inLineCreateRecord = response.data; inLineCreateRecord = response.data;
dialogRecord.open()
showOptions = false; showOptions = false;
}) })
.catch((error) => { .catch((error) => {
@@ -110,38 +110,16 @@
</div> </div>
{/if} {/if}
<DialogRecord bind:this={dialogRecord}>
{#if inLineCreateRecord} {#if inLineCreateRecord}
<InlineEdit <InlineEdit
{...inLineCreateRecord} {...inLineCreateRecord}
on:cancel={(e) => (inLineCreateRecord = null)} on:cancel={(e) => (inLineCreateRecord = null)}
on:inlinesaved={save} on:inlinesaved={save}
/> />
{/if} {/if}
</DialogRecord>
<Dialog bind:this={browseModal} on:insert={insert}/> <Dialog bind:this={browseModal} on:insert={insert}/>
<style>
:global(.inline-card-wrapper) {
display: flex;
flex-direction: column;
}
:global(.inline-card-wrapper .inline-card-button) {
visibility: hidden;
}
:global(.inline-card-wrapper .inline-card-button.is-first) {
visibility: visible;
}
:global(.inline-card-wrapper:hover .inline-card-button) {
visibility: visible;
}
.inline-card-button {
/* padding: 0 5px; */
display: inline-block;
z-index: 1;
margin: 10px auto 0;
}
</style>
@@ -114,14 +114,14 @@
on:click={(e) => insert(e, option)} on:click={(e) => insert(e, option)}
on:keypress={(e) => insert(e, option)} on:keypress={(e) => insert(e, option)}
> >
<span class="dropdown-item">
{previewTitle(channel.schemas, option)} {previewTitle(channel.schemas, option)}
</span>
</div> </div>
{:else} {:else}
<div
class="start-typing">
Start typing... Start typing...
</div>
{/each} {/each}
{/if} {/if}
{#if search } {#if search }
@@ -132,9 +132,7 @@
on:click={(e) => saveNew(e,search)} on:click={(e) => saveNew(e,search)}
on:keypress={(e) => saveNew(e,search)} on:keypress={(e) => saveNew(e,search)}
> >
<span class="dropdown-item">
Add "{search}" Add "{search}"
</span>
</div> </div>
{/if} {/if}
</div> </div>
@@ -143,7 +141,7 @@
{#if references.length > 0} {#if references.length > 0}
<div style="display: flex;align-items: center;gap: 4px"> <div style="display: flex;align-items: center;gap: 4px">
{#each references as record (record.id)} {#each references as record (record.id)}
<span class="autocomplete-selected-value"> <span class="reference-tags-selected-value">
<a <a
class="record-title" class="record-title"
href="{channel.lucentUrl}/records/{record.id}" href="{channel.lucentUrl}/records/{record.id}"
+1 -1
View File
@@ -20,7 +20,7 @@
autocomplete="off" autocomplete="off"
readonly={field.readonly && !isCreateMode} readonly={field.readonly && !isCreateMode}
/> />
<div class="system-help-text"> <div class="system-help-text light-text">
Leave this empty to autogenerate from <i>{field.source}</i> Leave this empty to autogenerate from <i>{field.source}</i>
</div> </div>
{#if errorMessage} {#if errorMessage}
@@ -24,7 +24,7 @@
<div style="display: flex;align-items: center; gap:10px;"> <div style="display: flex;align-items: center; gap:10px;">
{#if !isCreateMode} {#if !isCreateMode}
<Dropdown orientation="right"> <Dropdown >
<div slot="button"> <div slot="button">
<Icon icon="ellipsis"/> <Icon icon="ellipsis"/>
</div> </div>
+13 -9
View File
@@ -4,6 +4,12 @@
overflow: visible; overflow: visible;
.autocomplete-option { .autocomplete-option {
cursor: pointer; cursor: pointer;
font-size: 14px;
padding: 3px 10px;
&:hover {
background: var(--p40);
border-radius: 12px;
}
} }
&:focus-within { &:focus-within {
.autocomplete-results{ .autocomplete-results{
@@ -17,19 +23,17 @@
font-size: 13px; font-size: 13px;
margin-top: 10px; margin-top: 10px;
border-radius: 12px; border-radius: 12px;
background: var(--background); background: var(--p30);
filter: brightness(97%);
padding: 3px 10px; padding: 3px 10px;
display: inline-flex; display: inline-flex;
justify-content: center; justify-content: center;
gap: 4px; gap: 4px;
line-height: 22px; line-height: 22px;
&:hover {
background: var(--p40);
}
} }
.autocomplete-selected-value:hover {
opacity: .8;
background-color: #eee;
}
.autocomplete-results { .autocomplete-results {
display: none; display: none;
flex-direction: column; flex-direction: column;
@@ -38,10 +42,10 @@
position: absolute; position: absolute;
border-radius: 12px; border-radius: 12px;
z-index: 20; z-index: 20;
background: var(--background); background: var(--p30);
filter: brightness(97%); //border: 1px solid var(--p40);
transition: 600ms; transition: 600ms;
flex-grow: 1; flex-grow: 1;
top: 45px; top: 45px;
min-width: max-content; width: 100%;
} }
+48 -11
View File
@@ -1,35 +1,49 @@
.button{ .button{
border-radius: 12px; border-radius: 12px;
background: var(--background-button); background: var(--p20);
padding: 3px 10px; padding: 3px 10px;
cursor: pointer; cursor: pointer;
border: 1px solid var(--border-color); border: 0px solid var(--p30);
font-size: 14px; font-size: 14px;
min-height: 27px; min-height: 27px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 4px; gap: 4px;
color: var(--text);
&.secondary{
background: var(--secondary);
}
&.primary{
background: var(--primary);
}
&:focus { &:focus {
filter: brightness(94%);
} }
&:hover { &:hover {
filter: brightness(94%); background: var(--p30);
}
&:active {
background: var(--p50)!important;
box-shadow: none;
} }
&.active { &.active {
filter: brightness(74%); background: var(--p30);
} }
&.secondary{
background: red;
}
&.primary{
background: var(--p70);
color: var(--p10);
&:hover {
background: var(--p90);
}
}
&[disabled] { &[disabled] {
pointer-events: none; pointer-events: none;
opacity: .7;
color: var(--text);
} }
} }
@@ -42,6 +56,8 @@
font-size: 14px; font-size: 14px;
line-height: 14px; line-height: 14px;
font-weight: normal; font-weight: normal;
background: var(--p80)!important;
color: var(--p10);
} }
} }
@@ -51,3 +67,24 @@
background: transparent; background: transparent;
cursor: pointer; cursor: pointer;
} }
.spinner-border {
width: 12px;
height: 12px;
border: 2px solid var(--p10);
border-bottom-color: var(--p30);
border-radius: 50%;
display: inline-block;
box-sizing: border-box;
animation: rotation 1s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
+10 -10
View File
@@ -1,9 +1,9 @@
@supports (-webkit-appearance: none) or (-moz-appearance: none) { @supports (-webkit-appearance: none) or (-moz-appearance: none) {
.checkbox-wrapper input[type=checkbox] { .checkbox-wrapper input[type=checkbox] {
--active-inner: #fff; --active-inner: var(--p10);
--focus: 2px rgba(39, 94, 254, .3); --focus: 2px var(--p30);
--border-hover: #275EFE; --border-hover: var(--p30);
--disabled: #F6F8FF; --disabled: #F6F8FF;
--disabled-inner: #E1E6F9; --disabled-inner: #E1E6F9;
-webkit-appearance: none; -webkit-appearance: none;
@@ -15,8 +15,8 @@
position: relative; position: relative;
margin: 0; margin: 0;
cursor: pointer; cursor: pointer;
border: 1px solid var(--bc, var(--border-color)); border: 1px solid var(--bc, var(--p30));
background: var(--b, var(--background)); background: var(--b, var(--p10));
transition: background 0.3s, border-color 0.3s, box-shadow 0.2s; transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
} }
.checkbox-wrapper input[type=checkbox]:after { .checkbox-wrapper input[type=checkbox]:after {
@@ -28,8 +28,8 @@
transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s); transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
} }
.checkbox-wrapper input[type=checkbox]:checked { .checkbox-wrapper input[type=checkbox]:checked {
--b: var(--secondary); --b: var(--p40);
--bc: var(--secondary); --bc: var(--p40);
--d-o: .3s; --d-o: .3s;
--d-t: .6s; --d-t: .6s;
--d-t-e: cubic-bezier(.2, .85, .32, 1.2); --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
@@ -41,7 +41,7 @@
} }
.checkbox-wrapper input[type=checkbox]:disabled:checked { .checkbox-wrapper input[type=checkbox]:disabled:checked {
--b: var(--disabled-inner); --b: var(--disabled-inner);
--bc: var(--border-color); --bc: var(--p40);
} }
.checkbox-wrapper input[type=checkbox]:disabled + label { .checkbox-wrapper input[type=checkbox]:disabled + label {
cursor: not-allowed; cursor: not-allowed;
@@ -95,8 +95,8 @@
} }
.checkbox-wrapper input[type=checkbox]:indeterminate { .checkbox-wrapper input[type=checkbox]:indeterminate {
--b: var(--secondary); --b: var(--p40);
--bc: var(--secondary); --bc: var(--p40);
--d-o: .3s; --d-o: .3s;
--d-t: .6s; --d-t: .6s;
--d-t-e: cubic-bezier(.2, .85, .32, 1.2); --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
+15 -1
View File
@@ -1,5 +1,19 @@
.is-editable-false{ .is-editable-false{
.cm-content{ .cm-content{
background-color: #f5f5f5; background-color: var(--p10);
} }
} }
.cm-focused{
.cm-content{
background-color: var(--p10);
}
}
.cm-content{
background-color: var(--p20);
}
.cm-activeLine{
background-color: var(--p20)!important;
}
+3 -2
View File
@@ -18,11 +18,12 @@ dialog {
background-color: #fff; background-color: #fff;
padding: 34px; padding: 34px;
border: none; border: none;
border-radius: 5px; border-radius: 12px;
overflow: auto; overflow: auto;
max-height: 96vh; max-height: 96vh;
box-shadow: none;
//position: relative; //position: relative;
z-index: 2;
.close { .close {
position: absolute; position: absolute;
top: 10px; top: 10px;
+9 -6
View File
@@ -19,13 +19,13 @@
position: absolute; position: absolute;
border-radius: 12px; border-radius: 12px;
z-index: 20; z-index: 20;
background: var(--background); background: var(--p20);
filter: brightness(97%);
transition: 600ms; transition: 600ms;
flex-grow: 1; flex-grow: 1;
top: 35px; top: 35px;
min-width: max-content; min-width: max-content;
&.orientation-right { &.orientation-right {
right: 0; right: 0;
} }
@@ -42,8 +42,6 @@
align-items: center; align-items: center;
gap: 3px; gap: 3px;
text-wrap: nowrap; text-wrap: nowrap;
} }
.dropdown-header { .dropdown-header {
@@ -53,11 +51,16 @@
.dropdown-item { .dropdown-item {
font-size: 14px; font-size: 14px;
padding: 3px 10px; padding: 3px 10px;
&:hover { &:hover {
background: var(--background); background: var(--p30);
filter: brightness(97%);
border-radius: 12px; border-radius: 12px;
button {
background: var(--p30);
} }
}
.button-icon { .button-icon {
flex-shrink: 0; flex-shrink: 0;
+19 -8
View File
@@ -7,24 +7,35 @@ label {
input[type=text],input[type=number],input[type=search],textarea{ input[type=text],input[type=number],input[type=search],textarea{
width: 100%; width: 100%;
} background: var(--p20);
border: 1px solid var(--p50);
input[type=text],input[type=number],input[type=search],textarea{
background: var(--input-bg);
border: 1px solid var(--border-color);
border-radius: 5px; border-radius: 5px;
padding: 5px 7px; padding: 5px 7px;
font-size: 16px; font-size: 16px;
filter: brightness(95%); &:focus{
background: var(--p10);
} }
input[type=text]:focus,textarea:focus{
filter: brightness(101%);
} }
textarea{ textarea{
resize: none; resize: none;
} }
select{
width: 100%;
background: var(--p20);
border: 1px solid var(--p50);
border-radius: 5px;
padding: 5px 7px;
font-size: 16px;
&:focus{
background: var(--p10);
}
}
.htmx-indicator { .htmx-indicator {
display: none; display: none;
} }
+3 -2
View File
@@ -5,13 +5,14 @@
} }
.main-content { .main-content {
width: 100%;
position: relative; position: relative;
width: fit-content;
min-width: 900px;
} }
.main-wrapper { .main-wrapper {
display: flex; display: flex;
justify-content: center;
gap: 40px; gap: 40px;
padding: 20px; padding: 20px;
position: relative; position: relative;
+12 -15
View File
@@ -1,32 +1,29 @@
.notice { .notice {
background-color: var(--background); background-color: var(--p20);
padding: 25px 14px 14px; padding: 14px;
margin: 2rem 0; margin: 2rem 0;
filter: brightness(1.03);
position: relative; position: relative;
font-size: 16px; font-size: 16px;
line-height: 24px; line-height: 24px;
border: 3px solid var(--border-color); border-radius: 12px;
//border: 3px solid var(--border-base);
} }
.notice .title { .notice .title {
content: "NOTE"; content: "NOTE";
position: absolute; //position: absolute;
background: var(--background); border-radius: 12px;
min-width: 90px;
border: 3px solid var(--border-color);
color: var(--text);
display: block; display: block;
text-align: center;
left: 14px;
top: -18px;
padding: 2px 10px;
font-weight: bold; font-weight: bold;
} }
.notice.success{ .notice.success{
border-color: var(--success); border-color: green;
& .title{ & .title{
border-color: var(--success); border-color: green;
} }
} }
.notice.notice-error{
background: var(--err10);
}
+5 -3
View File
@@ -14,9 +14,11 @@
font-size: 14px; font-size: 14px;
border-radius: 12px; border-radius: 12px;
padding: 4px 18px; padding: 4px 18px;
background: var(--background); background: var(--p20);
filter: brightness(90%); &:hover{
background: var(--p30);
}
} }
@@ -27,7 +29,7 @@
&.active { &.active {
span{ span{
background: var(--secondary); background: var(--p30);
} }
+26 -7
View File
@@ -3,7 +3,7 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 10px; gap: 10px;
background: var(--background-2); background: var(--p10);
border-radius: 12px; border-radius: 12px;
.image{ .image{
@@ -18,19 +18,38 @@
} }
&:hover{ &:hover{
background: var(--background-3); background: var(--p30);
.trash-action{ .trash-action{
display: block; display: block;
} }
} }
} }
.preview-reference{
background: var(--background-2); .file-preview-small{
padding: 10px 20px; display: flex;
margin-bottom: 4px; flex-direction: column;
justify-content: center;
align-items: center;
gap: 2px;
border-radius: 12px;
padding: 4px;
//background: var(--p10);
} }
.preview-reference{
background: var(--p10);
padding: 10px 20px;
}
.sortable-container {
display: flex;
flex-direction: column;
gap: 5px;
}
.sortable-ghost{ .sortable-ghost{
border: 2px dashed var(--primary); border: 2px dashed var(--p60);
} }
.sortable-drag { opacity: 0 !important; } .sortable-ghost { opacity: 1 !important; } .sortable-drag { opacity: 0 !important; } .sortable-ghost { opacity: 1 !important; }
+10 -6
View File
@@ -2,7 +2,7 @@
position: relative; position: relative;
.invalid-feedback { .invalid-feedback {
color: var(--error); color: var(--text-error);
font-size: 15px; font-size: 15px;
line-height: 20px; line-height: 20px;
margin-top: 10px; margin-top: 10px;
@@ -33,17 +33,23 @@
z-index: 20; z-index: 20;
padding: 10px; padding: 10px;
border-radius: 12px; border-radius: 12px;
background: var(--background); background: var(--p20);
filter: brightness(97%);
} }
.editor-field { .editor-field {
background: var(--background-stack); background: var(--p20);
padding: 18px; padding: 18px;
position: relative; position: relative;
border-radius: 12px; border-radius: 12px;
margin: 6px 0; margin: 6px 0;
border-color: transparent; border-color: transparent;
.button{
background: var(--p30);
&:hover{
background: var(--p40);
}
}
} }
.field-header { .field-header {
@@ -71,7 +77,6 @@
.help-text { .help-text {
font-size: 14px; font-size: 14px;
opacity: .7;
line-height: 14px line-height: 14px
} }
@@ -83,7 +88,6 @@
.system-help-text { .system-help-text {
font-size: 14px; font-size: 14px;
opacity: .7;
line-height: 14px; line-height: 14px;
margin-top: 10px; margin-top: 10px;
} }
+24 -10
View File
@@ -1,34 +1,42 @@
.reference-tags { .reference-tags {
position: relative; position: relative;
z-index: 20; z-index: 20;
.reference-tags-option { .reference-tags-option {
cursor: pointer; cursor: pointer;
font-size: 14px;
padding: 3px 10px;
&:hover {
background: var(--p40);
border-radius: 12px;
} }
}
&:focus-within { &:focus-within {
.reference-tags-results { .reference-tags-results {
display: flex; display: flex;
} }
} }
} }
.reference-tags-selected-value { .reference-tags-selected-value {
font-size: 13px; font-size: 13px;
margin-top: 10px; margin-top: 10px;
border-radius: 12px; border-radius: 12px;
background: var(--background); background: var(--p30);
filter: brightness(97%);
padding: 3px 10px; padding: 3px 10px;
display: inline-flex; display: inline-flex;
justify-content: center; justify-content: center;
gap: 4px; gap: 4px;
line-height: 22px; line-height: 22px;
&:hover {
background: var(--p40);
}
} }
.reference-tags-selected-value:hover {
opacity: .8;
background-color: #eee;
}
.reference-tags-results { .reference-tags-results {
display: none; display: none;
flex-direction: column; flex-direction: column;
@@ -37,10 +45,16 @@
position: absolute; position: absolute;
border-radius: 12px; border-radius: 12px;
z-index: 20; z-index: 20;
background: var(--background); background: var(--p30);
filter: brightness(97%); //border: 2px solid var(--background-2);
transition: 600ms; transition: 600ms;
flex-grow: 1; flex-grow: 1;
top: 45px; top: 45px;
min-width: max-content; width: 100%;
.start-typing {
font-style: italic;
font-size: 13px;
}
} }
+10 -16
View File
@@ -1,24 +1,22 @@
.sidebar-top{ .sidebar-top{
border: 0px solid var(--p30);
font-size: 18px; font-size: 18px;
padding: 20px 20px ; padding: 20px 20px ;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
background: var(--background); background: var(--p20);
filter: brightness(97%);
margin-bottom: 15px; margin-bottom: 15px;
border-radius: 12px; border-radius: 12px;
} }
.sidebar { .sidebar {
border: 0px solid var(--border-color); //border: 1px solid var(--border-context);
border-radius: 12px; border-radius: 12px;
font-size: 15px; font-size: 15px;
line-height: 28px; line-height: 28px;
padding: 20px; padding: 20px;
background: var(--background); background: var(--p20);
filter: brightness(97%);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 3px; gap: 3px;
@@ -29,17 +27,15 @@
cursor: pointer; cursor: pointer;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
background: var(--background); background: var(--p30);
font-size: 16px; font-size: 16px;
padding: 3px 12px 6px; padding: 3px 12px 6px;
color: var(--text); color: var(--text);
filter: brightness(94%);
border: none; border: none;
//border-bottom: 0px solid var(--border-color);
border-radius: 12px; border-radius: 12px;
&:hover { &:hover {
background: var(--secondary); background: var(--p40);
} }
&:first-child { &:first-child {
@@ -57,7 +53,6 @@
font-size: 14px; font-size: 14px;
padding: 3px 12px; padding: 3px 12px;
text-decoration: none; text-decoration: none;
border-bottom: 0px solid var(--border-color);
transition: 600ms; transition: 600ms;
border-radius: 12px; border-radius: 12px;
&:last-child { &:last-child {
@@ -65,11 +60,11 @@
} }
&:hover { &:hover {
background: var(--secondary); background: var(--p30);
} }
&.active { &.active {
background: var(--secondary); background: var(--p40);
} }
} }
@@ -82,10 +77,9 @@
.top-nav-item{ .top-nav-item{
border-radius: 12px; border-radius: 12px;
font-size: 14px; font-size: 14px;
filter: brightness(97%); background: var(--p20);
background: var(--background);
padding: 3px 10px ; padding: 3px 10px ;
&:hover { &:hover {
background: var(--secondary); background: var(--p30);
} }
} }
+5 -5
View File
@@ -2,7 +2,7 @@ input.switch {
-webkit-appearance: none; -webkit-appearance: none;
width: 34px; width: 34px;
height: 18px; height: 18px;
border: 2px solid var(--border-color); border: 1px solid var(--p40);
position: relative; position: relative;
border-radius: 50px; border-radius: 50px;
box-sizing: content-box; box-sizing: content-box;
@@ -18,17 +18,17 @@ input.switch::after {
content: " "; content: " ";
width: 14px; width: 14px;
height: 14px; height: 14px;
background: var(--border-color); background: var(--p40);
box-shadow: inset 0 0 0px 1px var(--border-color); box-shadow: inset 0 0 0px 1px var(--p40);
position: absolute; position: absolute;
border-radius: 50px; border-radius: 50px;
} }
input.switch:checked { input.switch:checked {
background: var(--secondary); background: var(--p50);
} }
input.switch:checked::after { input.switch:checked::after {
left: calc(100% - 17px); left: calc(100% - 17px);
background: var(--background); background: var(--p10);
} }
+33 -11
View File
@@ -1,27 +1,44 @@
.table { .table {
min-width: 600px; min-width: 600px;
overflow: auto; overflow: auto;
border-radius: 12px; background: var(--p20);
padding: 20px; padding: 1px;
background: var(--background);
filter: brightness(97%);
font-size: 14px; font-size: 14px;
border-radius: 12px;
table { table {
background: var(--p20);
width: 100%; width: 100%;
border-collapse:separate;
border: none;
border-spacing: 0;
}
thead{
border-radius: 12px;
tr{
border-radius: 12px;
}
} }
th { th {
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
white-space: nowrap; white-space: nowrap;
max-width: 400px; max-width: 400px;
border: none;
background: var(--p20);
text-align: left; text-align: left;
padding: 8px 16px; padding: 8px 16px;
background: var(--background);
filter: brightness(90%);
&.is-sort { &.is-sort {
font-weight: 700; font-weight: 700;
} }
&:first-child{
border-radius: 12px 0 0 0 ;
}
&:last-child{
border-radius: 0 12px 0 0;
}
} }
td { td {
@@ -30,7 +47,7 @@
max-width: 400px; max-width: 400px;
height: 48px; height: 48px;
padding: 4px 16px; padding: 4px 16px;
border: none;
overflow: hidden; overflow: hidden;
@@ -39,7 +56,7 @@
//} //}
.status{ .status{
color:var(--accent); color:var(--text);
font-size: 80%; font-size: 80%;
} }
.row-name{ .row-name{
@@ -56,15 +73,20 @@
line-height: 14px; line-height: 14px;
} }
} }
tbody{
tr { tr {
background: var(--background); border-radius: 12px;
background: var(--p10);
border: none;
&:has(input:checked){ &:has(input:checked){
filter: brightness(90%); background: var(--p30);
} }
&:hover{ &:hover{
box-shadow: inset 0em 0em 0em 10em rgba(0, 0, 0, 0.1); background: var(--p20);
} }
} }
}
tr:nth-child(odd) { tr:nth-child(odd) {
//background-color: #f9f9f9; //background-color: #f9f9f9;
-1
View File
@@ -6,6 +6,5 @@
.tab{ .tab{
list-style: none; list-style: none;
} }
} }
+27 -6
View File
@@ -7,14 +7,36 @@
input.search{ input.search{
border-radius: 12px; border-radius: 12px;
background: var(--background); background: var(--p20);
padding: 3px 10px; padding: 4px 10px;
cursor: pointer; cursor: pointer;
filter: brightness(97%);
border: none; border: none;
font-size: 14px; font-size: 14px;
} }
.selected-filter{
font-size: 13px;
border-radius: 12px;
margin: 2px 0;
background: var(--p30);
padding: 3px 10px;
display: flex;
gap: 4px;
line-height: 22px;
}
.filter-input{
margin: 10px 0 ;
input{
font-size: 13px;
}
}
.applied-filter{
background: var(--p30);
}
} }
.toolbar-filters{ display: flex; .toolbar-filters{ display: flex;
align-items: center; align-items: center;
@@ -28,7 +50,7 @@
.applied-filter { .applied-filter {
font-size: 13px; font-size: 13px;
border-radius: 12px; border-radius: 12px;
background: var(--background); background: var(--p20);
padding: 3px 10px; padding: 3px 10px;
display: flex; display: flex;
justify-content: center; justify-content: center;
@@ -37,7 +59,6 @@
} }
.applied-filter:hover { .applied-filter:hover {
opacity: .8; background-color: var(--p30);
background-color: #eee;
} }
} }
+5 -19
View File
@@ -31,26 +31,12 @@
} }
} }
.title-separator{
font-size: 20px;
text-align: center;
padding: 30px 0 10px;
margin-bottom: 30px;
position: relative;
border-bottom: 1px solid var(--border-color);
//&:after {
// position: absolute;
// left: 0;
// right: 0;
// top: 70px;
// margin: auto;
// display: block;
// width: 270px;
// border-bottom: 1px solid var(--border-color);
// content: "";
//}
}
.lx-small-text { .lx-small-text {
font-size: 12px; font-size: 12px;
line-height: 15px; line-height: 15px;
}
.light-text{
color: var(--text-light);
} }
+36 -152
View File
@@ -1,138 +1,35 @@
// Include any default variable overrides here (though functions won't be available)
/* SCSS HEX */
$green-crayola: #0dab76ff;
$green-pigment: #139a43ff;
$lincoln-green: #0b5d1eff;
$forest-green-traditional: #053b06ff;
$black: #000000ff;
$dark: #000000ff;
$white: #ffffff;
$light: #eee;
$danger: red;
/* SCSS Gradient */
$gradient-top: linear-gradient(
0deg,
#0dab76ff,
#139a43ff,
#0b5d1eff,
#053b06ff,
#000000ff
);
$gradient-right: linear-gradient(
90deg,
#0dab76ff,
#139a43ff,
#0b5d1eff,
#053b06ff,
#000000ff
);
$gradient-bottom: linear-gradient(
180deg,
#0dab76ff,
#139a43ff,
#0b5d1eff,
#053b06ff,
#000000ff
);
$gradient-left: linear-gradient(
270deg,
#0dab76ff,
#139a43ff,
#0b5d1eff,
#053b06ff,
#000000ff
);
$gradient-top-right: linear-gradient(
45deg,
#0dab76ff,
#139a43ff,
#0b5d1eff,
#053b06ff,
#000000ff
);
$gradient-bottom-right: linear-gradient(
135deg,
#0dab76ff,
#139a43ff,
#0b5d1eff,
#053b06ff,
#000000ff
);
$gradient-top-left: linear-gradient(
225deg,
#0dab76ff,
#139a43ff,
#0b5d1eff,
#053b06ff,
#000000ff
);
$gradient-bottom-left: linear-gradient(
315deg,
#0dab76ff,
#139a43ff,
#0b5d1eff,
#053b06ff,
#000000ff
);
$gradient-radial: radial-gradient(
#0dab76ff,
#139a43ff,
#0b5d1eff,
#053b06ff,
#000000ff
);
$primary: #5b86be;
$secondary: #d9cca1;
$success: #80c671;
$background: #f4f6fa;
$table-striped-bg-factor: 0.03;
$dropdown-bg: rgb(206, 223, 210);
//https://www.realtimecolors.com/?colors=04060b-f4f6fa-5b86be-d9cca1-80c671&fonts=Anek Telugu-Anek Telugu
$themes: (
light: (
text: #04060b,
background: #f4f6fa,
primary: #5b86be,
secondary: #d9cca1,
accent: #80c671,
),
dark: (
text: #f4f6fb,
background: #05070a,
primary: #416ca4,
secondary: #5e5126,
accent: #488e39,
),
);
:root { :root {
--linearPrimarySecondary: linear-gradient(#5b86be, #d9cca1);
--linearPrimaryAccent: linear-gradient(#5b86be, #80c671);
--linearSecondaryAccent: linear-gradient(#d9cca1, #80c671);
--radialPrimarySecondary: radial-gradient(#5b86be, #d9cca1);
--radialPrimaryAccent: radial-gradient(#5b86be, #80c671);
--radialSecondaryAccent: radial-gradient(#d9cca1, #80c671);
--border-color: #cecece;
--main-font: Open Sans, Arial, Helvetica, sans-serif;
--main-font-color: #444;
--input-bg: rgb(245, 245, 249);
--text: #010b05;
--background: #f7fefa;
--background-stack: #f0f6f3;
--background-2: #E8EBEAFF;
--background-3: #C2C7C5FF;
--background-button: #ddd;
--primary: #1ce776;
--secondary: #7bc8f1;
--accent: #5086ed;
--success: #80c671;
--error: red;
--p10: #f4f9ff;
--p20: #eaf1f9;
--p30: #b3ceff;
--p40: #8db5ff;
--p50: #70a2ff;
--p60: #679cff;
--p70: #4284ff;
--p80: #1c6bff;
--p90: #002b7a;
--p100: #000C23;
--err10: #ffb9d0;
--err20: #ff9bb3;
--err30: #fe7e97;
--err40: #de617b;
--err50: #be4461;
--err80: #61001a;
--err90: #560012;
--grey-dark: #424656;
--grey-light: #a6abbd;
--text: var(--p100);
--text-light: var(--grey-dark);
--text-error: var(--err50);
--main-font: Open Sans, Arial, Helvetica, sans-serif;
} }
@@ -163,8 +60,14 @@ $themes: (
@import "./reference-tags"; @import "./reference-tags";
body { body {
background-color: var(--background); background-color: var(--p10);
font-family: var(--main-font), sans-serif; font-family: var(--main-font), sans-serif;
color: var(--text);
:focus {
outline: none;
box-shadow: 0 0 1px 2px var(--p70);
}
} }
.btn-spinner .spinner-border { .btn-spinner .spinner-border {
@@ -185,25 +88,6 @@ a {
text-decoration: none; text-decoration: none;
} }
.spinner-border {
width: 9px;
height: 9px;
border: 2px solid #FFF;
border-bottom-color: #FF3D00;
border-radius: 50%;
display: inline-block;
box-sizing: border-box;
animation: rotation 1s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.lucent-component { .lucent-component {
position: relative; position: relative;
+2
View File
@@ -145,6 +145,7 @@ final class Query
$query = DB::table("records"); $query = DB::table("records");
$query = $this->parseFilters($query); $query = $this->parseFilters($query);
$query = $this->findNotLinked($query); $query = $this->findNotLinked($query);
if ($this->options->limit > 0) { if ($this->options->limit > 0) {
$query->limit($this->options->limit); $query->limit($this->options->limit);
$query->offset($this->options->skip); $query->offset($this->options->skip);
@@ -191,6 +192,7 @@ final class Query
$query = DB::table("records"); $query = DB::table("records");
$query = $this->parseFilters($query); $query = $this->parseFilters($query);
$query = $this->findNotLinked($query);
$graph = $this->run(); $graph = $this->run();
$graph->total = $query->count(); $graph->total = $query->count();
return $graph; return $graph;