Improving readability of documentation tables
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- css
- Ambito
- design, documentation
Direzione di ricerca
Inizia individuando il CSS e il markup del tema della documentazione utilizzando i selettori .py.method e .describe menzionati nell'issue. Confronta lo stile attuale della tabella con gli esempi forniti, quindi verifica che gli sfondi alternati e la spaziatura modificata migliorino la leggibilità senza evidenziare elementi involontari.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- CSS
- Stelle
- 90
- Fork
- 78
- Merge medio
- 2g 19h
- PR unite (30g)
- 4
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di python/python-docs-theme
-
bug help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
python/python-docs-theme#289 · 7 commenti · 2 reazioni ·
-
Docs Python.org button Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
python/python-docs-theme#217 · 7 commenti · 1 reazione ·
-
enhancement github_actions
python/python-docs-theme#260 · 6 commenti · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
python/python-docs-theme#245 · 3 commenti ·
-
enhancement help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
python/python-docs-theme#192 · 9 commenti ·
Tutte le issue di python/python-docs-theme
Issue simili
-
Overskrift på Ditt valg ApertaDesignfix
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
-
[Icon Request]: Frankenphp Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
databrickslabs/ontobricks#181 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
puj-course/FIS_2630_1204_G1#294 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
cds-snc/design-gc-conception#2758 ·