|
| 1 | +.block-language-dataview { |
| 2 | + overflow-y: auto; |
| 3 | +} |
| 4 | + |
| 5 | +/*****************/ |
| 6 | +/** Table Views **/ |
| 7 | +/*****************/ |
| 8 | + |
| 9 | +/* List View Default Styling; rendered internally as a table. */ |
| 10 | +.table-view-table { |
| 11 | + width: 100%; |
| 12 | +} |
| 13 | + |
| 14 | +.table-view-table > thead > tr, .table-view-table > tbody > tr { |
| 15 | + margin-top: 1em; |
| 16 | + margin-bottom: 1em; |
| 17 | + text-align: left; |
| 18 | +} |
| 19 | + |
| 20 | +.table-view-table > tbody > tr:hover { |
| 21 | + background-color: var(--table-row-background-hover); |
| 22 | +} |
| 23 | + |
| 24 | +.table-view-table > thead > tr > th { |
| 25 | + font-weight: 700; |
| 26 | + font-size: larger; |
| 27 | + border-top: none; |
| 28 | + border-left: none; |
| 29 | + border-right: none; |
| 30 | + border-bottom: solid; |
| 31 | + |
| 32 | + max-width: 100%; |
| 33 | +} |
| 34 | + |
| 35 | +.table-view-table > tbody > tr > td { |
| 36 | + text-align: left; |
| 37 | + border: none; |
| 38 | + font-weight: 400; |
| 39 | + max-width: 100%; |
| 40 | +} |
| 41 | + |
| 42 | +.table-view-table ul, .table-view-table ol { |
| 43 | + margin-block-start: 0.2em !important; |
| 44 | + margin-block-end: 0.2em !important; |
| 45 | +} |
| 46 | + |
| 47 | +/** Rendered value styling for any view. */ |
| 48 | +.dataview-result-list-root-ul { |
| 49 | + padding: 0em !important; |
| 50 | + margin: 0em !important; |
| 51 | +} |
| 52 | + |
| 53 | +.dataview-result-list-ul { |
| 54 | + margin-block-start: 0.2em !important; |
| 55 | + margin-block-end: 0.2em !important; |
| 56 | +} |
| 57 | + |
| 58 | +/** Generic grouping styling. */ |
| 59 | +.dataview.result-group { |
| 60 | + padding-left: 8px; |
| 61 | +} |
| 62 | + |
| 63 | +/*******************/ |
| 64 | +/** Inline Fields **/ |
| 65 | +/*******************/ |
| 66 | + |
| 67 | +.dataview.inline-field-key { |
| 68 | + padding-left: 8px; |
| 69 | + padding-right: 8px; |
| 70 | + font-family: var(--font-monospace); |
| 71 | + background-color: var(--background-primary-alt); |
| 72 | + color: var(--nav-item-color-selected); |
| 73 | +} |
| 74 | + |
| 75 | +.dataview.inline-field-value { |
| 76 | + padding-left: 8px; |
| 77 | + padding-right: 8px; |
| 78 | + font-family: var(--font-monospace); |
| 79 | + background-color: var(--background-secondary-alt); |
| 80 | + color: var(--nav-item-color-selected); |
| 81 | +} |
| 82 | + |
| 83 | +.dataview.inline-field-standalone-value { |
| 84 | + padding-left: 8px; |
| 85 | + padding-right: 8px; |
| 86 | + font-family: var(--font-monospace); |
| 87 | + background-color: var(--background-secondary-alt); |
| 88 | + color: var(--nav-item-color-selected); |
| 89 | +} |
| 90 | + |
| 91 | +/***************/ |
| 92 | +/** Task View **/ |
| 93 | +/***************/ |
| 94 | + |
| 95 | +.dataview.task-list-item, .dataview.task-list-basic-item { |
| 96 | + margin-top: 3px; |
| 97 | + margin-bottom: 3px; |
| 98 | + transition: 0.4s; |
| 99 | +} |
| 100 | + |
| 101 | +.dataview.task-list-item:hover, .dataview.task-list-basic-item:hover { |
| 102 | + background-color: var(--text-selection); |
| 103 | + box-shadow: -40px 0 0 var(--text-selection); |
| 104 | + cursor: pointer; |
| 105 | +} |
| 106 | + |
| 107 | +/*****************/ |
| 108 | +/** Error Views **/ |
| 109 | +/*****************/ |
| 110 | + |
| 111 | +div.dataview-error-box { |
| 112 | + width: 100%; |
| 113 | + min-height: 150px; |
| 114 | + display: flex; |
| 115 | + align-items: center; |
| 116 | + justify-content: center; |
| 117 | + border: 4px dashed var(--background-secondary); |
| 118 | +} |
| 119 | + |
| 120 | +.dataview-error-message { |
| 121 | + color: var(--text-muted); |
| 122 | + text-align: center; |
| 123 | +} |
| 124 | + |
| 125 | +/*************************/ |
| 126 | +/** Additional Metadata **/ |
| 127 | +/*************************/ |
| 128 | + |
| 129 | +.dataview.small-text { |
| 130 | + font-size: smaller; |
| 131 | + color: var(--text-muted); |
| 132 | + margin-left: 3px; |
| 133 | +} |
| 134 | + |
| 135 | +.dataview.small-text::before { |
| 136 | + content: "("; |
| 137 | +} |
| 138 | + |
| 139 | +.dataview.small-text::after { |
| 140 | + content: ")"; |
| 141 | +} |
0 commit comments