387 lines
6.6 KiB
CSS
387 lines
6.6 KiB
CSS
.templitor > header,
|
|
.templitorManage > header {
|
|
background: url('/app/assets/images/cards/templitorHeader.png') center/cover no-repeat;
|
|
border-bottom: 4px solid white !important;
|
|
}
|
|
|
|
.templates-tab, .cols-2 {
|
|
display: flex;
|
|
}
|
|
|
|
.templitor .templates {
|
|
width: 60vw;
|
|
}
|
|
|
|
.create-new-tpl {
|
|
float: right;
|
|
top: -2em;
|
|
}
|
|
|
|
.tplViewer {
|
|
flex: 1;
|
|
position: relative;
|
|
width: 20vw;
|
|
max-width: 20vw;
|
|
max-width: 30%;
|
|
max-height: 61vh;
|
|
background-color: white;
|
|
border: 1px solid #ccc;
|
|
padding: 10px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
z-index: 1000;
|
|
display: none;
|
|
}
|
|
|
|
.tplViewer .tpl-html {
|
|
max-width: 22vw;
|
|
}
|
|
|
|
.tplViewer .img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.tpl-html {
|
|
border: 1px solid #ccc;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
position: inherit;
|
|
overflow: auto;
|
|
}
|
|
|
|
.tpl-html img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.tpl-html table {
|
|
table-layout: auto;
|
|
}
|
|
|
|
.tpl-html p,
|
|
.tpl-html span.token,
|
|
.tpl-html footer span,
|
|
.tpl-html table {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.templatesList[templatesList] {
|
|
max-height: calc(95vh - 40vh);
|
|
overflow-y: auto;
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 1fr);
|
|
}
|
|
|
|
.templatesList .grid-header,
|
|
.templatesList .grid-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 1fr);
|
|
padding: 10px;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.templatesList .grid-header {
|
|
background-color: #f5f5f5;
|
|
font-weight: bold;
|
|
}
|
|
.tplMeta,
|
|
.tplTools{
|
|
border: unset!important;
|
|
box-shadow: none!important;
|
|
}
|
|
.tpl-editor,
|
|
.tpl-editor-container{
|
|
background-color: #a0a0a0;
|
|
}
|
|
.template-item {
|
|
background: #f9f9f9;
|
|
border: 2px solid var(--eicui-app-body-bg-color) !important;
|
|
cursor: pointer;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
font-size: 0.75em;
|
|
position: relative;
|
|
margin: 0.4em !important;
|
|
}
|
|
|
|
.template-item h1, .template-item h2, .template-item h3 {
|
|
font-size: 1.5em;
|
|
margin: 0.5em;
|
|
}
|
|
|
|
.template-item p {
|
|
font-size: 1.2em;
|
|
margin: 0.5em;
|
|
line-height: 0;
|
|
}
|
|
|
|
.template-item:hover {
|
|
transform: scale(1.02);
|
|
background-color: #FFFAE9 !important;
|
|
}
|
|
|
|
.templatesList .template-item.selected {
|
|
background-color: #FFFAE9 !important;
|
|
font-weight: 600;
|
|
font-style: italic;
|
|
}
|
|
|
|
.tplEditor {
|
|
margin-top: 20px;
|
|
border: 1px solid #a0a0a0;
|
|
padding: 10px;
|
|
}
|
|
|
|
.tplEditor textarea {
|
|
display: block !important;
|
|
width: 100%;
|
|
height: 100px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.tplEditor h6 {
|
|
margin: 0!important;
|
|
padding:0;
|
|
}
|
|
|
|
.save-html, .tool-button {
|
|
display: inline-block;
|
|
margin-top: 10px;
|
|
padding: 10px;
|
|
border: 1px solid #ccc;
|
|
cursor: grab;
|
|
}
|
|
|
|
.templateEditor {
|
|
min-width: 30em;
|
|
}
|
|
|
|
.tplViewer section > header,
|
|
.tplPreview section > header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.tplViewer section > header h1,
|
|
.tplPreview section > header h1 {
|
|
margin: 0;
|
|
}
|
|
|
|
.tplViewer section > header button,
|
|
.tplPreview section > header button {
|
|
margin-left: 10px;
|
|
padding: 5px !important;
|
|
}
|
|
|
|
.tpl-header-editor, .tpl-main-editor, .tpl-footer-editor, .tpl-alternateText-editor {
|
|
border: 1px solid #a0a0a0;
|
|
padding: 10px;
|
|
position: relative;
|
|
margin-bottom: 10px;
|
|
min-height: 5em;
|
|
}
|
|
|
|
.tpl-header-editor::before, .tpl-main-editor::before, .tpl-footer-editor::before {
|
|
content: attr(data-label);
|
|
position: absolute;
|
|
top: -10px;
|
|
left: 10px;
|
|
background: white;
|
|
padding: 0 5px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.tpl-html > footer {
|
|
position: inherit;
|
|
}
|
|
|
|
.paragraph-placeholder {
|
|
border: 1px dashed #ccc;
|
|
padding: 5px;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.line-break {
|
|
display: block;
|
|
margin: 10px 0;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
#colorWell {
|
|
position: absolute;
|
|
display: none;
|
|
background: white;
|
|
padding: 5px;
|
|
border: 1px solid #ccc;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.radioB {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
.tpl-em{
|
|
font-size: small;
|
|
}
|
|
|
|
.tplName {
|
|
flex-grow: 0.7;
|
|
min-width: 50%;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.tplSubject input,
|
|
.tplName input{
|
|
width: 60ch;
|
|
}
|
|
|
|
input[type="radio"] {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.tpl-alternateText-editor {
|
|
user-select: none;
|
|
}
|
|
|
|
.tpl-toolButtons {
|
|
position: sticky;
|
|
top: 0;
|
|
background-color: white;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.tpl-sendMailTest {
|
|
margin-left: auto !important;
|
|
}
|
|
|
|
.resizable {
|
|
display: inline-block;
|
|
position: relative;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.resizable img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.resize-handle {
|
|
width: 10px;
|
|
height: 10px;
|
|
background-color: #fff;
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
cursor: se-resize;
|
|
}
|
|
|
|
.resize-handle::after {
|
|
content: "↔";
|
|
font-size: 16px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.templatesList[templatesList] {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.templatesList[templatesList] {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
/* Styles for lists */
|
|
.tpl-bullet-list,
|
|
.tpl-dash-list,
|
|
.tpl-numbered-list {
|
|
margin-left: 20px!important;
|
|
}
|
|
/* Styles for bullet lists */
|
|
.tpl-bullet-list {
|
|
list-style-type: disc;
|
|
}
|
|
/* Styles for dashed lists */
|
|
.tpl-dash-list {
|
|
list-style-type: none;
|
|
}
|
|
|
|
.tpl-dash-list li::before {
|
|
content: "-"; /* Add a dash before each list item */
|
|
margin-right: 10px;
|
|
}
|
|
|
|
/* Styles for numbered lists */
|
|
.tpl-numbered-list {
|
|
list-style-type: decimal; /* Default numbered list */
|
|
}
|
|
|
|
/* Optional: Customize the appearance of list items */
|
|
.tpl-bullet-list li,
|
|
.tpl-dash-list li,
|
|
.tpl-numbered-list li {
|
|
padding: 5px 0;
|
|
}
|
|
|
|
/*Add Table */
|
|
.tpl-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
resize: both;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tpl-table-bordered {
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.tpl-table th, .tpl-table td {
|
|
border: 1px solid #ccc;
|
|
padding: 10px;
|
|
text-align: left;
|
|
}
|
|
|
|
.tpl-table-bordered th, .tpl-table-bordered td {
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.tpl-table th {
|
|
background-color: #f2f2f2;
|
|
}
|
|
|
|
.tpl-table-bordered {
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.tpl-table th {
|
|
background-color: #f4f4f4;
|
|
}
|
|
|
|
.tpl-table td, .tpl-table th {
|
|
resize: both;
|
|
}
|
|
|
|
/*HTMLPreview */
|
|
.he-img-select-container {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
background-color: white;
|
|
border: 1px solid #ccc;
|
|
padding: 10px;
|
|
}
|
|
|
|
.tplViewer.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;
|
|
}
|