2022-08-23 16:25:36 +00:00
|
|
|
/** Live Preview padding fixes, specifically for DataviewJS custom HTML elements. */
|
|
|
|
.is-live-preview .block-language-dataviewjs > p, .is-live-preview .block-language-dataviewjs > span {
|
|
|
|
line-height: 1.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************/
|
|
|
|
/** Table Views **/
|
|
|
|
/*****************/
|
|
|
|
|
2022-01-05 20:52:55 +00:00
|
|
|
/* List View Default Styling; rendered internally as a table. */
|
|
|
|
.table-view-table {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.table-view-table > thead > tr, .table-view-table > tbody > tr {
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2022-06-04 21:49:16 +00:00
|
|
|
.table-view-table > tbody > tr:hover {
|
2022-09-18 14:03:25 +00:00
|
|
|
background-color: var(--text-selection) !important;
|
2022-06-04 21:49:16 +00:00
|
|
|
}
|
|
|
|
|
2022-01-05 20:52:55 +00:00
|
|
|
.table-view-table > thead > tr > th {
|
|
|
|
font-weight: 700;
|
|
|
|
font-size: larger;
|
|
|
|
border-top: none;
|
|
|
|
border-left: none;
|
|
|
|
border-right: none;
|
|
|
|
border-bottom: solid;
|
|
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.table-view-table > tbody > tr > td {
|
|
|
|
text-align: left;
|
|
|
|
border: none;
|
|
|
|
font-weight: 400;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2022-08-23 16:25:36 +00:00
|
|
|
.table-view-table ul, .table-view-table ol {
|
|
|
|
margin-block-start: 0.2em !important;
|
|
|
|
margin-block-end: 0.2em !important;
|
2022-06-04 21:49:16 +00:00
|
|
|
}
|
|
|
|
|
2022-01-05 20:52:55 +00:00
|
|
|
/** Rendered value styling for any view. */
|
|
|
|
.dataview-result-list-root-ul {
|
|
|
|
padding: 0em !important;
|
|
|
|
margin: 0em !important;
|
|
|
|
}
|
|
|
|
|
2022-06-15 22:20:02 +00:00
|
|
|
.dataview-result-list-ul {
|
|
|
|
margin-block-start: 0.2em !important;
|
|
|
|
margin-block-end: 0.2em !important;
|
|
|
|
}
|
|
|
|
|
2022-01-05 20:52:55 +00:00
|
|
|
/** Generic grouping styling. */
|
|
|
|
.dataview.result-group {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
|
|
|
|
2022-06-04 21:49:16 +00:00
|
|
|
/*******************/
|
|
|
|
/** Inline Fields **/
|
|
|
|
/*******************/
|
2022-01-05 20:52:55 +00:00
|
|
|
|
|
|
|
.dataview.inline-field-key {
|
2022-08-23 16:25:36 +00:00
|
|
|
padding-left: 8px;
|
2022-01-05 20:52:55 +00:00
|
|
|
padding-right: 8px;
|
|
|
|
font-family: var(--font-monospace);
|
|
|
|
background-color: var(--background-primary-alt);
|
|
|
|
color: var(--text-nav-selected);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dataview.inline-field-value {
|
|
|
|
padding-left: 8px;
|
2022-08-23 16:25:36 +00:00
|
|
|
padding-right: 8px;
|
2022-01-05 20:52:55 +00:00
|
|
|
font-family: var(--font-monospace);
|
|
|
|
background-color: var(--background-secondary-alt);
|
|
|
|
color: var(--text-nav-selected);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dataview.inline-field-standalone-value {
|
2022-08-23 16:25:36 +00:00
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 8px;
|
2022-01-05 20:52:55 +00:00
|
|
|
font-family: var(--font-monospace);
|
|
|
|
background-color: var(--background-secondary-alt);
|
|
|
|
color: var(--text-nav-selected);
|
|
|
|
}
|
2022-06-04 21:49:16 +00:00
|
|
|
|
|
|
|
/***************/
|
|
|
|
/** Task View **/
|
|
|
|
/***************/
|
|
|
|
|
|
|
|
.dataview.task-list-item, .dataview.task-list-basic-item {
|
|
|
|
margin-top: 3px;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
transition: 0.4s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dataview.task-list-item:hover, .dataview.task-list-basic-item:hover {
|
|
|
|
background-color: var(--text-selection);
|
|
|
|
box-shadow: -40px 0 0 var(--text-selection);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************/
|
|
|
|
/** Error Views **/
|
|
|
|
/*****************/
|
|
|
|
|
|
|
|
div.dataview-error-box {
|
|
|
|
width: 100%;
|
|
|
|
min-height: 150px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
border: 4px dashed var(--background-secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dataview-error-message {
|
|
|
|
color: var(--text-muted);
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*************************/
|
|
|
|
/** Additional Metadata **/
|
|
|
|
/*************************/
|
|
|
|
|
|
|
|
.dataview.small-text {
|
|
|
|
font-size: smaller;
|
2022-08-23 16:25:36 +00:00
|
|
|
color: var(--text-muted);
|
|
|
|
margin-left: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dataview.small-text::before {
|
|
|
|
content: "(";
|
|
|
|
}
|
|
|
|
|
|
|
|
.dataview.small-text::after {
|
|
|
|
content: ")";
|
2022-06-04 21:49:16 +00:00
|
|
|
}
|