9 directories, 58 files

tinai

Home / tinai
/* Dialogs: backdrop, overlays, plugin/confirm/version dialogs, the settings dialogs container, and the plugin dialog body. */
.div-app-version-title {
    font-weight: bold;
    margin-bottom: var(--DM-margin-q);
}

.div-app-version-description {
    margin-bottom: var(--DM-margin-h);
}

.div-version-section {
    margin-bottom: var(--DM-margin);
}

.div-version-section:last-child {
    margin-bottom: 0;
}

.div-version-section ul {
    margin: var(--DM-margin-q) 0 0 0;
    padding-left: var(--DM-margin);
}

.div-version-section li {
    margin-bottom: var(--DM-margin-q);
    line-height: 1.4;
}
/* Dialogs & Backdrop */

.div-structure-dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: color-mix(in srgb, var(--FG-base) 13.3%, transparent);
    backdrop-filter: blur(3pt);
    -webkit-backdrop-filter: blur(3pt);
    display: none;
    opacity: 0;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.35s ease-in-out;
}

.div-structure-dialog-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.div-structure-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
    opacity: 0;
    z-index: 25;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}

.div-structure-dialog-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

#id-app-options-overlay {
    z-index: 25;
}

#id-conversation-options-overlay {
    z-index: 25;
}

#id-instant-answer-overlay {
    z-index: 25;
}

#id-version-dialog-overlay {
    z-index: 30;
}

#id-config-dialog-overlay {
    z-index: 30;
}

#id-plugin-dialog-overlay {
    z-index: 55;
    align-items: center;
    justify-content: center;
}

.div-plugin-dialog-container {
    display: block;
    padding: var(--DM-margin);
    max-width: 96%;
    width: 96%;
    box-sizing: border-box;
    max-height: calc(100vh - 2 * var(--DM-margin));
    overflow-y: auto;
    /* Long unbreakable content (e.g. fetch URLs) must wrap to the dialog
       width instead of forcing a horizontal scrollbar. Inherited by content. */
    overflow-wrap: anywhere;
    transform: translateY(-8px) scale(0.99);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    fieldset {
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
}

/* Dialog width follows the layout mode (single column uses the 96% base). */
body:has(#id-div-structure-body.div-structure-body-v-i-c) #id-plugin-dialog-overlay .div-plugin-dialog-container {
    max-width: 60%;
}
body:has(#id-div-structure-body.div-structure-body-v-c) #id-plugin-dialog-overlay .div-plugin-dialog-container,
body:has(#id-div-structure-body.div-structure-body-i-c) #id-plugin-dialog-overlay .div-plugin-dialog-container {
    max-width: 80%;
}

#id-plugin-dialog-overlay.active .div-plugin-dialog-container {
    transform: translateY(0) scale(1);
}



/* Shared dialog fieldset and legend styling (plugin, settings, confirm dialogs) */
.div-plugin-dialog-container fieldset,
.div-structure-dialogs-container fieldset,
.div-confirm-dialog-container fieldset {
    background-color: var(--BG-base);
    border: 1px solid var(--BD-fieldset);
    border-radius: 0.5em;
    padding: var(--DM-margin-h);
}

.div-plugin-dialog-container legend,
.div-structure-dialogs-container legend,
.div-confirm-dialog-container legend {
    display: block;
    width: calc( 100% + var(--DM-margin-q) + var(--DM-margin-q) + 0.5pt );
    background-color: var(--BG-header);
    margin: 0 calc( calc(-1 * var(--DM-margin-h)) - 1pt );
    border: 1px solid var(--BD-fieldset);
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
    padding: var(--DM-margin-s) var(--DM-margin-q);
}

.div-plugin-dialog-titlebar {
    display: flex;
    align-items: center;
    gap: var(--DM-margin-q);
}

#id-plugin-dialog-title {
    flex: 1 1 auto;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#btn-plugin-dialog-close {
    flex: 0 0 auto;
    width: 2em;
    height: 2em;
    font-size: 10pt;
    line-height: 1;
    border: 1pt solid var(--AC-btn);
    border-radius: var(--DM-margin-q);
    background-color: var(--BG-panel);
    color: var(--FG-base);
    cursor: pointer;
    padding: 0;
}

#btn-plugin-dialog-close:hover {
    background-color: var(--BG-panel2);
}

.div-structure-dialogs-container {
    display: flex;
    flex-direction: column;
    margin-left: 25%;
    margin-right: 25%;
    height: 100%;
    background-color: var(--BG-panel);
    border-left: 1pt solid var(--BD-panel);
    border-right: 1pt solid var(--BD-panel);
    box-sizing: border-box;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px) scale(0.99);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.div-structure-dialog-overlay.active .div-structure-dialogs-container {
    transform: translateY(0) scale(1);
}

.div-login-dialog-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    border: none;
    box-shadow: none;
    transform: none;
    padding: var(--DM-margin);
}

#login-form legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.div-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--DM-margin-h) var(--DM-margin);
    border-bottom: 1pt solid var(--BD-panel);
    background-color: var(--BG-header);
    flex-shrink: 0;
    box-sizing: border-box;
}


/* Shared 18pt dialog button sizing (dialog header, inner content) */
.div-dialog-header button,
.div-dialogs-inner button {
    height: 18pt;
    font-size: 8pt;
    text-transform: uppercase;
    line-height: 9pt;
    border: 1pt solid var(--AC-btn);
    border-radius: var(--DM-margin-q);
    padding: var(--DM-margin-s);
    min-width: 3em;
    cursor: pointer;
}
.div-dialog-title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--FG-base);
    margin: 0;
}

.div-dialogs-inner {
    flex: 1 1 auto;
    padding: var(--DM-margin);
    box-sizing: border-box;
}


#id-form-admin-options,
#id-form-add-funds {
    display: none;
}

@media screen and (max-width: 1560px) {
    .div-structure-dialogs-container {
        margin-left: 15%;
        margin-right: 15%;
    }
}

@media screen and (max-width: 780px) {
    .div-structure-dialogs-container {
        margin-left: 0;
        margin-right: 0;
        border-left: none;
        border-right: none;
    }
}

.div-structure-dialogs-container form {
    margin-bottom: var(--DM-margin);
}

.div-structure-dialogs-container form button {
    height: 24pt;
    font-size: 8pt;
    text-transform: uppercase;
    line-height: 15pt;
    border: 1pt solid var(--AC-btn);
    border-radius: var(--DM-margin-q);
    padding: var(--DM-margin-q);
    min-width: 3em;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.div-structure-dialogs-container form select {
    height: 24pt;
    font-size: 8pt;
    text-transform: uppercase;
    line-height: 15pt;
    border: 1pt solid var(--BD-input);
    border-radius: var(--DM-margin-q);
    padding: var(--DM-margin-q);
    min-width: 3em;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.div-structure-dialogs-container form input[type="text"],
.div-structure-dialogs-container form input[type="password"],
.div-structure-dialogs-container form input[type="email"],
.div-structure-dialogs-container form input[type="number"],
.div-structure-dialogs-container form textarea {
    border: 1pt solid var(--BD-input);
    border-radius: var(--DM-margin-q);
    padding: var(--DM-margin-q);
    margin-bottom: var(--DM-margin-h);
    box-sizing: border-box;
    min-width: 30%;
    background-color: var(--BG-base);
    color: var(--FG-base);
}

.div-structure-dialogs-container label {
    margin-bottom: var(--DM-margin-q);
    min-width: 20%;
    display: inline-block;
}

.div-structure-dialogs-container .label-options-column {
    display: block;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--FG-muted);
    border-bottom: 1px solid var(--BD-panel-l);
    padding-bottom: var(--DM-margin-q);
    margin-bottom: var(--DM-margin-q);
}

.div-structure-dialogs-container select {
    margin-bottom: var(--DM-margin-h);
    background-color: var(--BG-base);
    color: var(--FG-base);
}

.div-structure-dialogs-container select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--BG-panel2);
    color: var(--FG-muted);
}
.div-plugin-dialog-body {
    display: flex;
    flex-direction: column;
    gap: var(--DM-margin-s);
}
.div-plugin-dialog-body p {
    margin: 0 0 var(--DM-margin-q) 0;
}
.div-plugin-dialog-body button {
    width: 100%;
    box-sizing: border-box;
    height: 24pt;
    font-size: 10pt;
    text-align: center;
    text-transform: none;
    border: 1pt solid var(--AC-btn);
    border-radius: var(--DM-margin-q);
    padding: var(--DM-margin-q);
    cursor: pointer;
    background-color: var(--BG-panel);
    color: var(--FG-base);
}
.div-plugin-dialog-body button:hover:not(:disabled) {
    background-color: var(--BG-panel2);
}
.div-plugin-dialog-body textarea {
    max-height: 50vh;
    overflow-y: auto;
}
.div-plugin-dialog-body input[type="range"].input-plugin-dialog-range {
    width: 88%;
    margin: var(--DM-margin-s) auto;
}
.span-plugin-dialog-range-value {
    font-weight: bold;
    color: var(--FG-base);
}
.div-plugin-dialog-body label.label-plugin-dialog-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: var(--DM-margin-s) 0;
}
.div-plugin-dialog-body button:disabled {
    opacity: 0.5;
    cursor: default;
}
.span-input-request-state {
    font-size: 90%;
    color: var(--FG-muted);
}
.div-confirm-dialog-container {
    display: block;
    padding: var(--DM-margin);
    max-width: 420px;
    width: 90%;
    transform: translateY(-8px) scale(0.99);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    fieldset{
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
}

.div-confirm-buttons {
    display: flex;
    justify-content: flex-end;
    gap: var(--DM-margin-h);
    margin-top: var(--DM-margin-h);
}

.confirm-note {
    font-size: 90%;
    color: var(--FG-muted);
}

/* Share link row (util/share.js): readonly viewer URL with a copy button.
   The input reuses .prompt-style-input; these rules fit it into the row. */
.div-share-link-row {
    display: flex;
    gap: var(--DM-margin-h);
    align-items: center;
    min-width: 320px;
}

.input-share-link {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    resize: none;
    overflow: hidden;
}

.div-confirm-buttons button,
.div-share-link-row button {
    height: 24pt;
    font-size: 8pt;
    text-transform: uppercase;
    line-height: 15pt;
    border: 1pt solid var(--AC-btn);
    border-radius: var(--DM-margin-q);
    padding: var(--DM-margin-q);
    min-width: 5em;
    cursor: pointer;
}

@media screen and (max-width: 780px) {
    .div-confirm-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Utility dialogs built by openDialog (util/dialog.js): centered like the
   confirm dialog, animated like its container. */
.div-dialog-overlay {
    z-index: 60;
}

.div-dialog-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.div-dialog-overlay.active .div-confirm-dialog-container {
    transform: translateY(0) scale(1);
}
🌐
dialogs.css ×
Type: Web, text/plain
11.43 Kilobytes
Last Modified 2026-11-04 09:48:28
⬇ Download File