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

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

Comments

Loading...