styles.css 3.0 KB

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