From: Thomas Monjalon <hidden> Date: 2017-02-20 21:26:43
In order to make the NIC overview easier to read
(http://dpdk.org/doc/guides/nics/overview.html)
the row and column pointed by the mouse are highlighted.
Thomas Monjalon (3):
doc: set alignments in NIC overview table
doc: highlight pointed row in NIC overview table
doc: highlight pointed column in NIC overview table
doc/guides/nics/overview.rst | 33 ++++++++++++++++++++++++++++++++-
1 file changed, 32 insertions(+), 1 deletion(-)
A next step could be to highlight every implemented features when
pointing a driver, or every drivers implenting a pointed feature.
The latter could be done by this patch:
table#id1 th:not(:first-child):hover::after,
- table#id1 td:not(:first-child):hover::after {
+ table#id1 td:not(:first-child):hover::after,
+ table#id1 td:first-child:hover ~ td:not(:empty)::after {
content: '';
height: 6000px;
top: -3000px;
Unfortunately, I cannot make it work, probably because the cells are not
really empty. A javascript function could help to trim the cells.
Any help to implement this next step would be welcome.
From: Thomas Monjalon <hidden> Date: 2017-02-20 21:26:45
Some CSS alignments were not explicitly set.
The pointer is also set to default for the table.
Signed-off-by: Thomas Monjalon <redacted>
---
doc/guides/nics/overview.rst | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
From: Mcnamara, John <hidden> Date: 2017-02-23 12:47:45
-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
Sent: Monday, February 20, 2017 9:27 PM
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 1/3] doc: set alignments in NIC overview table
Some CSS alignments were not explicitly set.
The pointer is also set to default for the table.
Signed-off-by: Thomas Monjalon <redacted>
From: Mcnamara, John <hidden> Date: 2017-02-23 12:52:03
-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
Sent: Monday, February 20, 2017 9:27 PM
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 1/3] doc: set alignments in NIC overview table
Some CSS alignments were not explicitly set.
The pointer is also set to default for the table.
On a related note, a while ago we looked at rotating the text of the NICs
to make the table slightly more readable.
I've attached an example.
It might be nice to add this as well, if it doesn't interfere with the other
formatting.
John
From: Thomas Monjalon <hidden> Date: 2017-02-24 13:16:01
2017-02-23 12:51, Mcnamara, John:
On a related note, a while ago we looked at rotating the text of the NICs
to make the table slightly more readable.
Me too I've looked at it while ago.
I've attached an example.
It might be nice to add this as well, if it doesn't interfere with the other
formatting.
If I remember well, the issue is that it cannot be applied in PDF version which
will be rendered with large columns outside of the page (driver names on one
line instead of the current "one letter per line").
From: Thomas Monjalon <hidden> Date: 2017-02-20 21:26:46
Every cells of a feature row are painted in yellow.
Signed-off-by: Thomas Monjalon <redacted>
---
doc/guides/nics/overview.rst | 3 +++
1 file changed, 3 insertions(+)
From: Mcnamara, John <hidden> Date: 2017-02-23 12:47:53
-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
Sent: Monday, February 20, 2017 9:27 PM
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 2/3] doc: highlight pointed row in NIC overview
table
Every cells of a feature row are painted in yellow.
Signed-off-by: Thomas Monjalon <redacted>
From: Thomas Monjalon <hidden> Date: 2017-02-20 21:26:47
Every cells of a driver column are painted in yellow.
The trick is to generate some empty content as a big column
above and below the pointed cell.
The position: relative attribute is used for the highlight position
but it makes the border to disappear.
The overflow: hidden attribute is used to mask the generated content
outside of the table.
The class .wy-nav-content has a background which masks the highlighting.
Setting an opacity lower than 1, creates a new stack context and let
the column highlight to be shown.
The background of odd rows was grey and opaque. It is redefined with
a transparent alpha ratio in order to see highlighting on such rows.
Signed-off-by: Thomas Monjalon <redacted>
---
doc/guides/nics/overview.rst | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
From: Mcnamara, John <hidden> Date: 2017-02-23 12:48:08
-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
Sent: Monday, February 20, 2017 9:27 PM
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 3/3] doc: highlight pointed column in NIC
overview table
In order to make the NIC overview easier to read
(http://dpdk.org/doc/guides/nics/overview.html)
the row and column pointed by the mouse are highlighted.
Thomas Monjalon (3):
doc: set alignments in NIC overview table
doc: highlight pointed row in NIC overview table
doc: highlight pointed column in NIC overview table
Series Acked-by: Ferruh Yigit [off-list ref]
<...>
A next step could be to highlight every implemented features when
pointing a driver, or every drivers implenting a pointed feature.
The latter could be done by this patch:
table#id1 th:not(:first-child):hover::after,
- table#id1 td:not(:first-child):hover::after {
+ table#id1 td:not(:first-child):hover::after,
+ table#id1 td:first-child:hover ~ td:not(:empty)::after {
content: '';
height: 6000px;
top: -3000px;
Unfortunately, I cannot make it work, probably because the cells are not
really empty. A javascript function could help to trim the cells.
Any help to implement this next step would be welcome.
Overall I agree that some readability improvements would be good for NIC
overview table.
From: Thomas Monjalon <hidden> Date: 2017-02-26 16:25:33
2017-02-23 11:00, Ferruh Yigit:
On 2/20/2017 9:26 PM, Thomas Monjalon wrote:
quoted
In order to make the NIC overview easier to read
(http://dpdk.org/doc/guides/nics/overview.html)
the row and column pointed by the mouse are highlighted.
Thomas Monjalon (3):
doc: set alignments in NIC overview table
doc: highlight pointed row in NIC overview table
doc: highlight pointed column in NIC overview table
A next step could be to highlight every implemented features when
pointing a driver, or every drivers implenting a pointed feature.
The latter could be done by this patch:
table#id1 th:not(:first-child):hover::after,
- table#id1 td:not(:first-child):hover::after {
+ table#id1 td:not(:first-child):hover::after,
+ table#id1 td:first-child:hover ~ td:not(:empty)::after {
content: '';
height: 6000px;
top: -3000px;
Unfortunately, I cannot make it work, probably because the cells are not
really empty. A javascript function could help to trim the cells.
Any help to implement this next step would be welcome.
Overall I agree that some readability improvements would be good for NIC
overview table.
Yes I feel we need a CSS/Javascript expert to go further.