Repository navigation
[Styles] Remove unused SCSS rules - #1408
Conversation
Signed-off-by: Abhiram Dhanvi <abhiramcr2726@gmail.com>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
🚀 Preview deployment: https://docs.layer5.io/pr-preview/pr-1408/
|
sarajkrishnasingh
left a comment
There was a problem hiding this comment.
Nice cleanup, and well scoped for #1170: 391 deletions, zero additions, and the duplicate @import "elements_project" plus the doubled .dashboard media query are exactly the kind of leftovers worth removing. Verifying with npm run build, the production build, and a compiled CSS comparison is the right check for a deletion-only change, and all three checks are green.
I spot-checked the removed selectors against the templates, and most of them are genuinely dead: .table-container, .prevBtn, .handbook-section, .handbook-card, .matterheader, .plan-icon, and the taxonomy example classes appear only in their own SCSS definitions.
One thing worth a look before merge: the _subscription.scss removal is not all dead code. layouts/partials/plan-info.html is still included by four layouts (docs list, video list, rest-apis, content), and it uses two of the removed classes that have no other definition in the repo: .bwnekH styles the outer "Who can use this feature?" callout box, and .f4 sets its heading to 16px. Dropping them will remove the callout border and padding and let the heading fall back to default h2 sizing. The other three (.d-inline-block, .mb-3, .mt-1) are covered by Bootstrap utilities, so those are fine.
If the callout still looks right in the PR preview, this is good to go. If the border or heading size changed, the suggestion below restores just those two rules and keeps the rest of the cleanup intact.
Small note: removing a.dash-sign:hover also drops the gold hover color on the landing page sign-in links (used in content/en/_index.md), so a quick glance at that hover state in the preview is worth it too.
Signed-off-by: Abhiram Dhanvi <abhiramcr2726@gmail.com>
sarajkrishnasingh
left a comment
There was a problem hiding this comment.
Thanks for addressing the feedback. Restoring .bwnekH and .f4 in commit e0b85de keeps the plan-info callout styling intact while the duplicate Bootstrap utilities stay removed, which is exactly the right split for #1170.
The rest of the cleanup checks out: 377 deletions, zero additions, the duplicate @import "elements_project" and the doubled .dashboard rules are gone, and the build, DCO, and CodeRabbit checks are all green on the latest commit. The a.dash-sign:hover removal drops the gold hover on the landing page sign-in links, a small visual change worth knowing about, but it does not block this cleanup.
Approving and merging.
Notes for Reviewers
This PR fixes #1170.
assets/scss/: taxonomy, Discourse footer, handbook card, subscription callout,.prevBtn,.table-container, and a few leftover selectors.assets/scss/_styles_project.scss, removed the duplicate@import "elements_project";and the repeated.dashboardanda.dash-sign:hoverrules.npm run buildandnpm run build:production. I also compared the compiledmain.cssbefore and after, and no live rules changed.Signed commits
Summary by CodeRabbit