unclean SPARC
This commit is contained in:
@@ -0,0 +1,192 @@
|
||||
<style>
|
||||
.templitor > header { background: url('/app/assets/images/cards/templitorHeader.png') center/cover no-repeat; }
|
||||
.templitor .search-bar{
|
||||
grid-template-columns: auto min-content;
|
||||
align-items: baseline;
|
||||
}
|
||||
.templitor .library .row {
|
||||
display: grid;
|
||||
grid-template-columns: auto 120px 120px;
|
||||
}
|
||||
.templitor .library .dataset .row:hover {
|
||||
background-color: var(--eicui-base-color-grey-5) !important;
|
||||
box-shadow:
|
||||
inset 0 2px 4px rgba(0, 0, 0, 0.2),
|
||||
inset 0 -1px 0 rgba(255, 255, 255, 0.4) !important;
|
||||
transform: translateY(2px) !important;
|
||||
}
|
||||
.templitor .library .dataset .row.selected {
|
||||
background-color: var(--eicui-base-color-grey-5) !important;
|
||||
border-left: 5px solid var(--eicui-base-color-info);
|
||||
box-shadow:
|
||||
inset 0 2px 4px rgba(0, 0, 0, 0.2),
|
||||
inset 0 -1px 0 rgba(255, 255, 255, 0.4) !important;
|
||||
transform: translateY(2px) !important;
|
||||
}
|
||||
.templitor .library .dataset .row .cell:nth-child(3),
|
||||
.templitor .library .dataset .row .cell:nth-child(4) {
|
||||
text-align: center;
|
||||
}
|
||||
.templitor .library.thumbs header,
|
||||
.templitor .library.thumbs footer { display:none; }
|
||||
.templitor .library .dataset { max-height: 50vh; }
|
||||
.templitor .library.thumbs .dataset { max-height: 55vh; }
|
||||
.templitor .library.thumbs .dataset .row {
|
||||
display: inline-grid;
|
||||
width: 320px;
|
||||
grid-template-columns: none;
|
||||
border-left: 4px solid var(--app-color-info);
|
||||
margin: var(--eicui-base-spacing-xs);
|
||||
background: var(--eicui-base-color-white);
|
||||
padding: var(--eicui-base-spacing-2xs);
|
||||
box-shadow: 3px 3px var(--eicui-base-color-grey-20);
|
||||
border-top: 1px solid var(--eicui-base-color-grey-20);
|
||||
}
|
||||
.templitor .tplInfos{
|
||||
display: inline-block;
|
||||
}
|
||||
.templitor .library.thumbs .dataset .row .cell:nth-child(2) {
|
||||
font-weight: bold;
|
||||
grid-column: 1 / 3;
|
||||
}
|
||||
.templitor .library.thumbs .dataset .row .cell:nth-child(3) { grid-row: 2; grid-column: 1; text-align:left; }
|
||||
.templitor .library.thumbs .dataset .row .cell:nth-child(4) {
|
||||
grid-row: 2;
|
||||
grid-column: 2;
|
||||
text-align: right;
|
||||
}
|
||||
.templitor .tpl-createButton{
|
||||
float: right;
|
||||
}
|
||||
.templitor .tpl-filters {
|
||||
padding: var(--eicui-base-spacing-s) 0;
|
||||
display: grid;
|
||||
grid-auto-flow: column;
|
||||
grid-gap: var(--eicui-base-spacing-m);
|
||||
width: fit-content;
|
||||
}
|
||||
.templitor .preview {
|
||||
width: 40vw;
|
||||
transition: all 0.6s ;
|
||||
opacity: 1;
|
||||
}
|
||||
.templitor .preview[disabled] { width: 0; opacity:0; }
|
||||
.templitor .preview .html {
|
||||
border: 1px solid #ccc;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
position: inherit;
|
||||
overflow: auto;
|
||||
max-height: 50vh;
|
||||
}
|
||||
.templitor .preview .html img { max-width: 100%; height: auto; }
|
||||
.templitor .preview .html table { table-layout: auto; }
|
||||
.templitor .tpl-path{
|
||||
display: inline-block;
|
||||
padding: 0.2em 0.6em;
|
||||
border-radius: 1em;
|
||||
/*background-color: var(--eicui-base-color-accent-10);
|
||||
color: var(--eicui-base-color-black);
|
||||
*/
|
||||
background-color: white !important;
|
||||
color: white !important;
|
||||
font-size: 0.75rem;
|
||||
white-space: nowrap;
|
||||
max-width: calc(100vw * 0.6);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.templitor .preview .html.not-editable::after {
|
||||
content: 'Not Editable';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%) rotate(-45deg);
|
||||
font-size: 5rem;
|
||||
color: rgba(200, 0, 0, 0.1); /* Transparent red */
|
||||
z-index: 10;
|
||||
pointer-events: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.templitor button[eicuser] span[eicbadge] {
|
||||
visibility: hidden;
|
||||
}
|
||||
.templitor button.loading {
|
||||
pointer-events: none;
|
||||
opacity: 0.7;
|
||||
}
|
||||
.icon-spinner {
|
||||
display: inline-block;
|
||||
animation: spin 0.6s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
.templitor .error-message {
|
||||
color: red;
|
||||
padding: 1em;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
.templitor .empty-message {
|
||||
color: #999;
|
||||
padding: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
.templitor .tpl-filters {
|
||||
padding: var(--eicui-base-spacing-s) 0;
|
||||
display: grid;
|
||||
grid-auto-flow: column;
|
||||
grid-gap: var(--eicui-base-spacing-m);
|
||||
width: fit-content;
|
||||
}
|
||||
</style>
|
||||
<article eiccard media class="templitor">
|
||||
<header>
|
||||
<h1>Templates Manager</h1>
|
||||
<h2>Documents & Templates</h2>
|
||||
</header>
|
||||
<section>
|
||||
<article eiccard>
|
||||
<section>
|
||||
<div class="cols-2 search-bar">
|
||||
<select eicselect data-ref="searchCriteria" data-change="onSearchChange" editable data-type="array" placeholder="Search on title, path or user"></select>
|
||||
<button eicbutton xsmall rounded primary class="tpl-btn-path" data-trigger="onPathBrowse" icon="icon-folder"><i class="icon-folder"></i></button>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<section>
|
||||
<div class="cols-2 right" >
|
||||
<div class="tpl-filters"></div>
|
||||
<button class="tpl-createButton" eicbutton small info data-trigger="onTemplateCreate"><span>Create</span></button>
|
||||
</div>
|
||||
<div class="cols-2 right">
|
||||
<div class="library thumbs">
|
||||
<div class="cols-2 right">
|
||||
<div eicdatagrid class="templatesList" data-output="searchResults" data-async="results" ></div>
|
||||
<div class="cols-2">
|
||||
<button eicbutton rounded small primary data-value="grid" data-trigger="onTemplatesDisplay" icon="icon-list-ul"></button>
|
||||
<button eicbutton rounded small primary data-value="thumbs" data-trigger="onTemplatesDisplay" icon="icon-table"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<article eiccard class="preview" disabled>
|
||||
<header>
|
||||
<div class="cols-2 right">
|
||||
<div>
|
||||
<h1>Select a template in the library</h1>
|
||||
<h2>Template preview</h2>
|
||||
</div>
|
||||
<button eicbutton xsmall rounded secondary data-trigger="onPreviewClose" icon="icon-cancel"></button>
|
||||
</div>
|
||||
</header>
|
||||
<section><div class="html"></div></section>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
</section>
|
||||
</article>
|
||||
Reference in New Issue
Block a user