-
-
Notifications
You must be signed in to change notification settings - Fork 1k
style(docs): improve table readability #2129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2523,10 +2523,28 @@ table.foundation td { | |||||
padding: 0 5px; | ||||||
} | ||||||
|
||||||
table.docutils td, | ||||||
table.docutils th { | ||||||
border-bottom: 1px solid var(--hairline-color); | ||||||
} | ||||||
table.docutils { | ||||||
border-collapse: collapse; | ||||||
margin-bottom: 10.5em; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That margin is way too big, did you mean |
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you make the spacing with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the rationale behind adding a |
||||||
} | ||||||
table.docutils td, table.docutils th { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you fix the indentation on these rules? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you use nesting to avoid having to repeat
|
||||||
border-bottom: 1px solid #ccc; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use a theme color (see
Suggested change
|
||||||
padding: 8px 12px; | ||||||
line-height: 1.4; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the purpose of this rule? Disabling it doesn't seem to have much visual effect (it seems to reduce the height of the cell by ~1px). Is it related to the padding you added? If so, what's the relationship between the two values? |
||||||
} | ||||||
table.docutils thead th { | ||||||
background-color: var(--code-bg); | ||||||
border-bottom: 2px solid #999; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use a theme color here too, maybe |
||||||
font-weight: bold; | ||||||
} | ||||||
table.docutils tr:nth-child(even) { | ||||||
background-color: var(--code-bg); | ||||||
} | ||||||
table.docutils tr:hover { | ||||||
background-color: var(--selection); | ||||||
} | ||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you remove the extra blank line here? It looks like sections in this file are separated by a single blank line, not two. |
||||||
|
||||||
.list-links { | ||||||
//Can be used globally to stack list items either with a <ul>, or with a <dl> using the <dd> to add meta information. (See Community Page - sidebar and block body.) | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
border-collapse: collapse
is already the default for this element, I don't think we need to repeat it.