ShtukbaseStandard
файл пакета→ .shtukbase/packages/lenses-records/lens/lens.css

lens/lens.css

226 строк, 6.9 КБ.

Файл как есть в пакете: код и комментарии в нём не переводятся.

  1. .lens-error {
  2. margin: 0;
  3. padding: 8px 16px;
  4. color: var(--lx-muted);
  5. }
  6. /* Laid out as the desktop app's collection views (engine/gui guide: collections-table, collections-board,
  7. collections-task-open): 14px text in ink, rows 34px with hairline grid lines, no header fill; board columns
  8. faintly tinted by their status hue, white cards with a ring shadow; a record with a big bold title and a quiet
  9. list of properties. Kit variables only. */
  10. .table-scroll {
  11. height: 100%;
  12. overflow: auto;
  13. overflow-anchor: none;
  14. padding: 16px 32px 48px;
  15. box-sizing: border-box;
  16. }
  17. .records-table {
  18. width: 0;
  19. table-layout: fixed;
  20. border-collapse: separate;
  21. border-spacing: 0;
  22. font-size: 14px;
  23. }
  24. .records-table th,
  25. .records-table td {
  26. height: 34px;
  27. padding: 0 8px;
  28. border-bottom: 1px solid var(--line);
  29. border-inline-end: 1px solid var(--line);
  30. text-align: start;
  31. white-space: nowrap;
  32. overflow: hidden;
  33. text-overflow: ellipsis;
  34. }
  35. .records-table th:last-child,
  36. .records-table td:last-child { border-inline-end: 0; }
  37. .records-table th {
  38. position: sticky;
  39. top: 0;
  40. z-index: 1;
  41. width: 200px;
  42. height: 34px;
  43. background: var(--bg);
  44. color: var(--lx-muted);
  45. font-weight: 400;
  46. border-inline-end-color: transparent;
  47. }
  48. /* the name column's kind mark, as the desktop header's "Aa" */
  49. .records-table th:first-child::before {
  50. content: "Aa";
  51. margin-inline-end: 8px;
  52. font-size: 12px;
  53. color: var(--faint);
  54. }
  55. .records-table th:first-child { width: 260px; }
  56. .records-table td { color: var(--ink); }
  57. .records-table tr:hover td { background: var(--wash); }
  58. .records-table .lx-chip { font-size: 14px; height: 22px; line-height: 22px; }
  59. .record-title {
  60. display: block;
  61. max-width: 100%;
  62. padding: 0;
  63. border: 0;
  64. background: none;
  65. color: var(--ink);
  66. font: inherit;
  67. font-weight: 400;
  68. text-align: start;
  69. white-space: nowrap;
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. cursor: pointer;
  73. }
  74. .record-title:hover { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
  75. .record-title:focus-visible { outline-offset: -1px; }
  76. .records-board {
  77. grid-auto-columns: 276px;
  78. gap: 12px;
  79. padding: 16px 32px 48px;
  80. margin-inline: 0;
  81. }
  82. .records-board .lx-col {
  83. padding: 6px 6px 8px;
  84. border: 0;
  85. border-radius: var(--radius-lg);
  86. background: var(--ct-default);
  87. gap: 8px;
  88. }
  89. /* columns tinted by their status hue; written with "> *" (the columns are the board's children) */
  90. .records-board > *:has(> .ch .hue-gray) { background: var(--ct-gray); }
  91. .records-board > *:has(> .ch .hue-brown) { background: var(--ct-brown); }
  92. .records-board > *:has(> .ch .hue-orange) { background: var(--ct-orange); }
  93. .records-board > *:has(> .ch .hue-yellow) { background: var(--ct-yellow); }
  94. .records-board > *:has(> .ch .hue-green) { background: var(--ct-green); }
  95. .records-board > *:has(> .ch .hue-blue) { background: var(--ct-blue); }
  96. .records-board > *:has(> .ch .hue-purple) { background: var(--ct-purple); }
  97. .records-board > *:has(> .ch .hue-pink) { background: var(--ct-pink); }
  98. .records-board > *:has(> .ch .hue-red) { background: var(--ct-red); }
  99. .records-board > *:has(> .ch .hue-teal) { background: var(--ct-teal); }
  100. .records-board .lx-col > .ch {
  101. min-height: 30px;
  102. margin: 0;
  103. padding: 2px 0 2px 0;
  104. gap: 8px;
  105. font-weight: 400;
  106. font-size: 14px;
  107. cursor: inherit;
  108. }
  109. .records-board .lx-col > .ch .lx-chip { font-size: 14px; height: 22px; line-height: 22px; }
  110. .records-board .lx-col > .ch .n { margin-left: 0; color: var(--faint); font-size: 13px; }
  111. .records-board .lx-col > .ch:hover { background: none; }
  112. .records-board .lx-card {
  113. display: block;
  114. width: 100%;
  115. padding: 10px;
  116. border: 0;
  117. border-radius: 8px;
  118. font: inherit;
  119. text-align: start;
  120. }
  121. .records-board .lx-card .ttl { font-size: 14px; font-weight: 400; line-height: 1.45; }
  122. .records-board .lx-col .lx-card:hover { background: var(--card-hover, var(--bg2)); }
  123. /* the values under a card's title: inline, as the desktop card (a chip, then a date), without their labels */
  124. .card-values {
  125. display: flex;
  126. flex-wrap: wrap;
  127. gap: 6px 12px;
  128. margin-top: 8px;
  129. align-items: center;
  130. font-size: 13px;
  131. color: var(--lx-muted);
  132. }
  133. .card-values > span:nth-child(odd) { display: none; }
  134. .card-values > span {
  135. min-width: 0;
  136. overflow: hidden;
  137. text-overflow: ellipsis;
  138. white-space: nowrap;
  139. }
  140. .card-values .lx-chip { font-size: 13px; }
  141. .record-page {
  142. max-width: 900px;
  143. margin: 0 auto;
  144. padding: 64px 48px 64px;
  145. font-size: 15px;
  146. overflow-wrap: anywhere;
  147. }
  148. .record-page h1 {
  149. margin: 0 0 16px;
  150. font-size: 40px;
  151. line-height: 1.2;
  152. font-weight: 700;
  153. letter-spacing: -0.01em;
  154. }
  155. .record-fields {
  156. display: grid;
  157. grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  158. margin: 0 0 24px;
  159. padding-bottom: 12px;
  160. border-bottom: 1px solid var(--line);
  161. font-size: 14px;
  162. }
  163. .record-fields dt,
  164. .record-fields dd {
  165. min-height: 34px;
  166. margin: 0;
  167. padding: 6px 8px;
  168. box-sizing: border-box;
  169. display: flex;
  170. align-items: center;
  171. border-radius: var(--lx-radius);
  172. }
  173. .record-fields dt { color: var(--lx-muted); padding-left: 0; }
  174. .record-fields dd { color: var(--ink); }
  175. .record-fields dd:hover { background: var(--wash); }
  176. .record-fields .lx-chip { font-size: 14px; height: 22px; line-height: 22px; }
  177. .record-body { white-space: pre-wrap; line-height: 1.6; }
  178. .lx-chip.dot.hue-default { background: var(--cb-default); color: var(--cf-default); }
  179. .lx-chip.dot.hue-gray { background: var(--cb-gray); color: var(--cf-gray); }
  180. .lx-chip.dot.hue-brown { background: var(--cb-brown); color: var(--cf-brown); }
  181. .lx-chip.dot.hue-orange { background: var(--cb-orange); color: var(--cf-orange); }
  182. .lx-chip.dot.hue-yellow { background: var(--cb-yellow); color: var(--cf-yellow); }
  183. .lx-chip.dot.hue-green { background: var(--cb-green); color: var(--cf-green); }
  184. .lx-chip.dot.hue-blue { background: var(--cb-blue); color: var(--cf-blue); }
  185. .lx-chip.dot.hue-purple { background: var(--cb-purple); color: var(--cf-purple); }
  186. .lx-chip.dot.hue-pink { background: var(--cb-pink); color: var(--cf-pink); }
  187. .lx-chip.dot.hue-red { background: var(--cb-red); color: var(--cf-red); }
  188. .lx-chip.dot.hue-teal { background: var(--cb-teal); color: var(--cf-teal); }
  189. .lx-chip.dot.hue-default::before { background: var(--c-default, var(--cf-default)); }
  190. .lx-chip.dot.hue-gray::before { background: var(--c-gray, var(--cf-gray)); }
  191. .lx-chip.dot.hue-brown::before { background: var(--c-brown, var(--cf-brown)); }
  192. .lx-chip.dot.hue-orange::before { background: var(--c-orange, var(--cf-orange)); }
  193. .lx-chip.dot.hue-yellow::before { background: var(--c-yellow, var(--cf-yellow)); }
  194. .lx-chip.dot.hue-green::before { background: var(--c-green, var(--cf-green)); }
  195. .lx-chip.dot.hue-blue::before { background: var(--c-blue, var(--cf-blue)); }
  196. .lx-chip.dot.hue-purple::before { background: var(--c-purple, var(--cf-purple)); }
  197. .lx-chip.dot.hue-pink::before { background: var(--c-pink, var(--cf-pink)); }
  198. .lx-chip.dot.hue-red::before { background: var(--c-red, var(--cf-red)); }
  199. .lx-chip.dot.hue-teal::before { background: var(--c-teal, var(--cf-teal)); }