Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

tables.scss 1.4 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
  1. .markdown-body table {
  2. border-collapse: collapse;
  3. position: relative;
  4. font-size: 90%;
  5. width: 100%;
  6. /* We want to keep table-layout: auto so that column widths dynamically adjust;
  7. otherwise entries get needlessly squashed into narrow columns. As a workaround,
  8. we use javascripts/wrap-code-terms.js to prevent some reference table content
  9. from expanding beyond the horizontal boundaries of the parent element. */
  10. table-layout: auto;
  11. code {
  12. font-size: 85%;
  13. padding: 0.2em 0.4em;
  14. background-color: rgba(0, 0, 0, 0.05);
  15. border-radius: $border-radius;
  16. }
  17. pre {
  18. > code {
  19. padding: 0;
  20. background-color: transparent;
  21. }
  22. }
  23. thead tr {
  24. border: none;
  25. }
  26. th {
  27. font-weight: normal;
  28. text-align: left;
  29. position: sticky;
  30. vertical-align: top;
  31. z-index: 1;
  32. top: 0;
  33. background: var(--color-bg-tertiary);
  34. box-shadow: 0 3px 0 0 var(--color-auto-gray-4);
  35. padding: 12px 8px;
  36. border: 0px;
  37. }
  38. th:first-child,
  39. td:first-child {
  40. padding-left: 0;
  41. }
  42. td {
  43. padding: 10px 8px;
  44. border: 0px;
  45. vertical-align: top;
  46. }
  47. // markdown that has been converted to HTML is often wrapped in <p> tags
  48. // don't let it interfere with the spacing
  49. td p {
  50. padding: 0;
  51. margin: 0;
  52. }
  53. tr:nth-child(2n) {
  54. background: none;
  55. }
  56. td.has-nested-table {
  57. width: 100%;
  58. table {
  59. table-layout: auto;
  60. }
  61. }
  62. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...