mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
304 lines
No EOL
5.2 KiB
CSS
304 lines
No EOL
5.2 KiB
CSS
.sqlseal-table-container {
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.sqlseal-table-container table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.sqlseal-grid-wrapper {
|
|
height: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.block-language-sqlseal {
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.sqlseal-error {
|
|
padding: 1em;
|
|
background: #b80f0f;
|
|
color: #FFF;
|
|
}
|
|
|
|
.sqlseal-notice {
|
|
padding: 1em;
|
|
background: #1f3f98;
|
|
color: #FFF;
|
|
}
|
|
|
|
.sqlseal-grid-error-message {
|
|
box-sizing: border-box;
|
|
width: 80%;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
background: #b80f0f;
|
|
font-size: 0.8em;
|
|
color: #FFF;
|
|
padding: 0.5em 2em;
|
|
|
|
}
|
|
|
|
.sqlseal-grid-error-message-overlay {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
z-index: 5;
|
|
}
|
|
|
|
.sqlseal-grid-error-message-overlay.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.edit-block-button {
|
|
z-index: 1000;
|
|
}
|
|
|
|
.sqlseal-markdown-table {
|
|
font-family: monospace;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.sqlseal-markdown-table.no-wrap {
|
|
display: inline-block;
|
|
overflow-x: scroll;
|
|
width: fit-content;
|
|
}
|
|
|
|
|
|
/* EDITOR */
|
|
.sql-seal-csv-editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
gap: var(--size-4-4);
|
|
}
|
|
|
|
.sql-seal-csv-viewer {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sqlseal-grid-wrapper {
|
|
height: 100%;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.ag-theme-quartz {
|
|
flex: 1;
|
|
}
|
|
|
|
.sql-seal-csv-viewer-buttons {
|
|
display: flex;
|
|
gap: var(--size-4-4);
|
|
}
|
|
|
|
.sql-seal-modal-code {
|
|
width: 100%;
|
|
font-family: monospace;
|
|
padding: 8px;
|
|
}
|
|
|
|
|
|
/* INLINE QUERIES */
|
|
.sqlseal-inline-result {
|
|
display: inline-block;
|
|
padding: 0 4px;
|
|
margin: 0 2px;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 4px;
|
|
font-size: 0.9em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sqlseal-inline-result .error {
|
|
color: var(--text-error);
|
|
font-style: italic;
|
|
}
|
|
|
|
.sqlseal-list-element-single .sqlseal-column-name {
|
|
display: none;
|
|
}
|
|
|
|
.sqlseal-list-element-single .sqlseal-column-name::after {
|
|
content: ': ';
|
|
}
|
|
|
|
.sqlseal-list.show-column-names .sqlseal-list-element-single .sqlseal-column-name {
|
|
display: inline;
|
|
}
|
|
|
|
.sqlseal-parse-error {
|
|
background: #b80f0f;
|
|
color: #FFF;
|
|
padding: 0.2em;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.sqlseal-element-inline-list {
|
|
display: inline-block;
|
|
}
|
|
|
|
.sqlseal-notice-error {
|
|
color: #f26464;
|
|
}
|
|
|
|
.sqlseal-notice-error::before {
|
|
content: '';
|
|
width: 16px;
|
|
height: 16px;
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
transform: translate(0, 3px);
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff0000' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
|
|
.sqlseal-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
|
|
|
|
/* COLOURING */
|
|
|
|
.cm-sqlseal-block-query {
|
|
--color: #297f30;
|
|
}
|
|
|
|
.cm-sqlseal-block-view {
|
|
--color: #c834dd;
|
|
}
|
|
|
|
.cm-sqlseal-block-flag {
|
|
--color: #d08306;
|
|
font-weight: bold;
|
|
color: var(--color);
|
|
}
|
|
|
|
.cm-sqlseal-block-table {
|
|
--color: #4985af;
|
|
}
|
|
|
|
.cm-sqlseal-identifier {
|
|
color: #2d7b33;
|
|
}
|
|
|
|
.cm-sqlseal-function {
|
|
color: #2c0e9b;
|
|
}
|
|
|
|
.cm-sqlseal-parameter {
|
|
color: #2c0e9b;
|
|
}
|
|
|
|
.cm-sqlseal-comment {
|
|
color: #7a7a7a;
|
|
font-style: italic;
|
|
}
|
|
|
|
.cm-sqlseal-keyword {
|
|
color: var(--color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.cm-sqlseal-literal {
|
|
color: rgb(0, 51, 255);
|
|
}
|
|
|
|
.cm-sqlseal-error {
|
|
color: rgb(235, 47, 47);
|
|
font-style: italic;
|
|
}
|
|
|
|
.cm-sqlseal-template-keyword {
|
|
color: #e3ab53;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-template-keyword {
|
|
color: #dd8e10;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-block-error {
|
|
color: red;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-block-query {
|
|
--color: #5eff6a;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-comment {
|
|
color: #898787;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-parameter {
|
|
color: #95ed22;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-literal {
|
|
color: yellow;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-block-view {
|
|
--color: #e945ff;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-block-flag {
|
|
--color: #e3ab53;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-block-table {
|
|
--color: #56b5fa;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-function {
|
|
color: #c4b8ef;
|
|
}
|
|
|
|
.theme-dark .cm-sqlseal-identifier {
|
|
color: #6ff77a;
|
|
}
|
|
|
|
:is(.cm-sqlseal-block-query, .cm-sqlseal-block-view, .cm-sqlseal-block-flag, .cm-sqlseal-block-table) {
|
|
/* background-color: var(--color); */
|
|
}
|
|
|
|
:is(.cm-sqlseal-block-query, .cm-sqlseal-block-view, .cm-sqlseal-block-flag, .cm-sqlseal-block-table)::before {
|
|
background-color: var(--color);
|
|
width: 5px;
|
|
top: -3px;
|
|
bottom: -3px;
|
|
left: 0;
|
|
content: '';
|
|
display: block;
|
|
position: absolute;
|
|
}
|
|
|
|
.cm-indent + :is(.cm-sqlseal-block-query, .cm-sqlseal-block-view, .cm-sqlseal-block-flag, .cm-sqlseal-block-table)::before {
|
|
display: none;
|
|
}
|
|
|
|
|
|
/* Obsidian Minimal Styles */
|
|
.markdown-source-view.mod-cm6.is-readable-line-width .cm-contentContainer.cm-contentContainer>.cm-content>:has(>.block-language-sqlseal table.dataview) {
|
|
width: var(--container-dataview-table-width);
|
|
max-width: var(--container-table-max-width);
|
|
}
|
|
|
|
|
|
/* AG GRID CUSTOMS */
|
|
.ag-checkbox-input {
|
|
opacity: 1 !important;
|
|
} |