Skip to content

Ux small changes - #12

Merged
Ferticidio merged 3 commits into
masterfrom
ux-small-changes
Apr 17, 2026
Merged

Ux small changes#12
Ferticidio merged 3 commits into
masterfrom
ux-small-changes

Conversation

@machaval

Copy link
Copy Markdown
Contributor

No description provided.

- Change operation_detail.html to use same format as try_it_out.html
- Use <span class="param-name-wrapper"> container for parameter names
- Move required asterisk outside <code> tag with &nbsp; spacing
- Move colon outside the wrapper for consistent styling
Step 2 & 3 of incremental CSS modularization to manage growing stylesheet.

Changes:
- Created extract_detail_page_css.py to extract API detail page CSS
- Created extract_skill_page_css.py to extract skill page CSS
- Generated detail_page.css (2,014 lines) with 273 detail-page-specific rules
- Generated skill_page.css (1,113 lines) with 143 skill-page-specific rules
- Updated detail_page.html to include detail_page.css
- Updated skill_page.html to include skill_page.css
- Restored stats CSS to styles.css (was needed in detail pages)

CSS Architecture (Complete):
- styles.css: 7,548 lines (foundation, loaded on all pages)
- homepage.css: 278 lines (39 rules, homepage only)
- detail_page.css: 2,014 lines (273 rules, API detail pages only)
- skill_page.css: 1,113 lines (143 rules, skill pages only)
- Total: 10,953 lines, properly organized by page context

Detail Page CSS includes:
- Operation details, parameters, schemas, responses
- Try It Out panel and authentication
- Navigation sidebar and breadcrumbs
- Stats grid, badges, method badges
- Schema tables and examples

Skill Page CSS includes:
- Step-by-step workflow UI and terminal styling
- Interactive playground and execution panels
- Variables table and curl command blocks
- Install modal and copy feedback
- Evaluation inputs and results

Benefits:
- Reduced CSS payload per page (only load what's needed)
- Better maintainability with isolated page-specific styles
- Clear separation of concerns
- Easier to identify and remove unused CSS in future
Reverted CSS extraction to page-specific files as it incorrectly identified
shared components (badges, cards, buttons, catalog) as page-specific, causing
broken layouts. The monolithic styles.css approach is correct for this codebase
due to extensive component reuse across all pages.

Updated schema_table.html to use param-name-wrapper format matching try_it_out.html
for consistent parameter display across request and response schemas.
@machaval
machaval requested a review from a team as a code owner April 17, 2026 15:58
@Ferticidio
Ferticidio merged commit ef2f9df into master Apr 17, 2026
9 checks passed
@Ferticidio
Ferticidio deleted the ux-small-changes branch May 7, 2026 17:23
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.

2 participants