Skip to content
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

static-html: Clean-up the CSS file a bit #8633

Merged
merged 7 commits into from May 15, 2024
Merged

Conversation

fviernau
Copy link
Member

@fviernau fviernau commented May 8, 2024

This PR does not intend to arrive at something perfect, but targets a better overview as a preparation
for a re-design of the project table which will involve some further refactoring of CSS structure.

Part of: #7921.

@fviernau fviernau requested a review from a team as a code owner May 8, 2024 13:29
Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.92%. Comparing base (b793e22) to head (e514e13).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8633   +/-   ##
=========================================
  Coverage     67.92%   67.92%           
  Complexity     1005     1005           
=========================================
  Files           244      244           
  Lines          7772     7772           
  Branches        876      876           
=========================================
  Hits           5279     5279           
  Misses         2110     2110           
  Partials        383      383           
Flag Coverage Δ
funTest-docker 66.04% <ø> (ø)
funTest-non-docker 34.79% <ø> (ø)
test 37.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -63,21 +63,25 @@
width: 110px;
}

.ort-report-labels {
/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message: "So, Use" -> "So, use"

@@ -183,17 +183,17 @@
border-right: 1px solid rgba(34, 36, 38, .15);
}

.ort-report-table.ort-report-rule-violation-table tr.ort-resolved {
.ort-report-rule-violation-table tr.ort-resolved {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message: In the first sentence, the "specializations" / "spezialize" duplication reads a bit odd, IMO. Can you think of a way to reword? Maybe just say "refers to" instead of "spezialize"? In any case, it should say "specialize".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up re-wording it to avoid the term "specialize" entirely.

This line has effect on the project tables only. It highlights a row
using a gray background color. Remove the highlighting, because a
highlighted row does not look nice and to prepare for an upcoming
re-design of the project table. This is simpler if the highlighted state
can be disregarded initially.

Signed-off-by: Frank Viernau <[email protected]>
Make it clearer that the styling applies only to a single element
and won't be applied to further similar elements in the future.

While at it, choose a more speaking name which differs a bit more from
the also existing `ort-report-labels` class name.

Signed-off-by: Frank Viernau <[email protected]>
The classes is not just used for styling the `OrtResult.labels`, but
also for styling the VCS info within each project table. So, use a more
generic name which applies to both.

Signed-off-by: Frank Viernau <[email protected]>
The classes `ort-report-project-table` and
`ort-report-rule-violation-table` intent to be child classes of
`ort-report-table`. So, all HTML tags which correspond to the child
class also always specify the parent class. Therefore, matching the
parent class is not necessary.

Signed-off-by: Frank Viernau <[email protected]>
The prefix does not provide additional value. Remove it to improve the
readability.

Signed-off-by: Frank Viernau <[email protected]>
Group related styles together and add comments to the resulting
sections. This intends to give a better overview as a basis for
re-designing the project table.

Signed-off-by: Frank Viernau <[email protected]>
@fviernau fviernau merged commit ddd4497 into main May 15, 2024
20 checks passed
@fviernau fviernau deleted the static-html-css-cleanup branch May 15, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants