Improving readability of documentation tables
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- css
- Lĩnh vực
- design, documentation
Hướng nghiên cứu
Bắt đầu bằng cách xác định CSS và markup của theme tài liệu bằng các selector .py.method và .describe được đề cập trong issue. So sánh kiểu bảng hiện tại với các ví dụ được cung cấp, sau đó xác minh rằng nền xen kẽ và khoảng cách được điều chỉnh cải thiện khả năng đọc mà không làm nổi bật các phần tử ngoài ý muốn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- CSS
- Star
- 90
- Fork
- 78
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 4
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của python/python-docs-theme
-
bug help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
python/python-docs-theme#289 · 7 bình luận · 2 reaction ·
-
Docs Python.org button Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
python/python-docs-theme#217 · 7 bình luận · 1 reaction ·
-
enhancement github_actions
python/python-docs-theme#260 · 6 bình luận · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
python/python-docs-theme#245 · 3 bình luận ·
-
enhancement help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
python/python-docs-theme#192 · 9 bình luận ·
Tất cả issue của python/python-docs-theme
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lobehub/lobe-icons#422 · 1 bình luận ·
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
henit-chobisa/deck#20 ·
-
Update GUI-Nodes search bar Đang mở2-medium bug UI Editor ui/ux
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
decentraland/creator-hub#1628 ·
-
Request: Lean Đang mởnew icon permissions in review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
simple-icons/simple-icons#15031 ·