Improving readability of documentation tables
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- css
- Domain
- design, documentation
Research direction
Start by locating the documentation theme CSS and markup using the .py.method and .describe selectors mentioned in the issue. Compare the current table styling with the supplied examples, then verify that alternating backgrounds and adjusted spacing improve readability without highlighting unintended elements.
Written by the indexing model from the issue text.
Description
Documentation
I was reading through the documentation and I thought of a way you could make it read better.
You could do the thing thats done with tables where you alternate the background color to make the elements easier to distinguish at a glance.
I made a quick example using inspect element to color every other method in the documentation.
vs what it looks like currently.
My quick test was done by adding
.py.method:nth-child(odd) {
background-color: #2d2d2d;
}
And replacing the margin on the dl elements with padding so the background color would fill it.
I originally used dl:nth-child(odd) but .py.method:nth-child(odd) worked better, but it would probably be better to add a new class to the elements you want highlight instead, because dl:nth-child(odd) highlights too much and .py.method:nth-child(odd) doesnt highlight all of the elements you would probably want highlighted.
*:is(.py.method, .describe):nth-child(odd of *:is(.py.method, .describe)) {
background-color: #2b2b2b;
}
Should work but adding a new class is probably easier to maintain and you could reuse it in more places.
- Dominant language
- CSS
- Stars
- 90
- Forks
- 78
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from python/python-docs-theme
-
bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
python/python-docs-theme#289 · 7 comments · 2 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
python/python-docs-theme#217 · 7 comments · 1 reaction ·
-
enhancement github_actions
python/python-docs-theme#260 · 6 comments · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
python/python-docs-theme#245 · 3 comments ·
-
enhancement help wanted
Difficulty 3/5 1-2 days Newbie friendliness 35/100
python/python-docs-theme#192 · 9 comments ·
All issues in python/python-docs-theme
Similar issues
-
Designfix
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
databrickslabs/ontobricks#181 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
puj-course/FIS_2630_1204_G1#294 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
cds-snc/design-gc-conception#2758 ·